Covington now provides subexamples itself

Candidate for stable.

(cherry picked from commit ab16bb7eb9)
This commit is contained in:
Juergen Spitzmueller 2018-09-08 09:50:48 +02:00
parent 0bd7a6384b
commit b8c62838ec
2 changed files with 18 additions and 10 deletions

View File

@ -85,20 +85,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

View File

@ -21,6 +21,8 @@ What's new
- Add support for LyX logo in RTL output (bug 10423).
- Update support for linguistic subexamples.
* MISCELLANEOUS
@ -48,7 +50,7 @@ What's new
* DOCUMENTATION AND LOCALIZATION
- Update German user interface localization.
- Update German ans Slovak user interface localization.
* BUILD/INSTALLATION