I've seen this discussion about the best IDEs for LaTeX on Ubuntu: XEmacs/AucTeX is recommended by my colleagues off of this site. However, I'm interested in the specific case of mixed CJK/Roman editing with XeLaTeX on Ubuntu. Is there a recommended editor or IDE?
I presently use TeXShop on Mac OS X instead of LyX (which was most widely recommended to me when I started) because I have had trouble getting CJK to work with LyX. Before I start trying out different editors on Ubuntu, I'd be most grateful to hear recommendations or warnings based on other people's experience.
Edit: Caramdir refers me to this discussion. That makes me wonder whether, in practice, every LaTeX editor also supports XeLaTeX perfectly.
Best Answer
As I know, TeXworks, (g)VIM, Emacs, gedit, SciTE, TeXmaker,... , all work fine with CJK.
I usually use TeXworks and gVIM on both Windows and Linux. Just set UTF-8 encoding as default, everything will be fine.
However, I always use Chinese version (locale) of Windows/Linux. You might meet some font problem.
In VIM, you should at least set proper
guifontwide
in.vimrc
. Moreover, you may also need to setencoding
,fileencodings
,ambiwidth
andformatoptions
.In TeXworks, one cannot set different font for wide and non-wide charcters. Be sure that the font you set support CJK symbols. And you'd also set UTF-8 encoding.
Things are similar when using other editors.
For Ubuntu, you'd install
poppler-data
to display CJK glyphs in some PDF files in Evince.As Caramdir already pointed out, don't use
texlive
package throughapt-get
. You'd better use full TeX Live from TUG.xeCJK
with XeLaTeX is recommended.