]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/LongestLabelWithUnderscore.lyx
Amend d53a13a: Bug 11519 only manifests if inputenc != "auto".
[lyx.git] / autotests / export / latex / LongestLabelWithUnderscore.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 article
8 \begin_preamble
9
10 \end_preamble
11 \use_default_options false
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto
16 \fontencoding global
17 \font_roman "default" "default"
18 \font_sans "default" "default"
19 \font_typewriter "default" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts true
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \use_microtype false
28 \graphics default
29 \default_output_format pdf5
30 \output_sync 0
31 \bibtex_command default
32 \index_command default
33 \paperfontsize default
34 \spacing single
35 \use_hyperref false
36 \papersize a4paper
37 \use_geometry false
38 \use_package amsmath 0
39 \use_package amssymb 0
40 \use_package cancel 0
41 \use_package esint 0
42 \use_package mathdots 0
43 \use_package mathtools 0
44 \use_package mhchem 0
45 \use_package stackrel 0
46 \use_package stmaryrd 0
47 \use_package undertilde 0
48 \cite_engine basic
49 \cite_engine_type default
50 \biblio_style plain
51 \use_bibtopic false
52 \use_indices false
53 \paperorientation portrait
54 \suppress_date false
55 \justification false
56 \use_refstyle 0
57 \index Register
58 \shortcut idx
59 \color #008000
60 \end_index
61 \paperwidth 22cm
62 \paperheight 11cm
63 \leftmargin 1cm
64 \topmargin 0cm
65 \rightmargin 1cm
66 \bottommargin 0cm
67 \secnumdepth 3
68 \tocdepth 3
69 \paragraph_separation skip
70 \defskip medskip
71 \quotes_language english
72 \papercolumns 1
73 \papersides 1
74 \paperpagestyle empty
75 \tracking_changes false
76 \output_changes false
77 \html_math_output 0
78 \html_css_as_file 0
79 \html_be_strict false
80 \end_header
81
82 \begin_body
83
84 \begin_layout Standard
85 The 
86 \begin_inset Quotes eld
87 \end_inset
88
89 longest label
90 \begin_inset Quotes erd
91 \end_inset
92
93  marker in a labeling environment must be valid LaTeX (just like ERT).
94 \end_layout
95
96 \begin_layout Standard
97 This means that setting the longest label to a string containing an underscore
98  (or another special character like 
99 \family typewriter
100
101 \backslash
102 ]$%#^
103 \family default
104 ...) leads to an uncompilable document (except for valid LaTeX constructs like
105  
106 \family typewriter
107 $
108 \backslash
109 sin^2 x_i$
110 \family default
111 ).
112  
113 \end_layout
114
115 \begin_layout Labeling
116 \labelwidthstring Longest_Label_With_Underscore
117 \noindent
118 Label content.
119 \end_layout
120
121 \begin_layout Labeling
122 \labelwidthstring Longest_Label_With_Underscore
123 \noindent
124 This labeling list has the longest label set to 
125 \begin_inset Quotes eld
126 \end_inset
127
128 Longest_Label_With_Underscore
129 \begin_inset Quotes erd
130 \end_inset
131
132 .
133  (See Edit>Paragraph>Settings...Longest label)
134 \end_layout
135
136 \begin_layout Labeling
137 \labelwidthstring Longest_Label_With_Underscore
138 It fails with 
139 \begin_inset Quotes eld
140 \end_inset
141
142 Missing $ inserted.
143 \begin_inset Quotes erd
144 \end_inset
145
146
147 \end_layout
148
149 \end_body
150 \end_document