Jump to content
Chinese-Forums
  • Sign Up

LaTeX


patboehler

Recommended Posts

Hi everyone!

I'm writing my Ph.D. thesis on LaTeX.

Everything works great except for the fact that I can't write Chinese characters.

Could anyone please tell me with package to install and how to do that?

I haven't figured that out.

This is really important, so thank you very much for any help!!!

Yours,

Patrick

Link to comment
Share on other sites

You need a LaTeX package called CJK. It will enable use of Chinese (and Japanese and Korean) in LaTeX. Searching for CJK and LaTeX on Google will give you a lot of links on how to use it on Windows with various flavors of LaTeX. http://www.math.nus.edu.sg/aslaksen/cs/cjk.html looks particularly helpful.

Link to comment
Share on other sites

  • 1 year later...

hi, I'm in search of a person who has him- or herself already used latex setting chinese characters sucessfully on a windows pc. I've spent three whole days trying everything without success. I installed and imported the CJK packages and tried several editors which claim to be unicode compatible.

anyone out there? please...

holger

Link to comment
Share on other sites

I'm fairly certain a combination like MiKTeX + CJK package + Texmaker works fine. I ran into the same problem a couple years ago and concluded that it was the development environment (TexnicCenter), not MiKTeX, that was the source of the problem.

Link to comment
Share on other sites

  • 2 weeks later...

I've used CJK many times on windows XP and with Miktex. The problem with TechnixCenter is that it messes up the encoding I think, but you can either (1) choose another editor or (2) input Chinese text somewhere else and cut & paste it into TC.

Link to comment
Share on other sites

  • 3 years later...

I am not an expert on this topic, but I noticed that the latest post is quite old. I just wanted to share my experiences on this subject. I am a Windows user.

(1) I installed proTeXt - ( a MiKTeX-based distribution for Windows ), available from http://www.tug.org/protext/ it is free. This is the recommended download for Windows users by the "Tex Users Group" (http://www.tug.org/)

(2) It includes TeXstudio 2.2 ( 2149 ). I used to complete my DPhil without any problems.

(3) MiKTeX is installed by default, which by default includes the CJK package

(4) For help with Chinese character input on windows I recommend consulting http://www.pinyinjoe.com/

(5) Example CJK files are available from http://ctan.org/tex-archive/language/chinese/CJK/cjk-4.8.2/examples

I was looking for examples that (a) displayed Chinese characters or pinyin in the text editor without error (b) compiled to pdf.

Unfortunately only 3 of the example files fulfilled these criteria;

(1) CJKspace.tex

(2) py_test.tex

(3) UTF8.tex

Other users may have some suggestions about how best the other example files are used and processed. The ones referred to here are very basic. If anyone else has some up to date experiences, I would be vary happy to learn from them!

Link to comment
Share on other sites

It's much easier nowadays! XeLaTeX is a fully unicode-aware implementation of Latex.

You will need to install XeLaTeX and the xeCJK package. Most TeX distributions will have them.

Then put the following in your preamble:

\usepackage{xeCJK}

And the following at the beginning of your document:

\setCJKmainfont{AR PL UMing CN}

Instead of "AR PL UMing CN", use whatever Chinese font you like. Type Chinse as normal into your editor, save as UTF-8. Nothing else is needed.

Then compile using xelatex instead of pdflatex to generate the pdf. Works like a charm.

EDIT: This is ESPECIALLY useful if you need to mix Chinese with other languages. With most CJK packages, you have to manually switch fonts all the time, as they assume you'll be writing Chinese and only Chinese. Using Unicode and XeLaTeX makes it all automatic, which is really cool.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...