{xkeyval} is for questions dealing with additional macros for setting keys. This package is an extension of the `keyval` package.

learn more… | top users | synonyms

2
votes
1answer
73 views

How to allow curly braces in command option

I need to store an URL parameter like &path=weigth:5|color:orange|enc:okydHa}peAXOHi@jANv@A@kJJmFAiDJuAHmDXcBb@cC`@gC^_DV}CJaCF{APaBVkBdAyEf@qC`@{B\aDSwB with later reencoding to utf8 and passing ...
1
vote
1answer
111 views

Library with xkeyval, make my life easier?

Question is related to the topic that I opened last year regarding the Library with xkeyval, fp and newcommand where the library now grew quite big and adding new stuff in it has become tedious and ...
1
vote
0answers
87 views

Error: Package keyval Error: standout undefined (Beamer)

I am using Metropolis theme Minimal example: tex file \documentclass{beamer} \usetheme{metropolis} % Use metropolis theme \usepackage{tikz} \begin{document} \maketitle \begin{frame}[...
0
votes
0answers
69 views

Scientific Workspace and xkeyval

I'm writing something in Latex, using TexnicCenter and Miktex. The person I'm collaborating with is using Scientific Workplace, which I also have installed. After writing my file which works ...
2
votes
0answers
69 views

Reason not to use a specific key val package

According to the very nice list of packages concerning this topic (A big list of every keyval package) I am confused which package I should use now to be prepared for the future. Any ideas which ...
4
votes
1answer
46 views

xkeyval and hyperref in document class

I have problem compiling a document with a custom document class. I am trying to process key-value parameters passed to my document class with xkeyval. I also need to use hyperref package. And that is ...
1
vote
1answer
53 views

Ctable with long key: problem (with xkeyval?)

All. In question: multipage tables with ctable package David Carlisle wrote answer with some nice hack for ctable (adding long as key). \documentclass{article} \usepackage[utf8]{inputenc} \...
2
votes
1answer
48 views

listing in two-column mode

I want to place a listing, with colored background, in a two-columns document. For safety (for cases when the width of listing only slightly exceeds column width) I put the listing in a \maxsizebox. ...
3
votes
0answers
142 views

Override optional parameters of \newtcblisting from tcolorbox

This question follows the one I asked here. I would like to override the following custom listings command from the tcolorbox package and be able to have the following features implemented using ...
4
votes
1answer
49 views

Can't pass \ in option to package processed with xkeyval - TeX capacity exceeded

I have a test package that uses the xkeyval package to process options. The package works when I pass an option value that does not have \ in it but when I pass yy=\tiny I get ! TeX capacity ...
2
votes
1answer
36 views

why can't I set \columncolor via \setkeys?

I'm trying to create a new columntype with options as in the source below, and all option work fine, except for the b option, which gives this error message: ! Undefined control sequence. \KV@xcol@b #...
0
votes
1answer
131 views

Library with xkeyval, fp and newcommand

Been searching the net here and did not find any solution to this. I am having some problems with a defined library structure (xkeyval) with FPeval calculation and then passing this information/...
2
votes
2answers
80 views

How to make xkeyval accept a value containing both \par and a comma

I am writing a package and I would ideally like to save long stretches of code using the key-value mechanism of xkeyval. That is, I want to be able to say something like \setkeys{foo}{mytext={This ...
6
votes
1answer
92 views

Is it permitted to have arguments (i.e. value in key-value) including \par in the xkeyval package?

I wish to use the xkeyval package to overide the 9 arguments limit and to clarifiy the different arguments (compulsory or optional). In my arguments/parameters, I have complete paragraphs possibly ...
3
votes
2answers
49 views

Passing parameter in presence of an xkeyval value

I still have some problems with parameter passing in my macros. The MWE below, compiles and runs fine. If you uncomment wide, it mismatches \begin{figure*} with \end{figure}. However, this error goes ...
4
votes
1answer
63 views

pgfkeyvalue string is not parsed by xkeyvalue

I'm trying to create a database using pgfkeys. It is working rather well, until I needed to execute some parameters stored in a key and pass it to some command that uses xkeyvalue to parse the ...
2
votes
1answer
40 views

Hyper link execution for each attribute

I am using authblk.sty and xkeyval.sty. I am using the link for each author. I needs to be execute the keyvalue code link={http://people/u/78814}. But i don't know how to control the authblk.sty file ...
3
votes
1answer
1k views

How to go around the error “! Package xkeyval Error: `[' undefined in families `background'.”?

I get the error ! Package xkeyval Error: `[' undefined in families `background'. when processing the file \documentclass{article} % \usepackage{xkeyval} % \usepackage{pax} % \usepackage{pdfpages}...
6
votes
1answer
99 views

Setting a specific key (and value) depending on state of \if macro

This question is basically a follow-up of two older questions I posted a year ago, but actually is a consequence of trying to find a solution to this question: Use toggles in biblatex `...
1
vote
0answers
216 views

package keyval error: current slide undefined [closed]

I'm trying to prepare a presentation using latex but it gives an error: "package keyval error: current slide undefined. See the keyval package documentation for explanation.Type H for ...
2
votes
1answer
150 views

Author attributes and values defined using the xkeyval package

I try to define command key author attributes like "corresponding author address, corresponding author email, present address, auto string capture the author name" using xkeyval package. I will try ...
1
vote
0answers
105 views

Problem with packages siunitx, datatool and xkeyval

After having read several articles concerning the siunitx problem I am still struggling with my problem. Your comments and your help is highly appreciated. The following error occurs when I switch on ...
2
votes
0answers
93 views

etaremune fails: “undefined control sequence”

I'm having a perhaps embarassingly simple problem with the package etaremune. It seems to crash both latex and pdflatex with a command derived from xkeyval. Here's the .tex file that crashes for me: ...
1
vote
1answer
133 views

Configure newenvironment with xkeyval

I am having trouble getting xkeyval to work with \newenvironment. If I define the whole thing as a command instead, it works perfectly. So my guess is that the problem is not how I use xkeyval, but ...
4
votes
1answer
288 views

incomplete ifnum

I am using a loop to define keys with the xkeyval package, as well as to actually read out the keys inside some self-defined command. Everything works perfectly - but for some reason, as soon as I ...
4
votes
1answer
89 views

Defining xkeyval keys within a loop

I have a project for which I make extensive use of the great xkeyval package. However, I'm still struggling with some more extravagant things. For example, I want to use enumerated keys (key1 to keyN, ...
5
votes
0answers
324 views

TL update affects fixme handling of options?

A few hours ago, the following code worked fine (albeit in a larger document): \documentclass{article} \RequirePackage{xkvltxp} \RequirePackage[draft,envface=\itshape,marginface={\footnotesize\...
4
votes
1answer
137 views

Providing optional key without value

I would like to prepare a macro with an optional argument like [wide], using xkeyval. (something whether to use \figure or \figure* inside) My test program below presents the output test0=false ...
4
votes
1answer
537 views

PSTricks package giving xkeyval error

I have been trying to solve this error by myself but did not find a way. So if someone out there can help me, any help is greatly appreciated! I use Texmaker to run MikTex 2.9. I want to use the ...
2
votes
0answers
130 views

Migrating from xkeyval to kvoptions: how to retrieve \define@choicekey? [closed]

I'm in the process of migrating a class I wrote from xkeyval to kvoptions, mainly because I'd like to provide class options whose values could be list of comma separated values: \documentclass[...
6
votes
2answers
124 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 ...
7
votes
1answer
167 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 ...
2
votes
1answer
103 views

Not getting xkeyval to work (as intended) for a simple custom command

I'm trying the use the xkeyval package to define a very simple command using keys. However, I'm utterly confused by its behavior, and the package documentation is not exactly helpful either. Here's a ...
7
votes
0answers
4k views

basic beamerposter example, keyval error

I found a beamerposter example at this url: http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php The content suggests that a number of packages may be required, therefore, I use the ...
4
votes
1answer
125 views

How to parametrize tex processing using command line? [duplicate]

Unfortunately, I cannot write a better title for the question. I am trying to parametrize my workflow, where I will allow myself to override page margins from the command line with the following: ...
3
votes
1answer
66 views

`xkeyval` key doesn't work for setting `fragile` option in beamer

I'm trying to set a custom macro to create frames in my presentations. However, when I tried to set the options I can pass to the frame using xkeyval the whole macro stops working. How can I pass the ...
12
votes
1answer
249 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 ...
5
votes
2answers
197 views

Boolean key value in xkeyval fails

It is possible to hand over a boolean key value stored in a macro to a command such as \edef\SomeKeyValue{true}% \DummyCommand[DummyBooleanKey=\SomeKeyValue]%%% where DummyBooleanKey is a boolean ...
5
votes
1answer
70 views

Command with xkeyval keys from different families

As I stated in some other questions and on my profile page, I am writing a problem-solution package (I know, there are some of them already) I have used xkeyval package and my keys, but now, I want ...
3
votes
1answer
256 views

Enable and disable contents of \chapter command

I have large set of contents for the user. For a different user I would like to show different contents. For this I would like to produce different output by showing and not showing some of the ...
9
votes
1answer
177 views

Working with keys instead of \def

I have looked around on TeX.SX and I have learnt a lot of things. One of the things I have not yet mastered is how to use the key=value function that packages like keyval or xkeyval offer or even ...
6
votes
1answer
314 views

Need help to understand xkeyval example

I found an "easy" example how to use xkeyval here using the following code: \ProvidesPackage{myemph}[2011/03/12 v1.0 a test package] \providecommand\my@emphstyle{\em} % Note that the argument must ...
3
votes
1answer
57 views

Is there a way to provide a starred variant of a (xkeyval) boolean (class) option

I'd like to define, for a class I'm working on, two boolean keys rather similar and, instead of giving them different names, I'd like to let the latter be a starred variant of the former. Let me give ...
5
votes
1answer
252 views

Generate xkeyval boolean keys 'on the fly'

I am not a TeX/LaTeX specialist, recently I wrote a package concerning 'problems' and 'solutions' which is intended to be displayed at the end of the document, however it is not restricted to that ...
4
votes
2answers
168 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 ...
2
votes
1answer
778 views

xkeyval gives error with siunitx on some LaTeX installations

\documentclass{article} \usepackage{siunitx} \begin{document} \SI[per-mode = fraction]{3.00e8}{\meter\per\second} \end{document} I've tested this on three different computers, all running ...
7
votes
2answers
264 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. \...
6
votes
1answer
604 views

xkeyval declaring package option keys that are choice keys or boolkeys

xkeyval provides \DeclareOptionX which effectively defines a key like \define@key does but that can be used as a package option. How can I \DeclareOptionXs that behave like \define@choicekey or \...
6
votes
2answers
261 views

etoolbox ifblank error with xkeyval

I am trying to create my first class, which is basically just my ordinary preamble with a set of options. These options are handled by xkeyval using the following syntax: \NeedsTeXFormat{LaTeX2e} \...
3
votes
1answer
181 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 ...