2

Some times I need to insert Chinese characters in my LaTeX documents and sometimes English letters.

I'd like English letters show in 12pt while Chinese characters show smaller(like 10pt or 11pt).

For example, I type the following line in .tex file.

English中文

And I'd like to see 'English' in 12pt and '中文' in 11pt.

Is there an easy way to make it?

------ edited ------

An easy way means, I do not want something like:

English{\small中文}

It makes me type \small every time when I type Chinese.

  • Do you use fontspec? – Michael Fraiman Oct 8 '17 at 8:30
  • @MichaelFraiman I just know this package, but I don't know how to use on my problem. Do you have any idea? – syxbyi Oct 8 '17 at 8:48
  • it is very similar to the solution you have found – Michael Fraiman Oct 8 '17 at 9:07
2

I found an answer myself. But it may only work with Chinese, Japanese and Korean.

I use xeCJK for solving this problem.

\usepackage{xeCJK}
\setCJKmainfont[scale=0.9]{Source Han Sans CN}

The document (written in Chinese) I checked is mirror.hmc.edu/ctan/macros/xetex/latex/xecjk/xeCJK.pdf.

The font Source Han Sans CN is font I have on my Fedora Linux. You can use command fc-list in document pdf 3.2.1 for font selecting.

I am using xelatex for compiling thus xeCJK works well. If you use pdfletex for compiling, you may use:

\usepackage{CJKutf8}

And check its document.

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.