]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/CJK.tex
Merge branch 'master' of git.lyx.org:lyx
[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 \end{CJK} \begin{CJK}{GB}{}Chinese simplified
19 \end{CJK}
20
21 \inputencoding{latin9}%
22 \selectlanguage{english}%
23 English
24
25 \begin{CJK}{SJIS}{}
26 Shift_JIS 日本語の文章
27 \end{CJK}
28
29 hello
30
31 \begin{CJK}{JIS}{}
32 JIS-code \e$BF|K\8l$NJ8>O\e(B
33 \end{CJK}
34
35 \begin{CJK}{KS}{}%
36 Korean
37 \end{CJK}
38
39 \end{document}