mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
5c54557350
Remove the trimming operation on LabelString, LabelStringAppendix, EndLabelString and LabelCounter. This trimming meant that quotes strings were not preserved, which is wrong. To preserve layouts, the Layout format has been updated to 64, so that layout2layout can remove extra spaces on existing strings, which ensures that behavior is unchanged for old layouts (courtesy of rgheck). It is now possible to re-add spaces in label strings where it makes sense. Fixes bug #10723.
79 lines
1.3 KiB
HTML
79 lines
1.3 KiB
HTML
# Author : Lars Gullik Bjønnes <larsbj@lyx.org>
|
|
|
|
# This include file contains all the counters that are defined as standard
|
|
# in most LyX layouts.
|
|
|
|
|
|
Format 64
|
|
Counter part
|
|
LabelString "\Roman{part}"
|
|
PrettyFormat "Part \Roman{part}"
|
|
End
|
|
|
|
Counter chapter
|
|
PrettyFormat "Chapter ##"
|
|
End
|
|
|
|
Counter section
|
|
Within chapter
|
|
PrettyFormat "Section ##"
|
|
End
|
|
|
|
Counter subsection
|
|
Within section
|
|
PrettyFormat "Section ##"
|
|
End
|
|
|
|
Counter subsubsection
|
|
Within subsection
|
|
PrettyFormat "Section ##"
|
|
End
|
|
|
|
Counter paragraph
|
|
Within subsubsection
|
|
PrettyFormat "Paragraph ##"
|
|
End
|
|
|
|
Counter subparagraph
|
|
Within paragraph
|
|
PrettyFormat "Paragraph ##"
|
|
End
|
|
|
|
Counter enumi
|
|
LabelString "\arabic{enumi}."
|
|
End
|
|
|
|
Counter enumii
|
|
Within enumi
|
|
LabelString "(\alph{enumii})"
|
|
End
|
|
|
|
Counter enumiii
|
|
Within enumii
|
|
LabelString "\roman{enumiii}."
|
|
End
|
|
|
|
Counter enumiv
|
|
Within enumiii
|
|
LabelString "\Alph{enumiv}."
|
|
End
|
|
|
|
Counter bibitem
|
|
End
|
|
|
|
Counter listing
|
|
End
|
|
|
|
Counter equation
|
|
PrettyFormat "Equation ##"
|
|
End
|
|
|
|
Counter footnote
|
|
PrettyFormat "Footnote ##"
|
|
End
|
|
|
|
Counter thanks
|
|
PrettyFormat "Footnote ##"
|
|
LabelString "\fnsymbol{thanks}"
|
|
End
|