lyx_mirror/autotests/export/latex/languagenesting_index_inset.lyx

186 lines
3.5 KiB
Plaintext
Raw Normal View History

#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 512
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrbook
\use_default_options false
\begin_modules
customHeadersFooters
enumitem
logicalmkup
\end_modules
\maintain_unincluded_children false
\language french
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "lmtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts true
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format pdf5
\output_sync 0
\bibtex_command bibtex
\index_command default
\paperfontsize 12
\spacing single
\use_hyperref false
\pdf_title "Guide de l'utilisateur de LyX"
\pdf_author "L'équipe LyX, Traduction: Adrien Rebollo, Siegfried Meunier-Guttin-Cluzel et Jean-Pierre Chrétien"
\pdf_subject "LyX"
\pdf_keywords "LyX"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 0
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 0
\use_package mhchem 1
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\notefontcolor #0000ff
\branch Question
\selected 1
\filename_suffix 0
\color #00ff00
\end_branch
\branch Réponse
\selected 0
\filename_suffix 0
\color #aa55ff
\end_branch
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 2
\paragraph_separation skip
\defskip medskip
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\paragraph_spacing single
Verbatim
\begin_inset Index idx
status open
\begin_layout Plain Layout
\lang english
Verbatim
\end_layout
\end_inset
\end_layout
\begin_layout Standard
If the index inset contains English text but the rest of the document is
french, compilation fails with
\end_layout
\begin_layout LyX-Code
! LaTeX Error:
\backslash
begin{otherlanguage} on input line 10 ended by
\backslash
end{theindex}.
\end_layout
\begin_layout Standard
with language package Polyglossia while no error is shown with Babel.
\end_layout
\begin_layout Standard
(Should we prevent language switches in index insets?)
\end_layout
\begin_layout Standard
If the index inset is in a section heading, the error is cryptic:
\end_layout
\begin_layout LyX-Code
! Undefined control sequence.
\backslash
in@ #1#2->
\backslash
begingroup
\backslash
def
\backslash
in@@ ##1#1{}
\backslash
toks@
\backslash
expandafter {
\backslash
in@@ #2{}{}#1...
l.42 }}
\end_layout
\begin_layout Standard
\begin_inset CommandInset nomencl_print
LatexCommand printnomenclature
set_width "auto"
\end_inset
\begin_inset CommandInset index_print
LatexCommand printindex
type "idx"
\end_inset
\end_layout
\end_body
\end_document