11
votes
1answer
533 views

If not DeclareOption

I have some documents using a same custom package. That "header" package loads by default the package fullpage. But I would like to write a new LaTeX document, using the same header, but without ...
2
votes
1answer
63 views

Conditional based on packageoption

I added a counter to the todonotes packages \todo so I could display the total number of todos I have left. However I also enjoy working with the package option disabled. Therefore I would like to ...
13
votes
2answers
192 views

Load a package as optional argument

I'm creating my personal package. I'd like to use an option to turn on/off the line numbering provided by the package lineno. So, my sty file contains \RequirePackage{lineno} \linenumbers But if ...
8
votes
1answer
134 views

Compare \CurrentOption with a string

I encountered a problem that I want to compare the \CurrentOption with a string. In the .tex file I have a code below. \usepackage[en-ver]{cufestatletter} Then I want to use \ifx to determine ...
13
votes
2answers
177 views

Load different options depending on package version

Is there any possibility to load a package with different options depending on the version of the package? The command \@ifpackagelater{package}{date}{true}{false} only works if the package is ...