]> git.lyx.org Git - features.git/blob - autotests/export/latex/misplaced-inputenc-switch.lyx
ctest update.
[features.git] / autotests / export / latex / misplaced-inputenc-switch.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 569
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass article
8 \use_default_options false
9 \maintain_unincluded_children false
10 \language english
11 \language_package default
12 \inputencoding auto
13 \fontencoding auto
14 \font_roman "lmodern" "DejaVu Serif"
15 \font_sans "default" "DejaVu Sans"
16 \font_typewriter "default" "DejaVu Sans Mono"
17 \font_math "auto" "auto"
18 \font_default_family default
19 \use_non_tex_fonts false
20 \font_sc false
21 \font_osf false
22 \font_sf_scale 100 100
23 \font_tt_scale 100 100
24 \use_microtype false
25 \use_dash_ligatures true
26 \graphics default
27 \default_output_format pdf2
28 \output_sync 0
29 \bibtex_command default
30 \index_command default
31 \float_placement class
32 \float_alignment class
33 \paperfontsize default
34 \spacing single
35 \use_hyperref false
36 \pdf_bookmarks false
37 \pdf_bookmarksnumbered false
38 \pdf_bookmarksopen false
39 \pdf_bookmarksopenlevel 1
40 \pdf_breaklinks false
41 \pdf_pdfborder true
42 \pdf_colorlinks true
43 \pdf_backref section
44 \pdf_pdfusetitle true
45 \papersize a4paper
46 \use_geometry false
47 \use_package amsmath 1
48 \use_package amssymb 1
49 \use_package cancel 1
50 \use_package esint 1
51 \use_package mathdots 1
52 \use_package mathtools 1
53 \use_package mhchem 1
54 \use_package stackrel 1
55 \use_package stmaryrd 1
56 \use_package undertilde 1
57 \cite_engine basic
58 \cite_engine_type default
59 \biblio_style plain
60 \use_bibtopic false
61 \use_indices false
62 \paperorientation portrait
63 \suppress_date false
64 \justification true
65 \use_refstyle 0
66 \use_minted 0
67 \index Stichwortverzeichnis
68 \shortcut idx
69 \color #008000
70 \end_index
71 \secnumdepth 3
72 \tocdepth 3
73 \paragraph_separation indent
74 \paragraph_indentation default
75 \is_math_indent 0
76 \math_numbering_side default
77 \quotes_style english
78 \dynamic_quotes 0
79 \papercolumns 1
80 \papersides 1
81 \paperpagestyle default
82 \tablestyle default
83 \tracking_changes false
84 \output_changes false
85 \html_math_output 0
86 \html_css_as_file 0
87 \html_be_strict false
88 \end_header
89
90 \begin_body
91
92 \begin_layout Standard
93 \begin_inset CommandInset href
94 LatexCommand href
95 name "LyX-Bug #11532"
96 target "https://www.lyx.org/trac/ticket/11532"
97 literal "false"
98
99 \end_inset
100
101 : Sometimes, an inputencoding switch is limited to a group by LaTeX but
102  LyX does not take this into account and subsequent non-ASCII characters
103  fail.
104 \end_layout
105
106 \begin_layout Subsection*
107 Example
108 \end_layout
109
110 \begin_layout Standard
111 Paragraph in Cyrillic followed by 
112 \emph on
113 Description
114 \emph default
115  list:
116 \end_layout
117
118 \begin_layout Standard
119
120 \emph on
121 \lang bulgarian
122 Бъ̀лгарският езѝк
123 \emph default
124  е индоевропейски език от групата на южнославянските езици.
125 \end_layout
126
127 \begin_layout Description
128 term
129 \begin_inset space ~
130 \end_inset
131
132 with
133 \begin_inset space ~
134 \end_inset
135
136 inputenc
137 \begin_inset space ~
138 \end_inset
139
140 latin9 Definition: LyX assumes input encoding latin9, but for LaTeX it is
141  again cp1251! 
142 \end_layout
143
144 \begin_deeper
145 \begin_layout Standard
146 Da kommt größter Mist raus! cp1251 misses ð and Þ
147 \end_layout
148
149 \begin_layout Standard
150 If a new language in a nested paragraph uses the same inputencoding as the
151  current language, there is still no switch: 
152 \emph on
153 \lang icelandic
154 Íslenska
155 \emph default
156  er talað og ritað á Íslandi.
157 \end_layout
158
159 \end_deeper
160 \begin_layout Standard
161 After the list, the inputencoding is set accordingly:
162 \end_layout
163
164 \begin_layout Standard
165 latin9 supports ð and Þ.
166 \end_layout
167
168 \begin_layout Subsection*
169 Example 2
170 \end_layout
171
172 \begin_layout Standard
173 Paragraph in Cyrillic followed by 
174 \emph on
175 Labeling
176 \emph default
177  list:
178 \end_layout
179
180 \begin_layout Standard
181
182 \emph on
183 \lang bulgarian
184 Бъ̀лгарският езѝк
185 \emph default
186  е индоевропейски език.
187 \end_layout
188
189 \begin_layout Labeling
190 \labelwidthstring 00.00.0000
191 term LyX assumes inputencoding latin9, but for LaTeX it is again cp1251!
192 \end_layout
193
194 \begin_deeper
195 \begin_layout Standard
196 Da kommt größter Mist raus! cp1251 misses ð and Þ
197 \end_layout
198
199 \begin_layout Standard
200 If a new language in a nested paragraph uses the same inputencoding as the
201  current language, there is still no switch: 
202 \emph on
203 \lang icelandic
204 Íslenska
205 \emph default
206  er talað og ritað á Íslandi.
207 \end_layout
208
209 \end_deeper
210 \begin_layout Standard
211 After the list, the inputencoding is set accordingly:
212 \end_layout
213
214 \begin_layout Standard
215 latin9 supports ð and Þ.
216 \end_layout
217
218 \end_body
219 \end_document