I wish to use lyx beamer document type but use Chinese in document.
Maybe it's possible to use CJK but not sure how to do it.
Anyone can share your suggestion?
beamerlyx
I wish to use lyx beamer document type but use Chinese in document.
Maybe it's possible to use CJK but not sure how to do it.
Anyone can share your suggestion?
Best Answer
I have no idea if this is the correct way to do it (I don't know how to write in Chinese), but it appears to work for me. Note that I'm on Ubuntu with TeX Live 2014 and am using LyX 2.1.1. Before trying this, first make sure you can export LyX's Chinese manuals as a test that you have all of the prerequisites. Open doc/zh_CN/Intro.lyx and doc/zh_CN/Tutorial.lyx. Can you export them successfully to PDF (pdflatex) ? If so, do the following for Beamer with Chinese:
In Document > Settings, change Language to "Chinese (simplified)" and Encoding to "other: Unicode (CJK) (utf8)"
In Document > Settings, under Fonts change "CJK:" to "gbsn".
View PDF (pdftex)
Below is an example (requires at least LyX 2.1.0 to run). Note that I just took the first frame of the English Help > Beamer manual and added some Chinese text to the second item of the itemize in the frame.
.lyx file:
Exported (with LaTeX (pdflatex)) .tex file:
(one slide of) output: