The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
2answers
58 views

Evaluate strings of key-value option in custom package by using a switch-case environment

I'm trying to write a custom package MyUnicodefonts where I'd like to store all my font settings for various math fonts and roman fonts (later also mono and sans). In my document I intend to choose ...
0
votes
0answers
22 views

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} ...
1
vote
1answer
31 views

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 as: \RequirePackage{kvoptions} \SetupKeyvalOptions{family=my,prefix=my@} \DeclareStringOption[bar]{foo} ...
2
votes
1answer
69 views

kvoptions is missing from texlive 2014

I upgraded from texlive 2007 to texlive 2014 on my Mac OS X. Now source files that previously compiled fine give the error messages below. I looked at the previous question suggesting to do "tlmgr ...
3
votes
1answer
73 views

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 ...
5
votes
1answer
65 views

DeclareLocalOption of kvoptions does not work [closed]

Consider the following tst package: \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesPackage{tst}[2014/12/01 v1.0 tst package] \RequirePackage{kvoptions} \RequirePackage{etoolbox} ...
5
votes
1answer
44 views

Conflict between tkz-fct and thmtools?

I'm using TeXLive 2014. Here's a MWE: \documentclass{article} \usepackage{tkz-fct} % Must appear before {thmtools} \usepackage{thmtools} \declaretheorem{theorem} \begin{document} ...
0
votes
0answers
88 views

Getting “Unknown option” error with \DeclareStringOption in custom package

I'm trying to write a package for personal use that takes custom arguments as follows: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{ZTPS}[2014/15/10 v1.0 Zach Taylor Problem Set] ...
0
votes
0answers
90 views

What is the kvoptions-patch's equivalent of \@classoptionslist?

For a class I'm working on, I'd like some (babel's) languages to be automatically loaded. This can be achieved thanks to \@classoptionslist: \begin{filecontents*}{myclass.cls} ...
2
votes
0answers
84 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: ...
1
vote
0answers
87 views

Packages kvoptions and pdflscape are missing in texlive 2014?

I just installed texlive 2014 and tried to compile my documents. However I cannot install the packages kvoptions and pdflscape because tlmgr says that they are not present in the package repository. ...
4
votes
1answer
138 views

Unrecognized key-values

I try to implement a personnal class using key-value options (I am a beginner in that field). For exemple, I would like to specify the language (for babel package) with an option "langue=xxx" with ...
6
votes
0answers
175 views

Appending options to hyperref

I am trying to append options to hyperref inside a package (say append.sty) I'm writing. More precisely, in the package I load the hyperref package and I tune it: ...
7
votes
1answer
201 views

In \DeclareStringOption, what is the difference between <init> and <default>?

In the kvoptions package the following macro is defined: \DeclareStringOption [⟨init⟩] {⟨key⟩} [⟨default⟩] Following is the related documentation: A macro is created that remembers the value ...
2
votes
1answer
236 views

kvoptions and conditional environment

I'm trying to create a package with a single option, which provides an environment, which behaves differently if called by latex or pdflatex XeLaTeX. I tried to use kvoptions, but I'm a little lost. ...
7
votes
2answers
164 views

Using option for sty file

I would like to create and option (namely grid) to my sty file to produce a grid covering the whole page. I had success using \newif\if@sigur@grid \DeclareOption{grid}{\@sigur@gridtrue} and using ...
3
votes
1answer
146 views

How do I prevent the beamer class from removing my global options

I'm currently writing a latex package (or actually a beamer theme, but apparently that makes no difference) and I want to be able to specify a few things using key-value pairs in the global options. ...
6
votes
1answer
398 views

Mark key-value class options as used

I have written a wrapper for the scrartcl class in the following way: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{mycls}[2012/08/23] \RequirePackage{kvoptions} \DeclareStringOption{title} ...
3
votes
1answer
902 views

beamerposter passing portrait options to custom theme

Hi I'm preparing a custom theme for beamerposter to align with the theme of my institution. I have to include a figure banner on the headline plus the possibility to include 2 different logos. So far ...
3
votes
2answers
2k views

ProcessOptions and ProcessKeyvalOptions

\ProcessOptions and \ProcessKeyvalOptions Which comes first? Does it matter? \ProcessOptions\relax or \ProcessOptions* What's the difference? Apparently for keyval there is only the starred ...
7
votes
1answer
697 views

Argument of setkeys

My motivation bases on the package listings (also my package mdframed). The package allows to define a style via \lstset{foo}{options}. Now I want to create a macro to expand the style foo. For ...
9
votes
2answers
932 views

Pass keyval string option to babel

How to pass a keyval string option given to my package to babel? I load my package with \usepackage[languages={ngerman,english}]{mylang} In package mylang I want to handle this optional languages ...
6
votes
1answer
339 views

Why am I processing a comma-separated list incorrectly when using etoolbox and kvoptions?

I'm trying to pick something out of a list that has been passed from some package options by kvoptions, but docsvlist doesn't appear to be recognising the commas. I suspect this may be something to ...