]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/languagenesting_index_inset.lyx
Update some special latex export tests.
[lyx.git] / autotests / export / latex / languagenesting_index_inset.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 512
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
18 \fontencoding global
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 \graphics default
31 \default_output_format pdf5
32 \output_sync 0
33 \bibtex_command bibtex
34 \index_command default
35 \paperfontsize 12
36 \spacing single
37 \use_hyperref false
38 \pdf_title "Guide de l'utilisateur de LyX"
39 \pdf_author "L'équipe LyX, Traduction: Adrien Rebollo, Siegfried Meunier-Guttin-Cluzel et Jean-Pierre Chrétien"
40 \pdf_subject "LyX"
41 \pdf_keywords "LyX"
42 \pdf_bookmarks true
43 \pdf_bookmarksnumbered true
44 \pdf_bookmarksopen false
45 \pdf_bookmarksopenlevel 1
46 \pdf_breaklinks false
47 \pdf_pdfborder false
48 \pdf_colorlinks true
49 \pdf_backref false
50 \pdf_pdfusetitle false
51 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
52 \papersize default
53 \use_geometry false
54 \use_package amsmath 1
55 \use_package amssymb 1
56 \use_package cancel 0
57 \use_package esint 1
58 \use_package mathdots 1
59 \use_package mathtools 0
60 \use_package mhchem 1
61 \use_package stackrel 0
62 \use_package stmaryrd 0
63 \use_package undertilde 0
64 \cite_engine basic
65 \cite_engine_type default
66 \biblio_style plain
67 \use_bibtopic false
68 \use_indices false
69 \paperorientation portrait
70 \suppress_date false
71 \justification true
72 \use_refstyle 1
73 \notefontcolor #0000ff
74 \branch Question
75 \selected 1
76 \filename_suffix 0
77 \color #00ff00
78 \end_branch
79 \branch Réponse
80 \selected 0
81 \filename_suffix 0
82 \color #aa55ff
83 \end_branch
84 \index Index
85 \shortcut idx
86 \color #008000
87 \end_index
88 \secnumdepth 3
89 \tocdepth 2
90 \paragraph_separation skip
91 \defskip medskip
92 \quotes_language french
93 \papercolumns 1
94 \papersides 2
95 \paperpagestyle default
96 \tracking_changes false
97 \output_changes false
98 \html_math_output 0
99 \html_css_as_file 0
100 \html_be_strict false
101 \end_header
102
103 \begin_body
104
105 \begin_layout Standard
106 \paragraph_spacing single
107 Verbatim
108 \begin_inset Index idx
109 status open
110
111 \begin_layout Plain Layout
112
113 \lang english
114 Verbatim
115 \end_layout
116
117 \end_inset
118
119
120 \end_layout
121
122 \begin_layout Standard
123 If the index inset contains English text but the rest of the document is
124  french, compilation fails with 
125 \end_layout
126
127 \begin_layout LyX-Code
128 ! LaTeX Error: 
129 \backslash
130 begin{otherlanguage} on input line 10 ended by 
131 \backslash
132 end{theindex}.
133 \end_layout
134
135 \begin_layout Standard
136 with language package Polyglossia while no error is shown with Babel.
137 \end_layout
138
139 \begin_layout Standard
140 (Should we prevent language switches in index insets?)
141 \end_layout
142
143 \begin_layout Standard
144 If the index inset is in a section heading, the error is cryptic:
145 \end_layout
146
147 \begin_layout LyX-Code
148 ! Undefined control sequence.
149  
150 \backslash
151 in@ #1#2->
152 \backslash
153 begingroup 
154 \backslash
155 def 
156 \backslash
157 in@@ ##1#1{}
158 \backslash
159 toks@ 
160 \backslash
161 expandafter {
162 \backslash
163 in@@ #2{}{}#1...
164  l.42 }}
165 \end_layout
166
167 \begin_layout Standard
168 \begin_inset CommandInset nomencl_print
169 LatexCommand printnomenclature
170 set_width "auto"
171
172 \end_inset
173
174
175 \begin_inset CommandInset index_print
176 LatexCommand printindex
177 type "idx"
178
179 \end_inset
180
181
182 \end_layout
183
184 \end_body
185 \end_document