CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
968 stars 124 forks source link

vertical Chinese writing not working #299

Open qnach opened 7 years ago

nanmu42 commented 7 years ago

Please consider replacing your Chinese example with other dummy words, like 滚滚长江东逝水. Unfortunately, your current example in use may be deemed to be rude or vulgar.

leo-liu commented 7 years ago

AFAIK, it is a fontspec issue. The latest fontspec does not properly set vertical feature for the font. And this bug should be fixed in fontspec.

As a workaround, you can manually set RawFeature={vertical} for vertical typesetting:

\documentclass{article}

\usepackage{xeCJK}
\setCJKmainfont{simsun.ttc}[Vertical=RotatedGlyphs,RawFeature={vertical}]

\begin{document}

中文「直排」。

\end{document}
leo-liu commented 7 years ago

See https://github.com/wspr/fontspec/issues/279