Preamble
% Backwards compatibility with covington < 1.1
% This code can be removed eventually
- \@ifundefined{covexample}{%
- \newenvironment{covexample}{\begin{example}}{\end{example}}%
- }{}
+ \AtBeginDocument{%
+ \@ifundefined{covexample}{%
+ \newenvironment{covexample}{\begin{example}}{\end{example}}%
+ }{}
+ }
EndPreamble
Category Linguistics
End
Preamble
% Backwards compatibility with covington < 1.1
% This code can be removed eventually
- \@ifundefined{covexamples}{%
- \newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
- }{}
+ \AtBeginDocument{%
+ \@ifundefined{covexamples}{%
+ \newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
+ }{}
+ }
EndPreamble
End
Preamble
% 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}}
- }{}
+ \AtBeginDocument{%
+ \@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
os << "\\usepackage{xunicode}\n";
}
+ // covington must be loaded after beamerarticle
+ if (features.isRequired("covington"))
+ os << "\\usepackage{covington}\n";
+
// Polyglossia must be loaded last ...
if (use_polyglossia) {
// call the package