From: Juergen Spitzmueller Date: Tue, 9 Oct 2018 08:42:38 +0000 (+0200) Subject: Load covington later X-Git-Tag: 2.3.2~33 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=53a108e814775d0226438f6ddea7da344ad3435c;p=features.git Load covington later This solves a loading order conflict with beamer-article. (cherry picked from commit 00ee54e6949505cbda7f6a287d2f69f1a6b37a86) --- diff --git a/lib/layouts/linguistics.module b/lib/layouts/linguistics.module index 9e52b95b9c..bf6e042c91 100644 --- a/lib/layouts/linguistics.module +++ b/lib/layouts/linguistics.module @@ -55,9 +55,11 @@ Style Numbered_Example_(multiline) 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 @@ -78,9 +80,11 @@ Style Numbered_Examples_(consecutive) 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 @@ -95,16 +99,18 @@ Style Subexample 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 diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index da35db1847..a2ff315ed0 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -2308,6 +2308,10 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features, 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 diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index f325d9447b..7256002d30 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -964,7 +964,6 @@ char const * simplefeatures[] = { // "cancel", "ascii", "url", - "covington", "csquotes", "enumitem", "endnotes", diff --git a/status.23x b/status.23x index a10b9834e1..dcee94718c 100644 --- a/status.23x +++ b/status.23x @@ -136,6 +136,8 @@ What's new - Add "hyperref-driver=dvips" option to the extra flags of the latex->dvi converter (bug 11332). +- Fix loading order conflict with beamer-article and covington. + * USER INTERFACE