Skip to content

Instantly share code, notes, and snippets.

@moroz
Created August 22, 2019 04:12
Show Gist options
  • Save moroz/b4389c28c50836ab15626a586b68cb5e to your computer and use it in GitHub Desktop.
Save moroz/b4389c28c50836ab15626a586b68cb5e to your computer and use it in GitHub Desktop.
Furigana in Japanese using XeTeX
\documentclass{article}
\usepackage{fontspec,xeCJK}
\usepackage[overlap,CJK]{ruby}
\renewcommand{\rubysep}{-0.2ex}
\begin{document}
これは\ruby{日本語}{にほんご}の\ruby{文章}{ぶんしょう}。
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment