Uwe Stöhr wrote:
> > 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.

We need a requires tag.

I've looked into this a bit, and what's happening is that the preamble information is being added for each used layout. Since "\usepackage{covington}" is listed for a few different constructs, you get it included one for each one you use:

docstring const LaTeXFeatures::getTClassPreamble() const
{
...
   list<docstring>::const_iterator cit = usedLayouts_.begin();
   list<docstring>::const_iterator end = usedLayouts_.end();
   for (; cit != end; ++cit) {
       tcpreamble << tclass[*cit]->preamble();
   }
...
   return tcpreamble.str();
}

So this is a general layout issue, not anything specific to modules.

As spitz says: We need a Requires tag.

rh


Reply via email to