]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/CJK.tex
tex2lyx: import minted listings
[lyx.git] / src / tex2lyx / test / CJK.tex
1 \documentclass[english]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[utf8]{inputenc}
4 \usepackage{CJK}
5 \usepackage{babel}
6
7 % It is impossible to get the document language because the document could start with a command,
8 % whitespace, and English word or whatever and the rest is in Japanese. Checking for the first CJK
9 % environment is no solution because the document could be English and contain only some Japanese.
10
11 \begin{document}
12  
13 \begin{CJK}{EUC-JP}{}%
14 Japanese \end{CJK} \begin{CJK}{UTF8}{}Chinese traditional\end{CJK} \begin{CJK}{EUC-JP}{}
15 Japanese \end{CJK}
16 hello
17 \begin{CJK}{GB}{}%
18 Chinese simplified \end{CJK}\begin{CJK}{EUC-JP}{hei} Japanese
19 (this CJK environment will be put in ERT because LyX supports only one CJK
20 font mapping per document, this environment uses the \texttt{hei} mapping,
21 and the first mapping is empty.\end{CJK} \begin{CJK}{GB}{}Chinese simplified
22 \end{CJK}
23
24 % The following Bg5 encoded text cannot be processed as is by latex.
25 % It needs to be preprocessed by bg5conv or bg5latex needs to be used.
26 % See the documentation of CJK.sty for details.
27
28 \begin{CJK}{Bg5}{}
29 Big5 ¤å¹©·¢®Ñ
30 \end{CJK}
31
32 \inputencoding{latin9}%
33 \selectlanguage{english}%
34 English
35
36 % The following SJIS encoded text cannot be processed as is by latex.
37 % It needs to be preprocessed by sjisconv or sjislatex needs to be used.
38 % See the documentation of CJK.sty for details.
39
40 \begin{CJK}{SJIS}{}
41 Shift\_JIS \93ú\96{\8cê\82Ì\95\8fÍ
42 \end{CJK}
43
44 hello
45
46 \begin{CJK}{JIS}{}
47 JIS-code \e$BF|K\8l$NJ8>O\e(B
48 \end{CJK}
49
50 \begin{CJK}{KS}{}%
51 Korean
52 \end{CJK}
53
54 \end{document}