Questions tagged [kvoptions]
60 questions
5
votes
1 answer
DeclareLocalOption of kvoptions does not work
Consider the following tst package:
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesPackage{tst}[2014/12/01 v1.0 tst package]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\SetupKeyvalOptions{%
family=TST,
…
Pieter Stroobants
- 2,271
3
votes
1 answer
kvoptions declare local complementary options
Given the following declarations in a tst package using kvoptions
\ProvidesPackage{tst}
...
\DeclareBoolOption{abc}
\DeclareComplementaryOption{cba}{abc}
Which is the correct way of declaring both options as local:
…
Pieter Stroobants
- 2,271
2
votes
0 answers
Forwarding a kvoption DefaultOption to a StringOption
I want to use kvoptions for a package, with a string option, and I want unknown options to be used as values for that string option. Like this:
\ProvidesPackage{kvo}[2020/10/20 v 0.01 playing with…
Vincent Beffara
- 246
- 1
- 11
2
votes
1 answer
What’s the equivalence of \ExecuteOptions when kvoptions is used?
Consider the following short .sty package:
%% This is file `mypackage.sty'
\NeedsTeXFormat{LaTeX2e}[1997/06/01]
\ProvidesPackage{mypackage}
\DeclareOption{myoptionone}{Do something}
\DeclareOption{myoptiontwo}{Do some other…
Ruixi Zhang
- 9,553
2
votes
1 answer
Special characters in kvoptions (like \\)
I try to write a little package for my personal use. For this I use kvoptions. Now I have to give a string to one of the options which contains \\ but this fails with: undefined control sequence. \let \reserved@e.
My texfile looks like…
Skillmon
- 60,462
1
vote
1 answer
String option value is empty
I have the following class
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{democlass}[2022/11/15]
\RequirePackage{kvoptions}
\DeclareStringOption[\the\year{}]{year}
\ProcessOptions\relax
\LoadClass{article}
\def\foo{\democlass@year}
\endinput
and the…
Philipp Imhof
- 3,151
1
vote
0 answers
How to reverse Latex 2021-06-01 Update? => kvoptions error
I am working with my university's template and everything was just working fine, till I updated all Packages in MiKTeX automatically. Just after this update I get this warning (I have never had this before the update...)
Package kvoptions-patch…
Holle H
- 11
1
vote
1 answer
Integrate package into main document
My document uses (via \usepackage) a non-standard local package, that I have written. The document has to be uploaded to a publisher, and apparently they do not offer a way to upload the package as well. Is there any way to copy the contents of the…
Lasse Kliemann
- 167
1
vote
1 answer
Spaces and commata in StringOptions (as possible in hyperref)
I want to write a little documentclass which can be used with options, e. g.
\documentclass[title=a]{xyz}
In order to do this, I wrote in the xyz.cls
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=abc,
…
FKranhold
- 391
- 3
- 9
0
votes
1 answer
Usage of string value in kvoptions
I followed the sample of Heiko with very excellent explanation about his approach of my request. Since my main idea is to have as well a subtitle I'm little bit stuck why the ˋsubtitleˋ is not set - or better said: I have no idea how to access it…
LeO
- 1,451
0
votes
1 answer
Get the list of all options and parse them in a loop (kvoptions)
I'm writing a small package and am using kvoptions to parse key-val options passed to it…
Normadize
- 278