]> git.lyx.org Git - lyx.git/blob - lib/examples/ja/Multilingual_Typesetting_%28CJKutf8%29.lyx
Fix a table in Hebrew documentation.
[lyx.git] / lib / examples / ja / Multilingual_Typesetting_%28CJKutf8%29.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 572
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/ja/
7 \textclass bxjsarticle
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
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 \tablestyle default
104 \tracking_changes false
105 \output_changes false
106 \html_math_output 0
107 \html_css_as_file 0
108 \html_be_strict false
109 \end_header
110
111 \begin_body
112
113 \begin_layout Title
114
115 \lang english
116 Multilingual typesetting with CJKutf8
117 \end_layout
118
119 \begin_layout Date
120 \begin_inset Info
121 type  "moddate"
122 arg   "long"
123 \end_inset
124
125
126 \end_layout
127
128 \begin_layout Standard
129
130 \lang english
131 For multi-lingual documents with parts in European languages, you can use
132  the CJK LaTeX bundle:
133 \end_layout
134
135 \begin_layout Itemize
136
137 \lang english
138 Set a standard document class (document classes starting with 
139 \begin_inset Quotes bld
140 \end_inset
141
142 Japanese
143 \begin_inset Quotes brd
144 \end_inset
145
146  use pLaTeX).
147 \end_layout
148
149 \begin_layout Itemize
150
151 \lang english
152 Set the document language to 
153 \begin_inset Quotes bld
154 \end_inset
155
156 Japanese (CJK)
157 \begin_inset Quotes brd
158 \end_inset
159
160  and the encoding to 
161 \begin_inset Quotes bld
162 \end_inset
163
164 Unicode (CJK) (utf8)
165 \begin_inset Quotes brd
166 \end_inset
167
168 .
169 \end_layout
170
171 \begin_layout Itemize
172
173 \lang english
174 Select a Japanese CJK-font, e.g.
175  
176 \begin_inset Flex Code
177 status collapsed
178
179 \begin_layout Plain Layout
180
181 \lang english
182 \begin_inset Quotes sld
183 \end_inset
184
185 min
186 \begin_inset Quotes srd
187 \end_inset
188
189
190 \end_layout
191
192 \end_inset
193
194 .
195 \end_layout
196
197 \begin_layout Itemize
198
199 \lang english
200 Some fonts are substituted with fallback 
201 \begin_inset Quotes bld
202 \end_inset
203
204 CM roman regular
205 \begin_inset Quotes brd
206 \end_inset
207
208  (
209 \emph on
210 DejaVu
211 \emph default
212  and 
213 \emph on
214 Libertine
215 \emph default
216  work).
217 \end_layout
218
219 \begin_layout Itemize
220 \noindent
221
222 \lang english
223 Alternatively, you can use non-TeX fonts with xeCJK (XeTeX) or luatexja
224  (LuaTeX).
225  See the document preamble for an example.
226 \end_layout
227
228 \begin_layout Standard
229
230 \lang english
231 Then, the following should work:
232 \end_layout
233
234 \begin_layout Enumerate
235 \SpecialChar LyX
236 は優秀な取扱説明書を同梱していますので、これをお使いください!まずは
237 \family sans
238 ヘルプ\SpecialChar menuseparator
239 はじめの一歩
240 \family default
241 から始めてください。これは、各取扱説明書を簡潔に紹介しています。つぎに
242 \family sans
243 ヘルプ\SpecialChar menuseparator
244 入門篇
245 \family default
246 をお読みになれば、\SpecialChar LyX
247 の使い方を学ぶことができます。
248 \end_layout
249
250 \begin_layout Enumerate
251 Short texts may be written without setting the language (hyphenation will
252  be missing and spell-checking complain): Greetings; Grüße; Приветы; χαιρετισμός
253 \end_layout
254
255 \begin_layout Enumerate
256 For longer text parts, it is recommended to set the correct language:
257 \end_layout
258
259 \begin_deeper
260 \begin_layout Description
261
262 \lang english
263 English: Hello Mr.
264  Sandman!
265 \end_layout
266
267 \begin_layout Description
268
269 \lang ngerman
270 Deutsch: Grüße aus Österreich!
271 \end_layout
272
273 \begin_layout Description
274
275 \lang ngerman
276 Griechisch:
277 \lang greek
278  χαιρετισμός!
279 \end_layout
280
281 \begin_layout Description
282
283 \lang ngerman
284 Russisch:
285 \lang russian
286  Привет с 
287 \series bold
288 новым
289 \series default
290  годом!
291 \end_layout
292
293 \end_deeper
294 \end_body
295 \end_document