When using kanji in a document which is non-standard or rare, it is common for hiragana or katakana characters to be printed above (or beside for vertical text) the kanji to aid pronunciation. This is also common in children’s books and other Japanese learning material. This post explains how to do that using LaTeX.

This post follows on from this post on using Japanese characters in LaTeX documents. This post assumes the same setup as in that previous tutorial.

The CJK package, used in the previous tutorial, also contains the functionality for adding furigana to text. To use this, simply add:

\usepackage[CJK, overlap]{ruby}

to the preamble (anywhere before the \begin{document} line).

Once you’ve done that, you can use the \ruby{<kanji>}{<furigana>} anywhere within the CJK block. For a complete example:


\usepackage[CJK, overlap]{ruby}



will produce a document containing: