# Tag Info

2

In your original document, if you put your \title command after \begin{document} things work. However, if you don't load the inputenc package at all, things also work. I think this is a better solution. I've added the fontenc package to use the T1 encoding for the Latin text and removed the trick that @egreg mentions in his comment. ...

4

Here is a full example using XeLaTeX: % !TEX program = XeLaTeX % !TEX encoding = UTF-8 \documentclass{article} % Setting up Latin and Cyrillic fonts \usepackage{fontspec} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text} % Setting up Japanese fonts \usepackage{xeCJK} \setCJKmainfont{ipam.ttf} \setCJKsansfont{ipag.ttf} ...

1

Since it is not a Chinese document, I think xeCJK should be your first choice to support typesetting Chinese characters. Say, \usepackage{xeCJK} \setCJKmainfont{some Chinese font you use} % ... However, there is no babel/polyglossia equivalent for Chinese. Roughly speaking, I think it is better to define a set of macros yourself. It won't be difficult ...

3

ctex bundle use Chinese fonts for Windows by default. You can use the fonts installed in Mac. % !TEX program = XeLaTeX % !TEX encoding = UTF-8 \documentclass[UTF8,nofonts]{ctexart} \setCJKmainfont[BoldFont=STHeiti,ItalicFont=STKaiti]{STSong} \setCJKsansfont[BoldFont=STHeiti]{STXihei} \setCJKmonofont{STFangsong} \begin{document} 文章内容。 \end{document} There ...

1

My impression is that LyX is overzealous in doing encoding switching. But \begin{CJK}{} \chapter{\end{CJK}\inputencoding{latin9}Something} is simply wrong code that can't work with any trick whatsoever. If you plan to use CJKutf8, the document encoding should be UTF-8, of course, and not Latin-9. How to set this up for LyX is beyond my knowledge. The ...

Top 50 recent answers are included