English logga in

StartTeX och LaTeX

Kinesiska

Denna sida finns bara på engelska.

When writing a document in Chinese the TeX engine XeLaTeX is recommended, and you can find various options in answers to this Stack Exchange question.

But if you want to use the default pdflatex and only want to include some short Chinese texts in your document, the simplest way may be to use the CJKutf8 package.

Here is an example:

\documentclass{cluu}
\usepackage{CJKutf8}

\newcommand{\zh}[1]{\begin{CJK}{UTF8}{gkai}#1\end{CJK}}

\begin{document}
Hello, \zh{你好}!
\end{document}

Here for convenience a command \zh is created so that just a short command is needed for each Chinese section. In the command \code{gkai} names the font to use. Another option, also for simplified Chinese characters, is gbsn.

The file /local/doc/tex/chinese.tex shows the same example, with output /local/doc/tex/chinese.pdf.