mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 03:23:12 +00:00
Fix up the enumitem module by separating out the Labeling code, so that
we do not have to copy and paste it. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38423 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
537952566a
commit
64bb8264b9
@ -70,30 +70,10 @@ End
|
|||||||
# Customisable LyX List
|
# Customisable LyX List
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
|
||||||
# We expect this already to be defined, but there may be some classes
|
Input stdlyxlist.inc
|
||||||
# that do not include stdlists.inc or do not declare Labeling. So we
|
|
||||||
# have copied the info from stdlists.inc.
|
|
||||||
# To make sure that we are starting fresh, we first clear everything.
|
|
||||||
NoStyle Labeling
|
|
||||||
|
|
||||||
Style Labeling
|
Style Labeling
|
||||||
# copied from stdlists.inc
|
|
||||||
Category List
|
|
||||||
LatexName elabeling
|
LatexName elabeling
|
||||||
OptionalArgs 1
|
|
||||||
Margin Manual
|
|
||||||
LatexType List_Environment
|
|
||||||
NextNoindent 1
|
|
||||||
LabelSep xxx
|
|
||||||
ParSkip 0.4
|
|
||||||
TopSep 0.7
|
|
||||||
BottomSep 0.7
|
|
||||||
ParSep 0.5
|
|
||||||
Align Block
|
|
||||||
AlignPossible Block, Left
|
|
||||||
LabelType Manual
|
|
||||||
LabelString "00.00.0000"
|
|
||||||
|
|
||||||
# FIXME This should probably be defined using \newlist instead
|
# FIXME This should probably be defined using \newlist instead
|
||||||
Preamble
|
Preamble
|
||||||
% labeling-like list based on enumitem's description list with
|
% labeling-like list based on enumitem's description list with
|
||||||
@ -104,24 +84,6 @@ Style Labeling
|
|||||||
leftmargin=\lyxlabelwidth,#1]}
|
leftmargin=\lyxlabelwidth,#1]}
|
||||||
{\end{description}}
|
{\end{description}}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
|
||||||
HTMLTag ol
|
|
||||||
HTMLAttr class='lyxlist'
|
|
||||||
HTMLItem li
|
|
||||||
HTMLLabel span
|
|
||||||
HTMLLabelAttr class='lyxlist'
|
|
||||||
HTMLStyle
|
|
||||||
ol.lyxlist {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
li.labeling_item {
|
|
||||||
text-indent: -5em;
|
|
||||||
margin-left: 5em;
|
|
||||||
}
|
|
||||||
span.lyxlist {
|
|
||||||
margin-right: 1em;
|
|
||||||
}
|
|
||||||
EndHTMLStyle
|
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
Format 35
|
Format 35
|
||||||
|
|
||||||
|
Input stdlyxlist.inc
|
||||||
|
|
||||||
Style Itemize
|
Style Itemize
|
||||||
Category List
|
Category List
|
||||||
Margin Static
|
Margin Static
|
||||||
@ -84,53 +86,6 @@ Style Description
|
|||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
Style Labeling
|
|
||||||
Category List
|
|
||||||
Margin Manual
|
|
||||||
LatexType List_Environment
|
|
||||||
LatexName lyxlist
|
|
||||||
NextNoindent 1
|
|
||||||
LabelSep xxx
|
|
||||||
ParSkip 0.4
|
|
||||||
TopSep 0.7
|
|
||||||
BottomSep 0.7
|
|
||||||
ParSep 0.5
|
|
||||||
Align Block
|
|
||||||
AlignPossible Block, Left
|
|
||||||
LabelType Manual
|
|
||||||
LabelString "00.00.0000"
|
|
||||||
HTMLTag ol
|
|
||||||
HTMLAttr class='lyxlist'
|
|
||||||
HTMLItem li
|
|
||||||
HTMLLabel span
|
|
||||||
HTMLLabelAttr class='lyxlist'
|
|
||||||
|
|
||||||
#define the environment lyxlist
|
|
||||||
Preamble
|
|
||||||
\newenvironment{lyxlist}[1]
|
|
||||||
{\begin{list}{}
|
|
||||||
{\settowidth{\labelwidth}{#1}
|
|
||||||
\setlength{\leftmargin}{\labelwidth}
|
|
||||||
\addtolength{\leftmargin}{\labelsep}
|
|
||||||
\renewcommand{\makelabel}[1]{##1\hfil}}}
|
|
||||||
{\end{list}}
|
|
||||||
EndPreamble
|
|
||||||
|
|
||||||
HTMLStyle
|
|
||||||
ol.lyxlist {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
li.labeling_item {
|
|
||||||
text-indent: -5em;
|
|
||||||
margin-left: 5em;
|
|
||||||
}
|
|
||||||
span.lyxlist {
|
|
||||||
margin-right: 1em;
|
|
||||||
}
|
|
||||||
EndHTMLStyle
|
|
||||||
End
|
|
||||||
|
|
||||||
|
|
||||||
Style List
|
Style List
|
||||||
Obsoletedby Labeling
|
Obsoletedby Labeling
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user