]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/misplaced-inputenc-switch.lyx
Test for #11532 "inputencoding desynchronisation".
[lyx.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 LyX-Bug: Sometimes, an inputencoding switch is limited to a group by LaTeX
94  but LyX does not take this into account and subsequent non-ASCII characters
95  fail.
96 \end_layout
97
98 \begin_layout Subsection*
99 Example
100 \end_layout
101
102 \begin_layout Standard
103 Paragraph in Cyrillic followed by 
104 \emph on
105 Description
106 \emph default
107  list:
108 \end_layout
109
110 \begin_layout Standard
111
112 \emph on
113 \lang bulgarian
114 Бъ̀лгарският езѝк
115 \emph default
116  е индоевропейски език от групата на южнославянските езици.
117 \end_layout
118
119 \begin_layout Description
120 term
121 \begin_inset space ~
122 \end_inset
123
124 with
125 \begin_inset space ~
126 \end_inset
127
128 inputenc
129 \begin_inset space ~
130 \end_inset
131
132 latin9 Definition: LyX assumes input encoding latin9, but for LaTeX it is
133  again cp1251! 
134 \end_layout
135
136 \begin_deeper
137 \begin_layout Standard
138 Da kommt größter Mist raus! cp1251 misses ð and Þ
139 \end_layout
140
141 \begin_layout Standard
142 If a new language in a nested paragraph uses the same inputencoding as the
143  current language, there is still no switch: 
144 \emph on
145 \lang icelandic
146 Íslenska
147 \emph default
148  er talað og ritað á Íslandi.
149 \end_layout
150
151 \end_deeper
152 \begin_layout Standard
153 After the list, the inputencoding is set accordingly:
154 \end_layout
155
156 \begin_layout Standard
157 latin9 supports ð and Þ.
158 \end_layout
159
160 \begin_layout Subsection*
161 Example 2
162 \end_layout
163
164 \begin_layout Standard
165 Paragraph in Cyrillic followed by 
166 \emph on
167 Labeling
168 \emph default
169  list:
170 \end_layout
171
172 \begin_layout Standard
173
174 \emph on
175 \lang bulgarian
176 Бъ̀лгарският езѝк
177 \emph default
178  е индоевропейски език.
179 \end_layout
180
181 \begin_layout Labeling
182 \labelwidthstring 00.00.0000
183 term LyX assumes inputencoding latin9, but for LaTeX it is again cp1251!
184 \end_layout
185
186 \begin_deeper
187 \begin_layout Standard
188 Da kommt größter Mist raus! cp1251 misses ð and Þ
189 \end_layout
190
191 \begin_layout Standard
192 If a new language in a nested paragraph uses the same inputencoding as the
193  current language, there is still no switch: 
194 \emph on
195 \lang icelandic
196 Íslenska
197 \emph default
198  er talað og ritað á Íslandi.
199 \end_layout
200
201 \end_deeper
202 \begin_layout Standard
203 After the list, the inputencoding is set accordingly:
204 \end_layout
205
206 \begin_layout Standard
207 latin9 supports ð and Þ.
208 \end_layout
209
210 \end_body
211 \end_document