Latex] [insert Chinese


There are two ways:

First, anytime, anywhere with:

\ usepackage {CJK} beginning% on the article 
\ the begin {UTF8 CJK} {} {} gbsn % when using the insert Chinese 
here are Chinese 
\ End {CJK}

Second, the global settings:

\ DocumentClass [ the UTF8 ] {} ctexart % corresponds to the overall pattern of selected Chinese

 

Both methods have advantages and disadvantages, I was biased in favor of the first, but if you have the full text of Chinese words, or easy to second.


 

PS: night encountered a pit, is previewed in VScode in PDF, can not be opened in the browser, it can only be turned off, or else an error.

Guess you like

Origin www.cnblogs.com/wayne-tao/p/11711194.html