]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/CJK/zh_CN-toc.lyx
Fixup 999fb37e: always run updateMacros when in batch mode
[lyx.git] / autotests / export / latex / CJK / zh_CN-toc.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 573
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass report
8 \begin_preamble
9 % Chinese localization
10 \@ifpackageloaded{fontspec}%
11 {\usepackage{ctex}}% ctex with non-TeX fonts
12 {%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
13 }
14 \end_preamble
15 \use_default_options false
16 \maintain_unincluded_children false
17 \language chinese-traditional
18 \language_package default
19 \inputencoding utf8
20 \fontencoding auto
21 \font_roman "lmodern" "default"
22 \font_sans "default" "default"
23 \font_typewriter "default" "default"
24 \font_math "auto" "auto"
25 \font_default_family default
26 \use_non_tex_fonts false
27 \font_sc false
28 \font_osf false
29 \font_sf_scale 100 100
30 \font_tt_scale 100 100
31 \font_cjk bsmi
32 \use_microtype false
33 \use_dash_ligatures false
34 \graphics default
35 \default_output_format default
36 \output_sync 0
37 \bibtex_command default
38 \index_command default
39 \float_placement class
40 \float_alignment class
41 \paperfontsize 12
42 \spacing single
43 \use_hyperref true
44 \pdf_bookmarks true
45 \pdf_bookmarksnumbered false
46 \pdf_bookmarksopen true
47 \pdf_bookmarksopenlevel 1
48 \pdf_breaklinks false
49 \pdf_pdfborder false
50 \pdf_colorlinks true
51 \pdf_backref false
52 \pdf_pdfusetitle true
53 \papersize a4paper
54 \use_geometry false
55 \use_package amsmath 1
56 \use_package amssymb 1
57 \use_package cancel 1
58 \use_package esint 1
59 \use_package mathdots 0
60 \use_package mathtools 1
61 \use_package mhchem 1
62 \use_package stackrel 1
63 \use_package stmaryrd 1
64 \use_package undertilde 1
65 \cite_engine basic
66 \cite_engine_type default
67 \biblio_style plain
68 \use_bibtopic false
69 \use_indices false
70 \paperorientation portrait
71 \suppress_date false
72 \justification true
73 \use_refstyle 0
74 \use_minted 0
75 \index 索引
76 \shortcut idx
77 \color #008000
78 \end_index
79 \secnumdepth 3
80 \tocdepth 3
81 \paragraph_separation skip
82 \defskip 2ex
83 \is_math_indent 0
84 \math_numbering_side default
85 \quotes_style english
86 \dynamic_quotes 0
87 \papercolumns 1
88 \papersides 1
89 \paperpagestyle default
90 \tablestyle default
91 \tracking_changes false
92 \output_changes false
93 \html_math_output 0
94 \html_css_as_file 0
95 \html_be_strict false
96 \end_header
97
98 \begin_body
99
100 \begin_layout Standard
101 \begin_inset CommandInset toc
102 LatexCommand tableofcontents
103
104 \end_inset
105
106
107 \end_layout
108
109 \begin_layout Chapter
110 \SpecialChar LyX
111
112 \end_layout
113
114 \begin_layout Standard
115 This is a Chinese test document for \SpecialChar LyX
116  with the CJK package.
117 \end_layout
118
119 \begin_layout Itemize
120 \noindent
121 The 
122 \emph on
123 Table of Contents 
124 \emph default
125 heading appears as 
126 \begin_inset Quotes eld
127 \end_inset
128
129 Contents
130 \begin_inset Quotes erd
131 \end_inset
132
133  with PDF (pdflatex).
134  This is fixed with 
135 \begin_inset Quotes eld
136 \end_inset
137
138 non-TeX fonts
139 \begin_inset Quotes erd
140 \end_inset
141
142  by use of the 
143 \begin_inset Quotes eld
144 \end_inset
145
146 ctex
147 \begin_inset Quotes erd
148 \end_inset
149
150  package (see preamble).
151 \end_layout
152
153 \begin_layout Itemize
154 The prefix 
155 \emph on
156 Chapter
157 \emph default
158  in the chapter heading is not translated — not even with 
159 \begin_inset Quotes eld
160 \end_inset
161
162 ctex
163 \begin_inset Quotes erd
164 \end_inset
165
166 .
167 \end_layout
168
169 \begin_layout Itemize
170 \noindent
171 Without a 
172 \backslash
173 clearpage before closing the 
174 \begin_inset Quotes eld
175 \end_inset
176
177 CJK
178 \begin_inset Quotes erd
179 \end_inset
180
181  environment, Chinese characters in a section title lead to errors like
182 \end_layout
183
184 \begin_deeper
185 \begin_layout LyX-Code
186 \noindent
187 ! Package inputenc Error: Unicode char 中 (U+4E2D) 
188 \end_layout
189
190 \begin_layout LyX-Code
191 \noindent
192 (inputenc) not set up for use with LaTeX.
193 \end_layout
194
195 \begin_layout Standard
196 \paragraph_spacing single
197 \noindent
198 (cf.
199  Test document for part
200 \begin_inset space ~
201 \end_inset
202
203 2 of 
204 \begin_inset CommandInset href
205 LatexCommand href
206 name "#5386"
207 target "https://www.lyx.org/trac/ticket/5386"
208 literal "false"
209
210 \end_inset
211
212 ).
213 \end_layout
214
215 \end_deeper
216 \begin_layout Section
217 Section in English
218 \end_layout
219
220 \begin_layout Standard
221 This section head is in English.
222 \end_layout
223
224 \begin_layout Section
225 Section in Chinese 中文名
226 \end_layout
227
228 \begin_layout Standard
229 This section head is in Chinese.
230  這節的標題是中文。
231 \end_layout
232
233 \end_body
234 \end_document