Questions tagged [xkeyval]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
235 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]{...
1
vote
0answers
87 views

Is there a conflict between the xkeyval and alterqcm packages? [duplicate]

When I try to compile the code for this question or its answers, I have an error. A year ago, I didn't have that mistake. Package xkeyval Error: language' undefined in familiesglobal'. \...
1
vote
0answers
21 views

Combining xstring with xkeyval [duplicate]

I'm trying to extend the markdown package so that I can pass options to \includegraphics and have them override defaults, something like this: \documentclass[]{article} \usepackage{graphicx} \...
0
votes
1answer
79 views

Tailoring Biblatex for De Gruyters “Holzforschung”

(190816, 2249 CET, updated according to the comments of "Mensch") 190818, 1332 CET, update regarding error message on articlein Hi, all, I'm trying to make my bibliography look like: but for the ...
2
votes
1answer
193 views

Have two feature in matrix command

Via this link i can change the line spacing in matrix How can I increase the line spacing in a matrix? and in the second one i can create a matrix with divider lines How to add dash lines in Matrix ...
0
votes
1answer
379 views

! Package xkeyval Error: `frame' undefined in families `Gin'

I have this error in compiling the wiley template ! Package xkeyval Error: `frame' undefined in families `Gin'. The main file is as follow including the packages. Please guide me... %% Run LaTeX on ...
2
votes
1answer
93 views

Error at compiling example from the Manual tikz-network

As per example on page 26 of the manual https://github.com/hackl/tikz-network/ when doing latexmk -pdflua -pvc or latexmk -pdfxe -pvc I get the following error below. Note: already tried https://...
3
votes
2answers
68 views

Nested keyval proper parsing

I have two families of keyval arguments, and two functions, and I want them to behave like on toy MWE below. \documentclass{article} \usepackage{xkeyval} \usepackage{xparse} \makeatletter \define@...
0
votes
0answers
37 views

venndiagram package error with showframe option

I am trying to build a venn diagram without the outer frame. \documentclass{article} \usepackage{venndiagram} \begin{document} \begin{venndiagram3sets}[showframe = false] \fillANotB \end{...
1
vote
0answers
20 views

using xkeyval for circling a number in a given color with tikz

I've been trying all day to use xkeyval, but it seems like I just can't get the hook of it. This is what I'm trying to do: I've got this number in a circle filled by a certain color. The code for it ...
5
votes
1answer
79 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, ...
0
votes
0answers
51 views

how to use \define@ for additional xcookybooky-keys

I am starting to use the xcookybooky package and currently am trying to define additional keys to the headline, as in the documentation, where it say, for example, \define@key{headlines}{...
1
vote
0answers
44 views

Case insensitive \setkeys in xkeyval

I'm trying to figure out how to make the usebib package case-insensitive on the keys in my .bib file. I've figured out how to patch \KV@split to patch \KV@@sp@def when \setkeys is defined by keyval ...
0
votes
1answer
37 views

hyperref--xkeyval interaction? \reserved@a ->\@nil error

The code from this answer produces an error \reserved@a ->\@nil when also loading hyperref. % !TEX TS-program = xelatexmk \documentclass{report} \usepackage{xkeyval} \usepackage{hyperref} \...
3
votes
2answers
71 views

how to pass xkeyval cmdkey to macro

I want to pass a cmdkey from the xkeyval package to a macro. I can print the value of the cmdkey to a message, but when used with \in@ it seems to be unexpanded. Example below. I expect to see the ...
1
vote
1answer
43 views

elsearticle harv not working with landscaped longtable

I have this very long and large table which I have compiled fine using normal article but today I just copied the whole tex to an elsearticle harv to submit to elsevier. Everything else works without ...
0
votes
1answer
35 views

Errors after upgrading OS and Lyx

I use Lyx everyday. Yesterday I decided to format my computer and install Xubuntu 18.04 (I had Xubuntu 16.04). After installing Lyx I am getting this errors: Although the errors, the PDF is properly ...
4
votes
1answer
124 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
0answers
238 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 =...
0
votes
1answer
54 views

How to integrate xkeyval keys with Lua code

I am currently maintaining a template that uses directlua to compute a value based on a number of parameters defined as command keys with keyval. As it stands, it compiles correctly. However, when I ...
1
vote
1answer
135 views

Checking if certain package option is declared inside .sty

I'm writting a package in which the user may choose between three types of documents through declared options when issuing the \usepackage command: undergraduatethesis, technicalreport and ...
6
votes
1answer
463 views

Unused global option(s): [language=english]

This is a follow up question to Options in custom class. It seems that I still did not understand how global options work. Consider the following code: \RequirePackage{filecontents} \begin{...
2
votes
1answer
144 views

mdframed broken in TeXLive2017

Since an update of TeXLive2017 through tlmgr yesterday, mdframed seems broken: the following MWE \documentclass{article} \usepackage{mdframed} \begin{document} test \end{document} throws this error (...
3
votes
0answers
97 views

How to define an option with two arguments? [closed]

I am writing a package in which I want to define an option myvalues in such a way that \usepackage[myvalues={10,11}]{mypackage} would execute \mycommand[10]{11} and \usepackage[myvalues=11]{...
1
vote
1answer
441 views

glossaries-extra causes a “Package xkeyval Error: value `none' is not allowed.” error

The following LaTeX manuscript is copy-and-pasted from pp. 5-6 of Nicola L.C. Talbot's "The glossaries package v4.34: a guide for beginners", v. 2017-11-03 (link). \documentclass{article} \usepackage[...
1
vote
0answers
94 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 ......
1
vote
1answer
255 views

xkeyval/lstinputlisting: “improper alphabetic constant” when used with linerange option

I'm trying to use xkeyval to create a custom option (\codeblock) for my lstinputlisting (specifically for the linerange part). This is my MWE: \makeatletter \newcommand{\code}{} \define@key{code}{...
1
vote
0answers
48 views

Confusion with “xkeyval” and “newcommand”: Better Way to Use with “lstinputlisting” [closed]

I've written this command to get me "snippets" of code: \newcommand\codesnippetsnippet[3]{ \immediate\write18{find ../../../.. -name '#1' -print | grep #2 | xargs cat > ./listingwithoutcomments} \...
0
votes
1answer
982 views

Getting xkeyval errors with the 2017 ACM document template

In December of last year, the ACM published an overhaul of the LaTeX document template: 2017 ACM Master Article Template so, I'm trying to migrate a conference paper of mine from "SIG-ALTERNATE.CLS -...
1
vote
0answers
188 views

Package xkeyval Error when using menukeys and csquotes

I have the following minimum “working” example: \documentclass[11pt, a4paper, ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{menukeys} % switch with csquotes to fix \...
-3
votes
2answers
101 views

another example from pstricks manual (p187), what's the problem?

\documentclass{article} \usepackage{pstricks,multido,xkeyval} \makeatletter % “TeethNumber”: number of teeth (it must be a divisor of 360!) \define@key{psset}{TeethNumber}{% \pst@getint{#1}{\...
1
vote
2answers
135 views

an example from pstricks manual, why the “linecolor” can not work

\documentclass{article} \usepackage{pstricks,pst-poly,pst-text,pst-key,graphicx,color} \makeatletter \SpecialCoor \def\PstCoggedWheel#1#2{% % #1 = number of teeth (it must be a divisor of 360!) % #...
4
votes
1answer
52 views

How can I use xkvltxp to allow macros in key-value fixme package options?

Following the instructions in fixme's documentation, I load the xkvltxp package to allow the use of macros as values in key-value package options. However, I get an error if I actually use something ...
1
vote
0answers
82 views

Using pointers for boolkeys

I'm trying to do something like: \usepackage{xkeyval} ... \makeatletter \define@boolkey{fam}{keya}[true]{} \define@boolkey{fam}{keyb}[true]{} \makeatother \setkeys{fam}{\savevalue{keya}=false, ...
0
votes
1answer
525 views

Minted / xkeyval packages version issue? numberblanklines undefined

In a completely fresh and updated installation of MikTeX (minted v2.4 and xkeyval v2.7a) I run into a problem using the numberblanklines argument. I guess it is version issue because in an older ...
1
vote
0answers
112 views

What package provides keyval.sty

I am setting up a very minimal and custom texlive environment. So, I started with a minimal install and I am adding packages as I need them. When I try to compile my current document, it reports a ...
0
votes
1answer
2k views

xkeyval error when compiling with pdfLaTeX

Problem I'm using tabularx to structure a figure and when I compile the document I get the following error: Package xkeyval Error: `valign' undefined in families `Gin'. Minimal Working Example (MWE)...
1
vote
1answer
149 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 ...
2
votes
0answers
353 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 ...
3
votes
1answer
178 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 ...
3
votes
1answer
702 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. ...
6
votes
0answers
728 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 ...
3
votes
1answer
121 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 ...
0
votes
1answer
96 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
73 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
238 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
226 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 ...
5
votes
1answer
141 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 ...
2
votes
2answers
197 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
126 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 ...