Typeset Pinyin in TeX
Use \atop
$$
\def\py#1#2{\text{\scriptsize{#2}}\atop\text{\;#1\;}}
{\py{关}{gu\=an}} {\py{雎}{j\=u}} \\~\\
{\py{关}{gu\=an}} {\py{关}{gu\=an}}
{\py{雎}{j\=u}} {\py{鸠}{ji\=u}} {\py{,}{}}
{\py{在}{z\`ai}} {\py{河}{h\'e}}
{\py{之}{zh\=\i}} {\py{洲}{zh\=ou}} {\py{。}{}} \\~\\
{\py{窈}{y\v{a}o}} {\py{窕}{ti\v{a}o}}
{\py{淑}{sh\=u}} {\py{女}{n\v{\"u}}} {\py{,}{}}
{\py{君}{j\=un}} {\py{子}{z\v\i}}
{\py{好}{h\v{a}o}} {\py{逑}{qi\'u}} {\py{。}{}}
$$
|
|
Use \overset
$$
\def\py#1#2{\overset{\text{#2}}{\text{\;#1\;}}}
{\py{关}{gu\=an}} {\py{雎}{j\=u}} \\
{\py{关}{gu\=an}} {\py{关}{gu\=an}}
{\py{雎}{j\=u}} {\py{鸠}{ji\=u}} ,
{\py{在}{z\`ai}} {\py{河}{h\'e}}
{\py{之}{zh\=\i}} {\py{洲}{zh\=ou}} 。 \\
{\py{窈}{y\v{a}o}} {\py{窕}{ti\v{a}o}}
{\py{淑}{sh\=u}} {\py{女}{n\v{\"u}}} ,
{\py{君}{j\=un}} {\py{子}{z\v\i}}
{\py{好}{h\v{a}o}} {\py{逑}{qi\'u}} 。
$$
|
|
Note: Wrap the code in <div>$$
and $$</div>
.