mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Invert and document test for "longest labeling label" problem.
Fails for known reason.
This commit is contained in:
parent
58730c73d4
commit
26ed48a542
@ -6,7 +6,7 @@
|
||||
\origin unavailable
|
||||
\textclass article
|
||||
\begin_preamble
|
||||
\usepackage{pgfplots}
|
||||
|
||||
\end_preamble
|
||||
\use_default_options false
|
||||
\maintain_unincluded_children false
|
||||
@ -14,9 +14,9 @@
|
||||
\language_package default
|
||||
\inputencoding auto
|
||||
\fontencoding global
|
||||
\font_roman "default" "TeX Gyre Termes"
|
||||
\font_sans "default" "TeX Gyre Pagella"
|
||||
\font_typewriter "default" "TeX Gyre Cursor"
|
||||
\font_roman "default" "default"
|
||||
\font_sans "default" "default"
|
||||
\font_typewriter "default" "default"
|
||||
\font_math "auto" "auto"
|
||||
\font_default_family default
|
||||
\use_non_tex_fonts true
|
||||
@ -51,7 +51,7 @@
|
||||
\use_indices false
|
||||
\paperorientation portrait
|
||||
\suppress_date false
|
||||
\justification true
|
||||
\justification false
|
||||
\use_refstyle 0
|
||||
\index Register
|
||||
\shortcut idx
|
||||
@ -81,15 +81,67 @@
|
||||
\begin_body
|
||||
|
||||
\begin_layout Standard
|
||||
Setting the longest label to a string containing underscore leads to uncompilabl
|
||||
e document.
|
||||
See Paragraph Settings...Longest label
|
||||
The
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
longest label
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
marker in a labeling environment must be valid LaTeX (just like ERT).
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Setting the longest label to a string containing underscore (or another
|
||||
special character like
|
||||
\family typewriter
|
||||
|
||||
\backslash
|
||||
]$%#^
|
||||
\family default
|
||||
...) may lead to an uncompilable document (while in valid constructs like
|
||||
\family typewriter
|
||||
$
|
||||
\backslash
|
||||
sin^2 x_i$
|
||||
\family default
|
||||
they are OK).
|
||||
|
||||
\end_layout
|
||||
|
||||
\begin_layout Labeling
|
||||
\labelwidthstring Longest_Label_With_Underscore
|
||||
\noindent
|
||||
Longest_Label_With_Underscore Long label with underscore
|
||||
Label content.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Labeling
|
||||
\labelwidthstring Longest_Label_With_Underscore
|
||||
\noindent
|
||||
This labeling list has the longest label set to
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
Longest_Label_With_Underscore
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
.
|
||||
(See Edit>Paragraph>Settings...Longest label)
|
||||
\end_layout
|
||||
|
||||
\begin_layout Labeling
|
||||
\labelwidthstring Longest_Label_With_Underscore
|
||||
It fails with
|
||||
\begin_inset Quotes eld
|
||||
\end_inset
|
||||
|
||||
Missing $ inserted.
|
||||
\begin_inset Quotes erd
|
||||
\end_inset
|
||||
|
||||
|
||||
\end_layout
|
||||
|
||||
\end_body
|
||||
|
@ -84,6 +84,14 @@ export/examples/ko/splash_(dvi||pdf[23]?)
|
||||
export/mathmacros/testcases_speed_(lyx16|lyx21|dvi|pdf|pdf[23]|(dvi3|pdf[45])_(texF|systemF))
|
||||
check_load/mathmacros/testcases_speed
|
||||
|
||||
# The "longest label" marker in a labeling must be valid LaTeX (just like ERT).
|
||||
# What should we do:
|
||||
# - document this,
|
||||
# - escape special characters,
|
||||
# - convert to LaTeXString,
|
||||
# or just report this at Trac for now?
|
||||
export/export/LongestLabelWithUnderscore.*
|
||||
|
||||
|
||||
Sublabel: lyxbugs
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user