5
votes
2answers
82 views

Keyvalue argument and non key argument conflict

Many classes provide \part, \chapter, \section and even more deeply nested sectioning levels. All of them allow three forms of usage (I restrict for sake of simplicity to \section, it just stands ...
6
votes
1answer
91 views

Splitting a CSV list from a xkeyval key argument into parts

Is it possible to store the key value argument (a cvs list) to a macro (via \def) and split/further process the content of that macro with \forcsvlist command from etoolbox package? I want to ...
10
votes
1answer
130 views

Storing environment arguments by \immediate\write

As I have stated already in other questions I am writing a problem/solution package. There are many of them, for sure, I have made much progress, using it in 'everydays' productivity for my needs, but ...
4
votes
2answers
91 views

Keyword command parameters with table (tabular)

I am trying to make a command with named (key-value) parameters to produce a table row. The reason is that table has more than 9 columns (command parameters) that will have position changed, be ...
6
votes
2answers
128 views

Using an expanded macro for optional environment argument

I'd like to open an environment, passing the content of a macro to the optional arguments. Up to now I tried different approaches using \expandafter, however I could not get the expected behaviour. ...
3
votes
2answers
88 views

Resolve xkeyval key from a definition

How can I resolve an xkeyvalue from a definition? The code \documentclass{article} \usepackage{xkeyval} \define@key{mykeys}{foo}[foo-default]{\def\x{Key 'foo' does nothing}} ...
7
votes
3answers
406 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][] ...
7
votes
3answers
273 views

how to ``open'' the curly bracket in a macro?

In tikz, the macro \draw accept a optical argument of parameters separated with comma, e.g. \draw[->, red] (0, 0) -- (1, 1) I have a self defined macro, in which I want to pass a macro as this ...