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 ...
2
votes
1answer
62 views
xkeyval's \presetkeys
Please is there a way to avoid xkeyval package bombing out in endless loop, as implied by the following simplified case?
\documentclass{article}
\usepackage{xkeyval}
\makeatletter
...
3
votes
1answer
147 views
How to define package options in a command (for reuse)?
I need some options of the listings package several times in my document. I am thus wondering if one can define (and later change) these options once somewhere in the preamble via a command/macro, for ...
20
votes
4answers
319 views
Does the order of specified key-values matter?
The following screen shot shows how the order of specified key-values affects the output.
When using dx=\psPiH,xunit=\psPi.
When using xunit=\psPi,dx=\psPiH.
Minimal Working Example
...
7
votes
3answers
257 views
How to define a key=value that has an equivalent boolean value key
Assume you're defining a key=value align for some environment realign that you'll use in the following way:
\usepackage{xkeyval}% http://ctan.org/pkg/xkeyval
\newenvironment{realign}[1][]
...
4
votes
1answer
56 views
How to make xkvview record keyreader defined keys?
Since keyreader is based on xkeyval i wonder if it’s possible to make it wokr with xkvview which comes with xkeyval.
\documentclass{scrartcl}
\usepackage{xkvview}
\usepackage{keyreader}
...
7
votes
3answers
458 views
How to write a class that accepts an optional key-value pair?
a user-defined class:
\ProvidesClass{preview}[2012/12/15 v 0.01 class for creating a tight PSTricks diagram]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
...
33
votes
17answers
2k views
A big list of every keyval package
I lose track of all the different keyval packages. Can we maintain a list here? (Community wiki, one package per answer with a brief description of scope. I've started things off but need help ...
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:
...
...
