mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
53436891f7
This allows to address two main issues * \thanks does only accept one paragraph, while \footnote allows several (ticket #2666) * footnotes in titling environments were not numbered on screen. Moreover, the code reduces hardcoding of features, which is always a good thing. There are several pieces in this commit: * new numbering type \fnsymbol for counters * the Foot inset changes its layoutName() to Foot:InTitle when inside a paragraph with InTitle property. This is set when running updateBuffer. * Foot:intitle uses the \thanks command, does not allow multiple paragraphs and marks its contents as moving argument. * The InsetLayouts for Foot now have properLaTeXName/Type, so that InsetFoot::latex can be removed; further code simplification is probably possible. * HTML preamble has been updated (thanks rgheck). Fixes: #2666
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 49
|
|
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
|