Uwe Stöhr schrieb:
I tried out the new linguistics module and see there that
\usepackage{covinton}
appears every time in the preamble when the mudule is used in the
document.
Packages loaded by modules should only appear once in the
preamble, no matter how often the module is used.
The fix for this is simple: Load the preamble stuff only once before the
different styles.
I did this for covington in the attached patch. This should also be done for csquotes, and the
definitions.
In general I would say that the styles in the module files shouldn't have
preamble declarations.
regards Uwe
Index: linguistics.module
===================================================================
--- linguistics.module (revision 22389)
+++ linguistics.module (working copy)
@@ -4,6 +4,10 @@
Format 5
+Preamble
+ \usepackage{covington}
+EndPreamble
+
# single numbered example with covington.sty
Style Numbered_Example_(multiline)
LatexType Environment
@@ -24,9 +28,6 @@
Shape Italic
Color Blue
EndFont
- Preamble
- \usepackage{covington}
- EndPreamble
End
@@ -50,7 +51,6 @@
LeftMargin XSubexample:
LabelString "Subexample:"
Preamble
- \usepackage{covington}
\usepackage{enumitem}
\newenvironment{subexample}{%
\begin{example}\begin{enumerate}[leftmargin=1.7em]
@@ -77,7 +77,6 @@
PassThru true
FreeSpacing true
Preamble
- \usepackage{covington}
[EMAIL PROTECTED]
\newenvironment{linggloss}[1]{%
\gll #1}
@@ -101,7 +100,6 @@
PassThru true
FreeSpacing true
Preamble
- \usepackage{covington}
[EMAIL PROTECTED]
\newenvironment{lingglosss}[1]{%
\glll #1}