]> git.lyx.org Git - lyx.git/blob - autotests/export/LongestLabelWithUnderscore.lyx
When handling mouse events, make the undo group a bit larger
[lyx.git] / autotests / export / LongestLabelWithUnderscore.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 504
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 \graphics default
28 \default_output_format pdf5
29 \output_sync 0
30 \bibtex_command default
31 \index_command default
32 \paperfontsize default
33 \spacing single
34 \use_hyperref false
35 \papersize a4paper
36 \use_geometry false
37 \use_package amsmath 0
38 \use_package amssymb 0
39 \use_package cancel 0
40 \use_package esint 0
41 \use_package mathdots 0
42 \use_package mathtools 0
43 \use_package mhchem 0
44 \use_package stackrel 0
45 \use_package stmaryrd 0
46 \use_package undertilde 0
47 \cite_engine basic
48 \cite_engine_type default
49 \biblio_style plain
50 \use_bibtopic false
51 \use_indices false
52 \paperorientation portrait
53 \suppress_date false
54 \justification false
55 \use_refstyle 0
56 \index Register
57 \shortcut idx
58 \color #008000
59 \end_index
60 \paperwidth 22cm
61 \paperheight 11cm
62 \leftmargin 1cm
63 \topmargin 0cm
64 \rightmargin 1cm
65 \bottommargin 0cm
66 \secnumdepth 3
67 \tocdepth 3
68 \paragraph_separation skip
69 \defskip medskip
70 \quotes_language english
71 \papercolumns 1
72 \papersides 1
73 \paperpagestyle empty
74 \tracking_changes false
75 \output_changes false
76 \html_math_output 0
77 \html_css_as_file 0
78 \html_be_strict false
79 \end_header
80
81 \begin_body
82
83 \begin_layout Standard
84 The 
85 \begin_inset Quotes eld
86 \end_inset
87
88 longest label
89 \begin_inset Quotes erd
90 \end_inset
91
92  marker in a labeling environment must be valid LaTeX (just like ERT).
93 \end_layout
94
95 \begin_layout Standard
96 Setting the longest label to a string containing underscore (or another
97  special character like 
98 \family typewriter
99
100 \backslash
101 ]$%#^
102 \family default
103 ...) may lead to an uncompilable document (while in valid constructs like 
104 \family typewriter
105 $
106 \backslash
107 sin^2 x_i$
108 \family default
109  they are OK).
110  
111 \end_layout
112
113 \begin_layout Labeling
114 \labelwidthstring Longest_Label_With_Underscore
115 \noindent
116 Label content.
117 \end_layout
118
119 \begin_layout Labeling
120 \labelwidthstring Longest_Label_With_Underscore
121 \noindent
122 This labeling list has the longest label set to 
123 \begin_inset Quotes eld
124 \end_inset
125
126 Longest_Label_With_Underscore
127 \begin_inset Quotes erd
128 \end_inset
129
130 .
131  (See Edit>Paragraph>Settings...Longest label)
132 \end_layout
133
134 \begin_layout Labeling
135 \labelwidthstring Longest_Label_With_Underscore
136 It fails with 
137 \begin_inset Quotes eld
138 \end_inset
139
140 Missing $ inserted.
141 \begin_inset Quotes erd
142 \end_inset
143
144
145 \end_layout
146
147 \end_body
148 \end_document