All Questions
23 questions
1
vote
1
answer
116
views
Unable to find error in my latex code
Hello LaTeX Community,
I was working on a template and almost finished it, but there was a glitch in my code and I was unable to find it. While rendering the code, the \textbf{Question \questionnumber:...
0
votes
1
answer
77
views
Multilange support - need some help in xkeyval
I'm trying to do some improvements in the multiaudience package. In particular, I would like to have one latex document containing multiple languages.
For simplification reasons the texts of the ...
0
votes
2
answers
288
views
Check if key is set in xkeyval
I am working with the xkeyval package.
Sometimes I want to check by hand if a key is contained in a list of keys.
That is, I want a if-command like the following:
\contains@key{<family>}{<key ...
0
votes
1
answer
98
views
Is it possible to define key macros without the equality sign (i.e., [keya=value])
I was wondering if the xkeyval package allows for defining key macros which do not include an equality symbol.
For instance, I wish to create a package based on the geometry package with the following ...
3
votes
3
answers
206
views
Improve a keycommand macro
My question is about how to improve an already working macro via the keycommand package. The small inclusion shows my efforts so far:
\documentclass{article}
\usepackage[margin=0.95in]{geometry}
\...
3
votes
2
answers
552
views
Automatically shake questions and answers for a test created with LaTeX after the compilation
We suppose that we have 30 question to solve a text for students instead of 2 as this MWE:
\documentclass[leqno,11pt,landscape,a3paper]{extarticle}
\usepackage{multicol,mathtools}
\usepackage[T1]{...
5
votes
1
answer
202
views
xkeyval -- read keys from file
I want to read xkeyval options from an external file, like:
\setkeys{my@keys}{\input{conf}}
I tried several combinations of \edef and \expandafter, but to no avail. Any ideas?
Best regards,
...
4
votes
1
answer
276
views
xkeyval `boolkey` setting is persistent across macro calls: scope leak?
I thought that keyval arguments to macros were supposed to be confined in their macro scope, but the following code:
\documentclass{report}
\usepackage{xkeyval}
% Define a custom command option ...
3
votes
0
answers
294
views
Using the bibtex format (with JabRef) as a non-bib key-value database in LaTeX
This might sound a bit odd: I am using JabRef for maintaining a database which does not content bibliographical data in the first place:
@Person{caesar,
date = {100-44BC},
comment =...
1
vote
0
answers
204
views
How to choose the right options/key-value package? [closed]
I want to spruce up my department's thesis document class with better / less idiosyncratic class options support. So, I've noticed this community wiki question:
A big list of every keyval package
......
2
votes
0
answers
534
views
Reason not to use a specific key val package [closed]
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 ...
10
votes
1
answer
7k
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 ...
9
votes
1
answer
337
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 ...
4
votes
2
answers
1k
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 ...
3
votes
1
answer
1k
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
1
answer
789
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
\define@key{fam}{...
4
votes
1
answer
943
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 ...
21
votes
4
answers
519
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
\documentclass[...
7
votes
3
answers
2k
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][]
{\setkeys{...
4
votes
1
answer
109
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}
\...
15
votes
3
answers
5k
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
\...
75
votes
23
answers
11k
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 ...
22
votes
3
answers
10k
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:
...
\...