Tagged Questions
3
votes
1answer
43 views
Passing arguments to a .sty-file - a specific case
After having plowed through (i.e. read and trimmed down the given examples in an attempt to apply them to my case) these documentations and guides:
Implementing key-value input: An introduction
The ...
12
votes
2answers
89 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 ...
10
votes
1answer
152 views
What are best practices for package authors to deal with package conflicts?
One occasionally encountered problem with LaTeX is incompatibility between packages. What are best practices for package authors to deal with package conflicts?
For example:
What is the best way to ...
3
votes
1answer
90 views
LaTeX system-wide glossary database as custom package
I'm trying to make a system-wide glossary database (with acronyms and definitions) as a package.
My file is: /usr/local/texlive/texmf-local/tex/latex/local/myglossary.sty
One needs to run:
sudo ...
4
votes
1answer
92 views
pass xkeyval option to class
I have read about passing options to classes in this thread, but do not understand what I'm doing wrong. My class is defined like so, using xkeyval and based on memoir.
\NeedsTeXFormat{LaTeX2e}
...
0
votes
0answers
73 views
Use the options of a package loaded into another package [closed]
How can I use the options of a package loaded into another package?
For example:
\usepackage[my options,options of a package loaded into mypackage]{mypackage}
3
votes
1answer
194 views
beamerposter custom style with keyval definition
I'm creating a beamerposter style accordingly to my department specification. I would like to create a theme where the definitions of the blocks can vary accordingly to a keyword in the calling of the ...
4
votes
1answer
62 views
Spaces in pfgopts options
Is there a simple way to allow spaces in the options of a package using pgfopts to process them, which is local to that package i.e. I don't have to include some package in the main document before ...
8
votes
2answers
175 views
Key Value option in package
I trying to write a package, and I'd like to specify whether there should be colour or not.
I'd like to do:
\usepackage[color=false]{foo}
and have this set
\RequirePackage[color=false]{hyperref}
...
6
votes
1answer
132 views
Nested parameters lost when generating new macros from package options
I've created a package which I would like to take in options and turn these into new macros (one new macro for each option). I also want these new macros to produce new macros in turn. For example, ...
3
votes
1answer
769 views
\RequirePackage without option clashes because of the package loading order?
I am writing a package which requires the xcolor package with table option.
It is loaded in the package with
\PassOptionsToPackage{table}{xcolor}
\RequirePackage{xcolor}
which works if my package ...
6
votes
1answer
260 views
Disabling the draft option in a package
Within a package I'm making, I want ignore the default draft behavior and write my own. I have tried:
\DeclareOption{draft}{
MYCOMMANDS
...
\OptionNotUsed
}
\ProcessOptions
If draft is used, my ...
5
votes
1answer
99 views
Handle class options in the order they're given
How can I pass options of my package in a specific order to another loaded package?
\ProvidesPackage{L10n}
\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{babel}}
...
7
votes
3answers
305 views
Mutually exclusive options in packages
Is there a standard way to define mutually exclusive options in a package?
Could someone provide a simple example?
Currently I am mostly intrested in LaTeX2e but it would be nice to see a LaTeX3 ...
11
votes
3answers
1k views
A package template using xkeyval?
I would like to write a package offering a number of commands. The package should accept options, and some of these options should be available as command options. Usage should be as follows:
...
...