1

I asked a question about typesetting a few Chinese characters in a new page in a report. This problem seems to have been solved by gusbrs and egreg. However, when I use exactly the answers both give me mess code as follows. Thus, I believe now my problem becomes how to use Chinese font appropriately in Latex?

enter image description here

\documentclass[12pt,a4paper,twoside]{report}

\usepackage{xeCJK}
\usepackage{bm}
\usepackage{lmodern}%for quote page
\newlength\longest

\begin{document}
\clearpage
\thispagestyle{empty}
\null\vfill


\settowidth\longest{\huge 我正在认真学习的中文。}
\centering
\parbox{\longest}{%
  \raggedright{\huge%
  我正在认真学习的中文。\\
  北京;\\
  彩虹;\\
  柔中带刚。   \par\bigskip
  }
  \raggedleft\Large 《语文$\bm{\cdot}$长城》 \par%
}


\vfill\vfill

\clearpage

\end{document}
3

You should check the encoding of your tex document. It need to be saved in UTF8.

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.