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
2 votes
1 answer
80 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:...
IamK's user avatar
  • 23
0 votes
1 answer
31 views

Biblatex "style" option not recognized when passed through a macro in a custom class

I'm porting my long preamble into a separate class file, and this is the only error left. In the MWE, I'm passing two key-value options to my class using xkeyval and feeding them to biblatex after ...
AdamantConlanger's user avatar
0 votes
1 answer
38 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 ...
Georg's user avatar
  • 41
3 votes
1 answer
99 views

Issue with new command in center environment using direct lua

\documentclass{article} \usepackage{luacode,xkeyval} \makeatletter \define@key{someop}{a}{\def\mop@one{#1}}% \setkeys{someop}{a=0}% \newcommand{\luaTest}[2][]{{% \setkeys{someop}{#1}% \directlua{% ...
user61681's user avatar
  • 1,729
0 votes
1 answer
28 views

xkeyval keys not resetting after execution of the command with luatex

The following tex document is compiled with LuaLaTeX engine. \documentclass{article} \usepackage{luakeytest} \begin{document} \myAddFunction[c=30,d=40]{10.1}{20} \myAddFunction{1}{2} \end{document} ...
user61681's user avatar
  • 1,729
3 votes
0 answers
75 views

Passing optional arguments to LaTeX commands with Lua

The following tex document is compiled with LuaLaTeX engine. \documentclass{article} \usepackage{keytest} \begin{document} \myAddFunction[c=30,d=40]{10}{20} \end{document} This works fine and output ...
user61681's user avatar
  • 1,729
0 votes
0 answers
160 views

error ! Package xkeyval Error: `A4' undefined in families `Gm'. while trying to compile a template of the JIS journal in latex

(UPDATE) I am trying to compile the template of a journal. I'm new to Latex, this is my first project, I'm using TexMaker to compile and run my LaTex files, already downloaded MikTex to install ...
Fabio Phillip's user avatar
1 vote
1 answer
107 views

How to declare a boolean switch with xkeyval?

I'm trying to write an aptly-named package xkeyvalisinsanelydifficult such that the user can \usepackage either as \usepackage{xkeyvalisinsanelydifficult} or \usepackage[turnedon]{...
Daniel Diniz's user avatar
1 vote
1 answer
118 views

xkeyval define@choicekey - which macros are defined without <bin>?

The xkeyval manual gives the following syntax for \define@choicekey*: \define@choicekey*[〈pre〉]{〈fam〉}{〈key〉}[〈bin〉]{〈al〉}[〈dft〉]{〈func〉} ... the optional 〈bin〉 should contain either one or two ...
einpoklum's user avatar
  • 12.2k
2 votes
1 answer
55 views

Help with xpatch-ing a command from xkeyval: \setkeys

I'm trying to patch \setkeys from xkeyval, so that it includes a mask of keys to ignore completely when \setkeys is called. Note that \setkeys in called in various macros, and there is a lots of them, ...
artagnon's user avatar
  • 131
1 vote
1 answer
102 views

Pass string with escape characters and comma through xkeyval package while compiling the document with LuaLaTeX

The following is the code of the file temptest.sty \ProvidesPackage{temptest} \RequirePackage{amsmath,amssymb} \RequirePackage{xkeyval} \RequirePackage{luacode} \begin{luacode*} function myfunc(m,n) ...
user61681's user avatar
  • 1,729
0 votes
1 answer
75 views

Issue with xkeyval package and special characters while compiling with LuaLaTeX

The following is the code of document myfile.tex. \documentclass{article} \usepackage{test} \begin{document} \begin{tabular}{|ccc|c|c|} \myPrint[trtext=Yes, fltext=No]{p,q,r}{stu} \\ \end{tabular} \...
user61681's user avatar
  • 1,729
0 votes
2 answers
219 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 ...
aiquita's user avatar
  • 93
0 votes
0 answers
171 views

Presetting keys in l3keys

As far as I am aware, there is no mechanism in l3keys to preset keys like the xkeyval supports. I explicitly do not mean the .default:n specification in l3keys, since this is invoced if the key is ...
Maximilian Keßler's user avatar
1 vote
0 answers
620 views

Receiving Package xkeyval Error: `x' undefined in families `blx@opt@name' [closed]

I am using TeX-Live on a Mac with macOS 11.6.1 with the latest TeX Live version. All packages are updated today. When I am building my LaTeX document with \printbibliography I receive the following ...
Daniel Aldus's user avatar
0 votes
1 answer
440 views

xkeyval error when using the changes package

I am working on an Analysis textbook with a friend, and am using the changes package, but keep getting the following error: Package xkeyval Error: `remark' undefined in families `Changes@added'. ... \...
Michael Dykes's user avatar
4 votes
2 answers
105 views

Passing optional arguments to a command with also optional arguments

I have been struggling with the following implementation for the last couple of days without being able to find a solution. I have the following minimal working example: \documentclass{article} \...
wdsgn's user avatar
  • 161
0 votes
2 answers
90 views

xparse and xkeyvalue combination won't compile

I am trying to write a command using xparse and xkeyval. The goal is to write a command that can take optionnal key-value arguments to make things easier and more readable for my users who have just ...
alex_bits's user avatar
  • 103
0 votes
1 answer
94 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 ...
Morzen's user avatar
  • 325
0 votes
1 answer
121 views

Unable to retain Whitespace in xkeyval

I am using the xkeyval package to set a key "name". This value is then used in the hyperref package. Please see the sample code below: File: mysuperclass.cls \ProvidesClass{mysuperclass} \...
ravi's user avatar
  • 1,618
2 votes
2 answers
127 views

How to do if-else logic on missing optional keyval parameters

I'm trying to make a macro using the xparse library together with xkeyval for optional key value pairs. Here's a minimal example of what I'm trying to do cmd.sty \NeedsTeXFormat{LaTeX2e} \...
h7x4's user avatar
  • 97
3 votes
3 answers
193 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} \...
hsmyers's user avatar
  • 1,493
6 votes
2 answers
2k views

I can't find file `xkeyval´

I am writing a document using TexStudio and MikTeX as package source. Today I updated some packages including xkeyval. Now every compilation throws an error (I can't find file `xkeyval´.) I tried to ...
gerdji's user avatar
  • 61
1 vote
1 answer
566 views

xkeyval Error: `HEIGHT' ('WIDTH') undefined in families `psvectorian'

I'd like to change the title of my glossary, say, List of Symbols, as follows (using some entities borrowed from the psvectorian package). \hfil\hspace*{-3.5cm}\psvectorian[height=3mm, width=8cm]{88}\...
user avatar
2 votes
1 answer
104 views

Presetting xkeyval keys to \thetitle or \theauthor

I'm writing a LaTeX template and am almost done (!!!) but I'm having a very hard time understanding xkeyval's \presetkeys behaviour. I've managed to set some defaults, but when it comes to setting ...
Groctel's user avatar
  • 47
0 votes
1 answer
78 views

Use xkeyval to make a title page

This is a follow up to my last question, but since the question I'm asking is substantially different despite trying to solve the same problem, I figured I'd make a new thread. Anyway, I am trying to ...
Publius's user avatar
  • 87
0 votes
1 answer
144 views

How to code the \key@ifundefined from the xkeyval package?

I looked at the xkeyval package documentation and did my best to follow it. However, I cannot get the \key@ifundefined coded so that it will compile and work. Here is my MWE with the offending lines ...
mkstreet's user avatar
3 votes
2 answers
524 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]{...
Sebastiano's user avatar
  • 52.7k
1 vote
0 answers
224 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'. \...
AndréC's user avatar
  • 23.7k
1 vote
0 answers
33 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} \...
Yoshanuikabundi's user avatar
0 votes
1 answer
150 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 ...
Lars Abrahamsson's user avatar
2 votes
1 answer
254 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 ...
eager's user avatar
  • 335
1 vote
1 answer
6k 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 ...
Iman Farahbakhsh's user avatar
3 votes
1 answer
220 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://...
Yaacov NNNNM's user avatar
3 votes
2 answers
166 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@...
Vezzp's user avatar
  • 127
0 votes
0 answers
114 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{...
Fred Guth's user avatar
  • 156
1 vote
0 answers
34 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 ...
ecstrema's user avatar
  • 123
5 votes
1 answer
188 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, ...
NicolaF_'s user avatar
  • 113
1 vote
0 answers
110 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 ...
Jason Gross's user avatar
  • 2,105
0 votes
1 answer
116 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} \...
jan's user avatar
  • 2,216
3 votes
2 answers
254 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 ...
Tim A's user avatar
  • 1,935
1 vote
1 answer
287 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 ...
Trina's user avatar
  • 67
0 votes
1 answer
74 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 ...
user171780's user avatar
4 votes
1 answer
257 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 ...
iago-lito's user avatar
  • 1,452
3 votes
0 answers
292 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 =...
lukascbossert's user avatar
0 votes
1 answer
89 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 ...
guest_user's user avatar
1 vote
1 answer
434 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 ...
Johann Hemmer's user avatar
6 votes
1 answer
902 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{...
user avatar
2 votes
1 answer
212 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 (...
wilk's user avatar
  • 949
3 votes
0 answers
121 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]{...
Glen Brown's user avatar