Solving LaTeX:! Package CJK Error: Invalid character code error

Recently, I always get an error when running a Chinese latex template, prompting:! Package CJK Error:Invalid character code

My latex compilation package is: WinEdit + MiKTeX

Tried the following:
[1] Copy the .tex file contents to a text file and save as UTF-8 format The above method still does not solve the problem Report error. Later, after running it on my classmate's computer, I found that no error was reported. He installed the CTeX kit. . : Options-> PreferencesAdjust WinEdt settings
[2]
Insert image description here

After installingCTeX package, the compilation was successful. The CTeX suite still supports Chinese.

Tip: The second method above is required for WinEdt settings.

In addition, using the practical settings of dvipdfm compilation mode, you can generate pdf in one step. Open WinEdt, Options => Excution Modes
Insert image description here

Reference link
[1] About the Package CJK Error in Latex
[2] [LaTeX] Solution to garbled characters or compilation error "Package CJK Error: Invalid character code" when editing UTF-8 Chinese documents with WinEdt
[3] < a i=6>Latex --> dvi file --> pdf file

Guess you like

Origin blog.csdn.net/u010072043/article/details/127654774