I want to typeset some ancient writings in Chinese, but there is no derictly class of document to use. Then I try uplatex. I create a sim.map file whose content is:

urml        UniGB-UTF16-H   simsun.ttc
urmlv       UniGB-UTF16-V   simsun.ttc
ugbm        UniGB-UTF16-H   simhei.ttf
ugbmv       UniGB-UTF16-V   simhei.ttf

uprml-h     UniGB-UTF16-H   simsun.ttc
uprml-v     UniGB-UTF16-V   simsun.ttc
upgbm-h     UniGB-UTF16-H   simhei.ttf
upgbm-v     UniGB-UTF16-V   simhei.ttf
uprml-hq    UniGB-UCS2-H    simsun.ttc
upgbm-hq    UniGB-UCS2-V    simhei.ttf

and a try.tex file whose content is:


Then use the following code to get pdf:

uplatex try && dvipdfmx -f sim.map try

As you can see, \textbf works but textit does not. What should I do to get \textit works?

enter image description here


If I use the pxchfon package, then the try.tex file is:


And the output is: enter image description here

It seems that \textit does not work as well.

  • 3
    Do CJK ideographs even have the concept of italic? – Khaled Hosny Dec 1 '13 at 11:09
  • You have tagged the question xetex are you interested in xetex solutions or do you definitely need an uplatex solution (there are likely to be many more xetex users here) – David Carlisle Dec 1 '13 at 11:09
  • @KhaledHosny Thanks! italic=楷体 in CJK, for example, simkai.ttf. – Eden Harder Dec 1 '13 at 11:49
  • @DavidCarlisle Thanks! here is a similar quesstion "Vertical Chinese text with XeTeX". So I guess xetex maybe help here. – Eden Harder Dec 1 '13 at 11:52
  • 1
    @Ch'enMeng Can you kindly give an example to show how to use simkai , simsun and simhei at the same time? I will very appreciate your answer. – Eden Harder Dec 2 '13 at 15:08

Hmmm, have a look at the output:

enter image description here


%!TEX program = xelatex
%!TEX encoding = UTF-8
\documentclass[UTF8, nofonts]{ctexart}
\setCJKmainfont[RawFeature={vertical:+vert:+vhal},BoldFont=Adobe Heiti Std,ItalicFont=Adobe Kaiti Std]
  {Adobe Song Std}
\setCJKsansfont[RawFeature={vertical:+vert:+vhal}]{Adobe Heiti Std}
\setCJKmonofont[RawFeature={vertical:+vert:+vhal}]{Adobe Fangsong Std}

    \special{pdf: put @thispage <</Rotate 90>>}%


The :vhal option will let punctuation at the end of line out of alignment. Thus, do not use it.

%!TEX program = xelatex
%!TEX encoding = UTF-8
\documentclass[UTF8, nofonts]{ctexart}
\setCJKmainfont[RawFeature={vertical:+vert},BoldFont=Adobe Heiti Std,ItalicFont=Adobe Kaiti Std]
  {Adobe Song Std}
\setCJKsansfont[RawFeature={vertical:+vert}]{Adobe Heiti Std}
\setCJKmonofont[RawFeature={vertical:+vert}]{Adobe Fangsong Std}
  • Thanks again! I know this method, and here is a better one but I can not find its .tex file. For your method, it really can deal with the problem but we will lose some advantage of uplatex at the same time. Thanks again. – Eden Harder Dec 3 '13 at 3:27
  • @EdenHarder What are the advantages? Could you explain it? In terms of my code, there is one bug left---punctuation at the end of line will be out of alignment. Do you mean this disadvantage? – Ch'en Meng Dec 3 '13 at 3:42
  • For example, the number of the page will not be right and how to use footnote? Thanks very much! Here is the file I mentioned above. – Eden Harder Dec 3 '13 at 3:55
  • You can redefine \thepage with \rotatebox, such as \renewcommand{\thepage}{\rotatebox{90}{\arabic{page}}}. There is no footnote in ancient Chinese. However, we use cutnote (割注) instead. – Ch'en Meng Dec 3 '13 at 4:00
  • Thanks for your kindly help! But I will wait for the solution for the original uplatex all the time also. – Eden Harder Dec 3 '13 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.