]> git.lyx.org Git - features.git/blob - autotests/export/latex/CJK/zh_CN-toc.lyx
ctests: Update Chinese report example.
[features.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 566
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-cjk
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 true
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 \tracking_changes false
91 \output_changes false
92 \html_math_output 0
93 \html_css_as_file 0
94 \html_be_strict false
95 \end_header
96
97 \begin_body
98
99 \begin_layout Standard
100 \begin_inset CommandInset toc
101 LatexCommand tableofcontents
102
103 \end_inset
104
105
106 \end_layout
107
108 \begin_layout Chapter
109 \SpecialChar LyX
110
111 \end_layout
112
113 \begin_layout Standard
114 This is a Chinese test document for \SpecialChar LyX
115  with the CJK package.
116 \end_layout
117
118 \begin_layout Itemize
119 \noindent
120 The 
121 \emph on
122 Table of Contents 
123 \emph default
124 heading appears as 
125 \begin_inset Quotes eld
126 \end_inset
127
128 Contents
129 \begin_inset Quotes erd
130 \end_inset
131
132  with PDF (pdflatex).
133  This is fixed with 
134 \begin_inset Quotes eld
135 \end_inset
136
137 non-TeX fonts
138 \begin_inset Quotes erd
139 \end_inset
140
141  by use of the 
142 \begin_inset Quotes eld
143 \end_inset
144
145 ctex
146 \begin_inset Quotes erd
147 \end_inset
148
149  package (see preamble).
150 \end_layout
151
152 \begin_layout Itemize
153 The prefix 
154 \emph on
155 Chapter
156 \emph default
157  in the chapter heading is not translated — not even with 
158 \begin_inset Quotes eld
159 \end_inset
160
161 ctex
162 \begin_inset Quotes erd
163 \end_inset
164
165 .
166 \end_layout
167
168 \begin_layout Itemize
169 \noindent
170 Without a 
171 \backslash
172 clearpage before closing the 
173 \begin_inset Quotes eld
174 \end_inset
175
176 CJK
177 \begin_inset Quotes erd
178 \end_inset
179
180  environment, Chinese characters in a section title lead to errors like
181 \end_layout
182
183 \begin_deeper
184 \begin_layout LyX-Code
185 \noindent
186 ! Package inputenc Error: Unicode char 中 (U+4E2D) 
187 \end_layout
188
189 \begin_layout LyX-Code
190 \noindent
191 (inputenc) not set up for use with LaTeX.
192 \end_layout
193
194 \begin_layout Standard
195 \paragraph_spacing single
196 \noindent
197 (cf.
198  Test document for part
199 \begin_inset space ~
200 \end_inset
201
202 2 of 
203 \begin_inset CommandInset href
204 LatexCommand href
205 name "#5386"
206 target "https://www.lyx.org/trac/ticket/5386"
207 literal "false"
208
209 \end_inset
210
211 ).
212 \end_layout
213
214 \end_deeper
215 \begin_layout Section
216 Section in English
217 \end_layout
218
219 \begin_layout Standard
220 This section head is in English.
221 \end_layout
222
223 \begin_layout Section
224 Section in Chinese 中文名
225 \end_layout
226
227 \begin_layout Standard
228 This section head is in Chinese.
229  這節的標題是中文。
230 \end_layout
231
232 \end_body
233 \end_document