# Vertical Chinese text in Italic and bold with uplatex

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:

\documentclass[a4paper]{utbook}
\begin{document}
\textbf{天地人和}，天地人和，\textit{天地人和}。
\end{document}


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?

Update

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

\documentclass[a4paper]{utbook}
\usepackage[noalphabet]{pxchfon}
\setminchofont[0]{simsun.ttc}
\setgothicfont[0]{simkai.ttf}
\begin{document}
\textbf{天地人和}，天地人和，\textit{天地人和}。
\end{document}


And the output is:

It seems that \textit does not work as well.

• 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
• @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:

Code:

%!TEX program = xelatex
%!TEX encoding = UTF-8
\documentclass[UTF8, nofonts]{ctexart}

\usepackage{atbegshi}
\AtBeginShipout{%
\global\setbox\AtBeginShipoutBox\vbox{%
\special{pdf: put @thispage <</Rotate 90>>}%
\box\AtBeginShipoutBox
}%
}%
\begin{document}
\textbf{天地玄黃}，\textit{宇宙洪荒}。日月盈昃，辰宿列張。
\end{document}


UPDATE

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}
\renewcommand{\thepage}{\Chinese{page}}
\begin{document}

\end{document}

• 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