How to type Chinese characters in LaTex (on Mac, using TeXShop)

Singapore Maths Tuition

This is one of the easiest ways to type Chinese characters in LaTeX on Mac, using the default TeXShop editor. (If you know of an easier way, please let me know in the comments below!)

I have tried for hours, experimenting with different packages, before “discovering” the following steps. Hope it helps!

Step 1) Add “usepackage{ctex}” to the beginning of the document. This will load the main package ctex.

Step 2) It is very important to save the LaTeX file in UTF-8 format, otherwise all Chinese characters will appear as question marks. The preferred way to do this is via:

TeXShop > Preferences > Encoding = Unicode (UTF-8). (see image below)

This will “permanently” set the format as UTF-8 by default. If you don’t do this, an annoying thing that can happen is that your TeX file reverts to “non-UTF8” upon saving. That means, the Chinese characters may appear correctly…

View original post 160 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s