I am writing a document mostly in English with a few Chinese examples. I would like to be able to typeset the Chinese characters with bopomofo (zhuyinfuhao) annotations to the right side of the character, e.g., sample image of bopomofo to right, rather than the top/bottom, which I can already do using the ruby package. Is there a way to do this? I'm currently using LaTeX, but would be open to XeTeX, etc., if necessary.

Here's a MWE I can compile using pdflatex, which gets the bopomofo characters on top of the Chinese characters:

\usepackage[overlap, CJK]{ruby}




The output with the bopomofo on top looks like this (the tone diacritics aren't quite where they should be, but this is the best I could do):

output of MWE code

Many thanks!

  • 4
    Welcome to TeX.SE!
    – Mensch
    Jun 29, 2019 at 18:52

1 Answer 1


A comment:

Some fonts already contain the bopo, like HanWangKaiMediumChuIn:

bopomofo font

but that means using fontspec and compiling with xelatex.






Another possibility is to use TikZ: see Typesetting furigana above and below original text and alter below to right.

I think there is also a ruby solution - I will search for it.

Edited to add:

A tabular within a tabular also works.



% !TeX program = xelatex
\setmainfont{Noto Serif}
\newfontface\fcjk{Noto Sans TC Regular}

\Huge #1 & #2\\%



%adjust padding


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .