]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/lyxbugs-resolved/9633-languagenesting_index_inset.lyx
Remove unneeded std::move
[lyx.git] / autotests / export / latex / lyxbugs-resolved / 9633-languagenesting_index_inset.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 574
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass scrbook
8 \use_default_options false
9 \begin_modules
10 customHeadersFooters
11 enumitem
12 logicalmkup
13 \end_modules
14 \maintain_unincluded_children false
15 \language french
16 \language_package default
17 \inputencoding auto-legacy
18 \fontencoding auto
19 \font_roman "lmodern" "default"
20 \font_sans "lmss" "default"
21 \font_typewriter "lmtt" "default"
22 \font_math "auto" "auto"
23 \font_default_family default
24 \use_non_tex_fonts true
25 \font_sc false
26 \font_osf false
27 \font_sf_scale 100 100
28 \font_tt_scale 100 100
29 \use_microtype false
30 \use_dash_ligatures true
31 \graphics default
32 \default_output_format pdf4
33 \output_sync 0
34 \bibtex_command bibtex
35 \index_command default
36 \float_placement class
37 \float_alignment class
38 \paperfontsize 12
39 \spacing single
40 \use_hyperref false
41 \pdf_title "Guide de l'utilisateur de LyX"
42 \pdf_author "L'équipe LyX, Traduction: Adrien Rebollo, Siegfried Meunier-Guttin-Cluzel et Jean-Pierre Chrétien"
43 \pdf_subject "LyX"
44 \pdf_keywords "LyX"
45 \pdf_bookmarks true
46 \pdf_bookmarksnumbered true
47 \pdf_bookmarksopen false
48 \pdf_bookmarksopenlevel 1
49 \pdf_breaklinks false
50 \pdf_pdfborder false
51 \pdf_colorlinks true
52 \pdf_backref false
53 \pdf_pdfusetitle false
54 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
55 \papersize default
56 \use_geometry false
57 \use_package amsmath 1
58 \use_package amssymb 1
59 \use_package cancel 0
60 \use_package esint 1
61 \use_package mathdots 1
62 \use_package mathtools 0
63 \use_package mhchem 1
64 \use_package stackrel 0
65 \use_package stmaryrd 0
66 \use_package undertilde 0
67 \cite_engine basic
68 \cite_engine_type default
69 \biblio_style plain
70 \use_bibtopic false
71 \use_indices false
72 \paperorientation portrait
73 \suppress_date false
74 \justification true
75 \use_refstyle 1
76 \use_minted 0
77 \notefontcolor #0000ff
78 \branch Question
79 \selected 1
80 \filename_suffix 0
81 \color #00ff00
82 \end_branch
83 \branch Réponse
84 \selected 0
85 \filename_suffix 0
86 \color #aa55ff
87 \end_branch
88 \index Index
89 \shortcut idx
90 \color #008000
91 \end_index
92 \secnumdepth 3
93 \tocdepth 2
94 \paragraph_separation skip
95 \defskip medskip
96 \is_math_indent 0
97 \math_numbering_side default
98 \quotes_style swiss
99 \dynamic_quotes 0
100 \papercolumns 1
101 \papersides 2
102 \paperpagestyle default
103 \tablestyle default
104 \tracking_changes false
105 \output_changes false
106 \html_math_output 0
107 \html_css_as_file 0
108 \html_be_strict false
109 \end_header
110
111 \begin_body
112
113 \begin_layout Standard
114 \paragraph_spacing single
115 Verbatim
116 \begin_inset Index idx
117 status open
118
119 \begin_layout Plain Layout
120
121 \lang english
122 Verbatim
123 \end_layout
124
125 \end_inset
126
127
128 \end_layout
129
130 \begin_layout Standard
131 If the index inset contains English text but the rest of the document is
132  french, compilation fails with 
133 \end_layout
134
135 \begin_layout LyX-Code
136 ! LaTeX Error: 
137 \backslash
138 begin{otherlanguage} on input line 10 ended by 
139 \backslash
140 end{theindex}.
141 \end_layout
142
143 \begin_layout Standard
144 with language package Polyglossia while no error is shown with Babel.
145 \end_layout
146
147 \begin_layout Standard
148 (Should we prevent language switches in index insets?)
149 \end_layout
150
151 \begin_layout Standard
152 If the index inset is in a section heading, the error is cryptic:
153 \end_layout
154
155 \begin_layout LyX-Code
156 ! Undefined control sequence.
157  
158 \backslash
159 in@ #1#2->
160 \backslash
161 begingroup 
162 \backslash
163 def 
164 \backslash
165 in@@ ##1#1{}
166 \backslash
167 toks@ 
168 \backslash
169 expandafter {
170 \backslash
171 in@@ #2{}{}#1...
172  l.42 }}
173 \end_layout
174
175 \begin_layout Standard
176 \begin_inset CommandInset nomencl_print
177 LatexCommand printnomenclature
178 set_width "auto"
179
180 \end_inset
181
182
183 \begin_inset CommandInset index_print
184 LatexCommand printindex
185 type "idx"
186 name "Index"
187 literal "true"
188
189 \end_inset
190
191
192 \end_layout
193
194 \end_body
195 \end_document