0

Possible Duplicate:
Displaying pinyin over Chinese characters, without impacting word spacing

I'm trying to use xeCJK and I'm having some issues. This is my code; it comes out very strangely:

\documentclass{article}
\usepackage{xeCJK}
\usepackage{ruby}
\renewcommand\rubysize{0.4}
\setCJKmainfont{BiauKai}
\begin{document}

\noindent 床前明月光,疑是地上霜。举头望明月,低头思故乡。 \
\noindent\ruby{床}{chuáng}\ruby{前}{qián}\ruby{明}{míng}\ruby{月}{yuè}\ruby{光}{guāng},\ruby{疑}{yí}\ruby{是}{shì}\ruby{地}{dì}\ruby{上}{shàng}\ruby{霜}{shuāng}。
\ruby{举}{jǔ}\ruby{头}{tóu}\ruby{望}{wàng}\ruby{明}{míng}\ruby{月}{yuè},\ruby{低}{dī}\ruby{头}{tóu}\ruby{思}{sī}\ruby{故}{gù}\ruby{乡}{xiāng}。
\end{document} 

marked as duplicate by Leo Liu, Mensch, Thorsten, Marco Daniel, Claudio Fiandrino Oct 25 '12 at 16:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.