Specifying a package in Module declaration
Jürgen Spitzmüller
spitz at lyx.org
Tue Apr 5 14:52:50 UTC 2022
Am Dienstag, dem 05.04.2022 um 13:08 +0000 schrieb tush via lyx-users:
> Of course, I can do
>
> AddToPreamble
> \usepackage{geometry}
> \geometry{..page layout commands go here..}
> EndPreamble
>
> But I prefer the \usepackage{}` command to be inserted automatically,
> just like
>
> Requires packagename
>
> does.
Requires works for the packages that are hardcoded in LyX. geometry is
among them.
>
> I read in the Customization manual that there is this optional
> argument for the Module specification (section 5.3.2. The Module
> declaration), for example:
>
> #\DeclareLyXModule[endnotes.sty]{Endnotes}
>
> It doesn't add to my preamble the \usepackage{endnotes} command
> automatically. If so, then what is good for?
It is read by Tools > Reconfigure. If the package in question is not
there, the user will be informed about that in the document dialog.
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220405/85a72fa3/attachment.asc>
More information about the lyx-users
mailing list