]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/CJK/micro-sign_utf8-cjk_libertine.lyx
Support for documents in other scripts with parts in CJK scripts.
[lyx.git] / autotests / export / latex / CJK / micro-sign_utf8-cjk_libertine.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 unavailable
7 \textclass article
8 \begin_preamble
9 % Fix the MIKRO SIGN symbol:
10 % CJKutf8 overwrites \textmu with $\mu$,
11 % use the symbol from "textcomp" or the Greek fonts instead
12 %\DeclareTextSymbolDefault{\textmu}{TS1}
13 \end_preamble
14 \use_default_options true
15 \maintain_unincluded_children false
16 \language english
17 \language_package default
18 \inputencoding utf8-cjk
19 \fontencoding auto
20 \font_roman "libertine" "default"
21 \font_sans "default" "default"
22 \font_typewriter "default" "default"
23 \font_math "auto" "auto"
24 \font_default_family default
25 \use_non_tex_fonts false
26 \font_sc false
27 \font_osf false
28 \font_sf_scale 100 100
29 \font_tt_scale 100 100
30 \font_cjk gkai
31 \use_microtype false
32 \use_dash_ligatures true
33 \graphics default
34 \default_output_format pdf2
35 \output_sync 0
36 \bibtex_command default
37 \index_command default
38 \float_placement class
39 \float_alignment class
40 \paperfontsize default
41 \spacing single
42 \use_hyperref false
43 \papersize default
44 \use_geometry false
45 \use_package amsmath 1
46 \use_package amssymb 1
47 \use_package cancel 1
48 \use_package esint 1
49 \use_package mathdots 1
50 \use_package mathtools 1
51 \use_package mhchem 1
52 \use_package stackrel 1
53 \use_package stmaryrd 1
54 \use_package undertilde 1
55 \cite_engine basic
56 \cite_engine_type default
57 \biblio_style plain
58 \use_bibtopic false
59 \use_indices false
60 \paperorientation portrait
61 \suppress_date false
62 \justification true
63 \use_refstyle 1
64 \use_minted 0
65 \index Index
66 \shortcut idx
67 \color #008000
68 \end_index
69 \secnumdepth 3
70 \tocdepth 3
71 \paragraph_separation indent
72 \paragraph_indentation default
73 \is_math_indent 0
74 \math_numbering_side default
75 \quotes_style english
76 \dynamic_quotes 0
77 \papercolumns 1
78 \papersides 1
79 \paperpagestyle default
80 \tracking_changes false
81 \output_changes false
82 \html_math_output 0
83 \html_css_as_file 0
84 \html_be_strict false
85 \end_header
86
87 \begin_body
88
89 \begin_layout Standard
90 For multi-lingual documents with parts in European languages, you can use
91  the CJK LaTeX bundle.
92  However,
93 \end_layout
94
95 \begin_layout Itemize
96 CJKutf8 defines the MICRO SIGN 
97 \begin_inset Quotes eld
98 \end_inset
99
100 µ
101 \begin_inset Quotes erd
102 \end_inset
103
104  as mathematical symbol (italic) 
105 \begin_inset Formula $\mu$
106 \end_inset
107
108 .
109 \end_layout
110
111 \begin_layout Itemize
112 The package 
113 \begin_inset Quotes eld
114 \end_inset
115
116 textcomp
117 \begin_inset Quotes erd
118 \end_inset
119
120  overwrites this definition with a correct looking symbol, but only if loaded
121  
122 \series bold
123 after 
124 \series default
125 CJKutf8.
126 \end_layout
127
128 \begin_layout Itemize
129 LyX gets this right for 
130 \begin_inset Quotes eld
131 \end_inset
132
133 textcomp
134 \begin_inset Quotes erd
135 \end_inset
136
137  but not for 
138 \begin_inset Quotes eld
139 \end_inset
140
141 libertine
142 \begin_inset Quotes erd
143 \end_inset
144
145  that internally loads textcomp and is called before CJKutf8 by LyX.
146 \end_layout
147
148 \begin_layout Itemize
149 A workaround is adding
150 \end_layout
151
152 \begin_deeper
153 \begin_layout LyX-Code
154
155 \backslash
156 DeclareTextSymbolDefault{
157 \backslash
158 textmu}{TS1}
159 \end_layout
160
161 \begin_layout Standard
162 in the LaTeX preamble.
163 \end_layout
164
165 \end_deeper
166 \begin_layout Standard
167 Example:
168 \end_layout
169
170 \begin_layout Enumerate
171
172 \lang chinese-simplified
173 In order to include Chinese text (强调某处文本就是改变一下字体), we use CJKutf8.
174 \end_layout
175
176 \begin_layout Enumerate
177 Short texts in Latin, Greek, and Cyrillic may be written without setting
178  the language (hyphenation will be missing and spell-checking complain):
179  Greetings; Grüße; Приветы; χαιρετισμός.
180 \end_layout
181
182 \begin_layout Enumerate
183 Setting the correct language does not help:
184 \end_layout
185
186 \begin_deeper
187 \begin_layout Description
188
189 \lang ngerman
190 Deutsch: Grüße aus 5
191 \begin_inset space ~
192 \end_inset
193
194 µm Schnee.
195 \end_layout
196
197 \begin_layout Description
198
199 \lang ngerman
200 Griechisch: 
201 \lang greek
202 χαιρετισμός
203 \end_layout
204
205 \end_deeper
206 \end_body
207 \end_document