Specifying a package in Module declaration
ehud.behar at protonmail.com
ehud.behar at protonmail.com
Tue Apr 5 13:08:51 UTC 2022
I want to write a module that calls for the geometry package and inserts page layout commands to my document, once it is chosen to be used.
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.
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220405/24d2a98a/attachment.html>
More information about the lyx-users
mailing list