mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Covington now provides subexamples itself
Candidate for stable.
This commit is contained in:
parent
399a4d7e71
commit
ab16bb7eb9
@ -95,20 +95,26 @@ Style Numbered_Examples_(consecutive)
|
||||
End
|
||||
|
||||
|
||||
# multiple numbered example with covington.sty
|
||||
# multiple numbered examples with covington.sty
|
||||
Style Subexample
|
||||
CopyStyle Numbered_Examples_(consecutive)
|
||||
LatexName subexample
|
||||
LatexName covsubexamples
|
||||
LabelCounter "subexample"
|
||||
StepMasterCounter true
|
||||
Requires covington,enumitem
|
||||
Requires covington
|
||||
Preamble
|
||||
\newenvironment{subexample}{%
|
||||
\begin{example}\begin{enumerate}[leftmargin=1.7em]
|
||||
\renewcommand\theenumi{\alph{enumi}}
|
||||
\renewcommand\labelenumi{(\theenumi)}
|
||||
\renewcommand\p@enumi{\theequation\,}}%
|
||||
{\end{enumerate}\end{example}}
|
||||
% Backwards compatibility with covington < 1.6
|
||||
% This code can be removed eventually
|
||||
\@ifundefined{covsubexamples}{%
|
||||
\newenvironment{covsubexamples}{%
|
||||
\addtolength{\examplenumbersep}{-0.5em}%
|
||||
\begin{covexample}%
|
||||
\begin{enumerate}
|
||||
\renewcommand\theenumi{\alph{enumi}}
|
||||
\renewcommand\labelenumi{(\theenumi)}
|
||||
\renewcommand\p@enumi{\theequation\,}}%
|
||||
{\end{enumerate}\end{covexample}}
|
||||
}{}
|
||||
EndPreamble
|
||||
End
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user