]> git.lyx.org Git - lyx.git/blob - lib/examples/ja/Multilingual_Typesetting_(CJKutf8).lyx
Reorganize templates and example folders
[lyx.git] / lib / examples / ja / Multilingual_Typesetting_(CJKutf8).lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 566
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/ja/
7 \textclass article
8 \begin_preamble
9 % line breaking, punctuation kerning and font switching features
10 % for CJK with non-TeX fonts requires additional packages
11 % currently without GUI support:
12
13 % with XeTeX, https://ctan.org/pkg/xecjk
14 \usepackage{ifxetex}
15 \ifxetex
16   \usepackage{xeCJK}
17   \setCJKmainfont{IPAexMincho}
18   \setCJKsansfont{IPAexGothic}
19 \fi
20
21 % with LuaTeX, https://www.ctan.org/pkg/luatexja
22 % see https://tex.stackexchange.com/questions/222980/how-to-use-chinese-with-lualatex
23 \usepackage{ifluatex}
24 \ifluatex
25   \usepackage{luatexja-fontspec}
26   % use Mainfont (DejaVu) for Greek and Cyrillic:
27   \ltjsetparameter{jacharrange={-2}}
28   %\usepackage[match]{luatexja-fontspec}
29   %\setmainjfont[Mapping=tex-text]{WenQuanYi Micro Hei}
30   %\setsansjfont[Mapping=tex-text]{WenQuanYi Micro Hei}
31   %\setmonojfont{WenQuanYi Micro Hei Mono}
32 \fi
33 \end_preamble
34 \use_default_options false
35 \begin_modules
36 logicalmkup
37 \end_modules
38 \maintain_unincluded_children false
39 \language japanese-cjk
40 \language_package auto
41 \inputencoding utf8-cjk
42 \fontencoding auto
43 \font_roman "DejaVuSerif" "DejaVu Serif"
44 \font_sans "DejaVuSans" "DejaVu Sans"
45 \font_typewriter "DejaVuSansMono" "DejaVu Sans Mono"
46 \font_math "auto" "auto"
47 \font_default_family default
48 \use_non_tex_fonts false
49 \font_sc false
50 \font_osf false
51 \font_sf_scale 100 100
52 \font_tt_scale 100 100
53 \font_cjk min
54 \use_microtype false
55 \use_dash_ligatures false
56 \graphics default
57 \default_output_format default
58 \output_sync 0
59 \bibtex_command default
60 \index_command default
61 \float_placement class
62 \float_alignment class
63 \paperfontsize default
64 \spacing single
65 \use_hyperref false
66 \papersize default
67 \use_geometry false
68 \use_package amsmath 1
69 \use_package amssymb 1
70 \use_package cancel 1
71 \use_package esint 1
72 \use_package mathdots 1
73 \use_package mathtools 1
74 \use_package mhchem 1
75 \use_package stackrel 1
76 \use_package stmaryrd 1
77 \use_package undertilde 1
78 \cite_engine basic
79 \cite_engine_type default
80 \biblio_style plain
81 \use_bibtopic false
82 \use_indices false
83 \paperorientation portrait
84 \suppress_date false
85 \justification true
86 \use_refstyle 0
87 \use_minted 0
88 \index 索引
89 \shortcut idx
90 \color #008000
91 \end_index
92 \secnumdepth 3
93 \tocdepth 3
94 \paragraph_separation indent
95 \paragraph_indentation default
96 \is_math_indent 0
97 \math_numbering_side default
98 \quotes_style cjk
99 \dynamic_quotes 1
100 \papercolumns 1
101 \papersides 1
102 \paperpagestyle default
103 \tracking_changes false
104 \output_changes false
105 \html_math_output 0
106 \html_css_as_file 0
107 \html_be_strict false
108 \end_header
109
110 \begin_body
111
112 \begin_layout Title
113
114 \lang english
115 Multilingual typesetting with CJKutf8
116 \end_layout
117
118 \begin_layout Date
119 \begin_inset Info
120 type  "moddate"
121 arg   "long"
122 \end_inset
123
124
125 \end_layout
126
127 \begin_layout Standard
128
129 \lang english
130 For multi-lingual documents with parts in European languages, you can use
131  the CJK LaTeX bundle:
132 \end_layout
133
134 \begin_layout Itemize
135
136 \lang english
137 Set a standard document class (document classes starting with 
138 \begin_inset Quotes bld
139 \end_inset
140
141 Japanese
142 \begin_inset Quotes brd
143 \end_inset
144
145  use platex).
146 \end_layout
147
148 \begin_layout Itemize
149
150 \lang english
151 Set the document language to 
152 \begin_inset Quotes bld
153 \end_inset
154
155 Japanese (CJK)
156 \begin_inset Quotes brd
157 \end_inset
158
159  and the encoding to 
160 \begin_inset Quotes bld
161 \end_inset
162
163 Unicode (CJK) (utf8)
164 \begin_inset Quotes brd
165 \end_inset
166
167 .
168 \end_layout
169
170 \begin_layout Itemize
171
172 \lang english
173 Select a Japanese CJK-font, e.g.
174  
175 \begin_inset Flex Code
176 status collapsed
177
178 \begin_layout Plain Layout
179
180 \lang english
181 \begin_inset Quotes sld
182 \end_inset
183
184 min
185 \begin_inset Quotes srd
186 \end_inset
187
188
189 \end_layout
190
191 \end_inset
192
193 .
194 \end_layout
195
196 \begin_layout Itemize
197
198 \lang english
199 Some fonts are substituted with fallback 
200 \begin_inset Quotes bld
201 \end_inset
202
203 CM roman regular
204 \begin_inset Quotes brd
205 \end_inset
206
207  (
208 \emph on
209 DejaVu
210 \emph default
211  and 
212 \emph on
213 Libertine
214 \emph default
215  work).
216 \end_layout
217
218 \begin_layout Itemize
219 \noindent
220
221 \lang english
222 Alternatively, you can use non-TeX fonts with xeCJK (XeTeX) or luatexja
223  (LuaTeX).
224  See the document preamble for an example.
225 \end_layout
226
227 \begin_layout Standard
228
229 \lang english
230 Then, the following should work:
231 \end_layout
232
233 \begin_layout Enumerate
234 \SpecialChar LyX
235 は優秀な取扱説明書を同梱していますので、これをお使いください!まずは
236 \family sans
237 ヘルプ\SpecialChar menuseparator
238 はじめの一歩
239 \family default
240 から始めてください。これは、各取扱説明書を簡潔に紹介しています。つぎに
241 \family sans
242 ヘルプ\SpecialChar menuseparator
243 入門篇
244 \family default
245 をお読みになれば、\SpecialChar LyX
246 の使い方を学ぶことができます。
247 \end_layout
248
249 \begin_layout Enumerate
250 Short texts may be written without setting the language (hyphenation will
251  be missing and spell-checking complain): Greetings; Grüße; Приветы; χαιρετισμός
252 \end_layout
253
254 \begin_layout Enumerate
255 For longer text parts, it is recommended to set the correct language:
256 \end_layout
257
258 \begin_deeper
259 \begin_layout Description
260
261 \lang english
262 English: Hello Mr.
263  Sandman!
264 \end_layout
265
266 \begin_layout Description
267
268 \lang ngerman
269 Deutsch: Grüße aus Österreich!
270 \end_layout
271
272 \begin_layout Description
273
274 \lang ngerman
275 Griechisch:
276 \lang greek
277  χαιρετισμός!
278 \end_layout
279
280 \begin_layout Description
281
282 \lang ngerman
283 Russisch:
284 \lang russian
285  Привет с 
286 \series bold
287 новым
288 \series default
289  годом!
290 \end_layout
291
292 \end_deeper
293 \end_body
294 \end_document