How can I embed Chinese in my TeXShop documents?
(re. Tex / LaTex on Mac OS X)

As of 2008, IGNORE all that old info about installing cyberbit!

(though kudos to Olivier Delloye
for having gotten that to work at one time,
as well as sharing the info somewhat concisely.)

Use XeLaTex! and \usepackage{fontspec}.
(choose to the right of the typeset button,
or in preferences/typesetting/"command listed below")

Then in the document: {\fontspec{STSong} your-chinese }

Here's a pdf made that way: fontspec.pdf
Here's the tex code for it: fontspec.txt
(copy and paste it, or change the suffix to .tex for convenient texshopping)

So then why are bold and italics (\emph{}) broken with \usepackage{fontspec}?

Select a font that has them!
(which oddly enough is looking like not many;
try maybe Helvetica Neue, or don't,
since it has that look that probably
inspired Donald Knuth to create LaTex.)

Alternatively just chose a font whose base form looks like italics.

same goes for traditional or simplified characters!
STfonts, i.e. STFangsong, STHeiti, STKaiti, STSong,
seem to include both.

How do I get line breaks for scripts without word spaces?

in your document (anywhere?), put
\XeTeXlinebreaklocale"ch" (i.e. Chinese)
or
\XeTeXlinebreaklocale"th" (i.e. Thai)
(seem to work equally well for Chinese)

And why can't I draw trees with the qtree package anymore?

Okay, and here's how we can draw trees,
with the qtree package: by changing the XeLaTex driver:
EDIT ~/Library/TeXShop/Engines/XeLaTex.engine:
('~'=your-home-directory)
comment out: # xelatex "$1"
and put in: xelatex -output-driver="xdvipdfmx -q -E" "$1"

Here's a pdf: fontspectree.pdf
Here's the tex code: fontspectree.txt
(again cut and paste or change the suffix)

(sadly, still can't get Emma Pease's awesome ling-macros to work,
given their PS reliance; any other packages out there to draw curvy arrows?)

Thanks to
http://www.reed.edu/cis/help/LaTeX/language.html#cjk
for the initial tip.
(from their CJK section, IN THE GRAY BOX, NOT what comes below it.)

You can e-mail me at: potamite@usc.edu

The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees