Skip to main content

Questions tagged [package-options]

These reference options specified to the package at loading time. For optional arguments to macros or environments, use {optional-arguments} instead.

Filter by
Sorted by
Tagged with
4 votes
1 answer
102 views

Why \IfPackageAtLeastTF{⟨package⟩}{⟨date⟩}{\PassOptionsToPackage{⟨option⟩}{⟨package⟩}}{} doesn't pass ⟨option⟩ to ⟨package⟩?

My current version of parskip is 2021-03-14 so: \IfPackageAtLeastTF{parskip}{2018-08-24}{\PassOptionsToPackage{indent}{parskip}}{} \usepackage{parskip} should pass the indent option to parskip. But ...
Denis Bitouzé's user avatar
0 votes
1 answer
44 views

passing a group of package(class) options in 1 key using l3keys2e in latex class

problem I want to writing a docuementclass, called it foo.cls in the following context. Assume there is a document class called bar.cls, which can accept the following key-value(options): \...
zpding's user avatar
  • 134
0 votes
0 answers
22 views

How can i fix the error on " Error line 191! Missing number, treated as zero.< to be read again>\[email protected]|Idf@finish\currentoption"

I need help. My text in Miktex + texmaker end on line 40 but I get an "Error line 191! Missing number, treated as zero. \I@English. 1.191\Idf@finish\currentOption". please help me to fix ...
George Darius Ocen's user avatar
3 votes
1 answer
65 views

How to differentiate index entries using the knowledge package

I'm using the knowledge package to mark definitions and simplify the creation of an index. My entries are all defined as in the following example: \documentclass{book} \usepackage[paper,makeidx]{...
armaninux's user avatar
0 votes
0 answers
110 views

expl3 in package

I've read in interface3.pdf that expl3 is natively supported in LaTeX2e since February 2020. However, I cannot make the following work: % test.sty \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{test} \...
Gargantuar's user avatar
  • 1,154
1 vote
1 answer
44 views

Mixing package options and family options?

The question I am asking here is a follow-up to the question Macros to change pgfkeys package options on the fly and define custom sets of options. I was used to specify package options using the ...
Vincent's user avatar
  • 5,327
1 vote
1 answer
33 views

Initial style definition before and after ProcessPgfPackageOptions?

The following great post, provides the following answer to a question about managing package options: https://tex.stackexchange.com/a/707285/17200 \begin{filecontents*}[overwrite]{mypackage.sty} % ...
Vincent's user avatar
  • 5,327
3 votes
0 answers
129 views

Best practices for setting package options mid-document

I am currently working on a package where the user can set the package options mid-document or within a local group. Currently, the user can do this via the user commands \set<package>keys or \...
User23456234's user avatar
  • 1,886
3 votes
3 answers
147 views

"Undefined control sequence" in option of own package, but not within the document

It's my first question, sorry if there are any mistakes! I'm trying to create a package with the clsguide. In the package, I define an own command and I want to use this to set an option (storing a ...
Serdar Uludağ's user avatar
2 votes
1 answer
89 views

How can I provide a bibliography file along with a package?

My general question is: How can I provide a bibliography file along with a package? To be more precise: I want to write a package specialBib.sty that contains its own bib-file specialBibFile.bib. How ...
Wamseln's user avatar
  • 808
1 vote
0 answers
119 views

Unknown option leads to error with babel and geometry

Consider the following example: \documentclass[logo height = 2\baselineskip]{article} \usepackage[french]{babel} \usepackage{geometry} \begin{document} Text in case of empty. \end{document} I am ...
Jinwen's user avatar
  • 8,608
4 votes
1 answer
226 views

Is \ProcessKeysPackageOptions obsolete?

I read in the l3keys2e documentation that this package was obsolete. What is the new way of dealing with package options? At the moment, I'm using \ProcessKeysPackageOptions.
projetmbc's user avatar
  • 13.4k
1 vote
1 answer
74 views

Using an undefined control sequence as value for ProcessKeyOptions

I have a test L3 package (that does not do anything useful for now) where a key is used to set a lua variable : \NeedsTeXFormat{LaTeX2e} \ProvidesExplPackage {package} {} {} {} \keys_define:...
ysalmon's user avatar
  • 1,160
1 vote
0 answers
64 views

xcolor - how to use a private list of colors instead of one of the predefined lists

I have been gathering colours from the uff.rip/@farben bot on Mastodon which posts new ones several times a day. To use them I have extracted the RGB data and created a farben.def file in the same ...
Peter Flynn's user avatar
  • 2,910
1 vote
1 answer
284 views

I can't have latexmk detecting the options I give it

I was compiling my main.tex file fine with latexmk using latexmk -xelatex -outdir=output -auxdir=auxil main.tex Until suddenly latexmk stopped detecting the options i gave it: (venv) PS C:\Users\user\...
Balansoire's user avatar
0 votes
0 answers
63 views

How to display all of a package's options in the body of the document?

I'm currently learning Latex and using Overleaf plus documentation. Sometimes I want to quickly see what other options a package has to offer. Since Overleaf shows a PDF preview, I would like to know ...
suchislife's user avatar
0 votes
2 answers
81 views

Preamble parametrization - passing parameters to `\usepackage` [closed]

I have CV in two languages, which share most of the preamble but \usepackage[<language>]{babel}. I want to parametrize the preamble similarly to: \usepackage[\cvLanguage]{babel} \usepackage{doi} ...
abukaj's user avatar
  • 147
0 votes
0 answers
36 views

Size Option in MIT Poker Package?

I'm using Poker MIT Package, and I already know that there is the command \setkeys{poker}{option=value[,option=value]} for setting up some options. In the package documentation, a "size" ...
Luis Roçadas's user avatar
0 votes
1 answer
44 views

Trouble writing new package for a numbered 'tcolorbox' style with option for 'number within'

I am writing a new package to define a numbered box style (using tcolorbox) that I use in multiple documents. I want to take the numbering convention of the box as a package option. By default, I want ...
Zxcvasdf's user avatar
  • 1,755
0 votes
1 answer
2k views

Show authors in acl template

I am working on an ACL paper using the acl package: \usepackage[review]{acl}. Doing this, the paper shows 'Anonymous ACL submission' in the author's block. My track is single-blinded so I should show ...
Emil's user avatar
  • 390
2 votes
1 answer
191 views

When to use \PassOptionsTo* and when \LoadClass/\RequirePackage?

I've created a few packages/classes for my own purposes and learned (from, e.g., there) that \PassOptionsTo*[opt] is similar/equivalent to \LoadClass[opt], \RequirePackage[opt], or \usepackage[opt], ...
mfg's user avatar
  • 539
0 votes
1 answer
112 views

Activate/ Execute all options in a custom package

I want an option in a package I'm writing to activate all other options. What I want is something like \usepackage[all]{mypackage} which will activate all options in mypackage (including options added ...
Vebjorn's user avatar
  • 1,884
1 vote
1 answer
73 views

Preventing tikzcd to reset the color option

I would like to change the colour of all my tikzcd diagrams. From the manual, I read that I can write \tikzcdset{color=localblack} in my preamble and change the colours globally. However, some lines ...
Elena's user avatar
  • 97
3 votes
1 answer
85 views

Customize package between book/article classes

I wrote a small package that I used to typeset a book. Now, I'd like to reuse it for smaller documents. The package uses tcolorbox and defines a box like this: \newtcblisting[auto counter, ...
Michel Charpentier's user avatar
0 votes
1 answer
98 views

definecolors option clash for package xcolor

Have included the following in my style file \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{andromeda}[2022/10/03 Andromeda Package] \newif\ifCountryMaps \CountryMapsfalse \newif\ifScienTech \...
Veak's user avatar
  • 1
3 votes
1 answer
58 views

Setting up a translatable package

I maintain a LaTeX package that produces an output with three English words: “and”, “p.” and “pp.”. I would like that if someone used my package in a German document these three strings automatically ...
madmurphy's user avatar
  • 233
1 vote
1 answer
143 views

Is ntheorem[thref] truly incompatible with hyperref?

I was using the texlive version from Ubuntu's repos, but then started needing some features from the latest versions of some packages, so I replaced the repos' texlive with a new system from https://...
Daniel Diniz's user avatar
1 vote
1 answer
150 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.4k
0 votes
1 answer
353 views

'You have requested package 'everyshi',but the package provides 'everyshi-2001-05-15''

I'm trying to load a LaTeX template and seem to have all the required packages, yet I still get the following warning message appearing: 'You have requested package 'everyshi',but the package provides ...
Very Forgetful Functor's user avatar
2 votes
2 answers
87 views

Can't define a macro with a name derived from another macro's value: `! Missing \endcsname inserted.`

What happened Given that the macro \CurrentOption whose value is an unknown string of English letters already exists in the document, I want to create another macro whose name is the capitalized value ...
Miriam Briskman's user avatar
8 votes
1 answer
1k views

Package option (for xcolor) is not being properly used in beamer

After a recent upgrade of my system (to Ubuntu 22.04), many of my previous files are failing to compile with undefined colors. Please see the following self-contained examples for clarification. The ...
Masroor's user avatar
  • 18k
1 vote
1 answer
213 views

LyX: Using \PassOptionsToPackage in LyX

Wondering how to use \PassOptionsToPackage in lyx for beamer. Using t, unknownkeysallowed, compress, xcolor=dvipsnames, notheorems under Custom in Document Class in Document -> Setting ... as ...
MYaseen208's user avatar
  • 8,579
0 votes
2 answers
151 views

Using a package with and without an option in latex

I need to use a specific package in two different ways, once with an option and another time without that option. More specifically, I want to use algpseudocode package once with [noend] option and ...
JessAsk's user avatar
1 vote
0 answers
477 views

Mathematica code to Latex

I want to export my Mathematica code to Latex, so I saved the mathematica notebook as LaTeX document. Copying this latex code to overleaf, I get the attention message "\hbox too wide" and ...
jooanny's user avatar
  • 11
0 votes
0 answers
26 views

Passing `table' option to bespoke class, not recognised by `xcolor`

I'm working on a document that uses a university-specific class file. For the purposes of this question, I've reduced the class file to one called test.cls, which contains the following: \...
rbrignall's user avatar
  • 1,574
3 votes
1 answer
308 views

How do I import these three specific symbols from mathabx?

I would like to use the symbols \smalltriangleup, \smalltriangledown and \blacktriangleup from mathabx. The problem is that if I use the mathabx package, some of the other symbols change (like \infty ...
murto jikko's user avatar
1 vote
0 answers
302 views

Package problems with tikz-cd and xcolor [closed]

I have a problem with some packages interfering (I think). I am working on a document where I both want to have a tikz diagram and a table with some of the cells colored. For the cell color, I use the ...
Anton V.'s user avatar
  • 111
1 vote
1 answer
88 views

Passing options across multiple style files

I load a package, say aaa.sty, from a main document. In aaa.sty, I also load a package, say bbb.sty. The reason why I maintain two style files is that aaa.sty is in the TeX default folder, and bbb.sty ...
user182849's user avatar
0 votes
1 answer
109 views

Hyperref issues

I want to use hyperref in my work "report", and (option clash for package color) is the error message I am receiving with my report document class. This is a part of my preamble with error ...
A M Bello's user avatar
0 votes
0 answers
56 views

Use a code when one special package option value is used

I have missed something with the definitely M(not)WE code below. When the option auto is used, I would like to achieve the action in the "funny" macro \babellang that makes me feel ashamed. ...
projetmbc's user avatar
  • 13.4k
0 votes
0 answers
25 views

Package flacards - newcommand

I'm using flacards, and every card is composed of, in the frontside a word with it's category behind it, and in the backside the translation and a sample phrase behind it. For instance \card{è \\ \...
Daniel Castro's user avatar
3 votes
1 answer
239 views

LaTeX3 - Failing to define the default value of a package option

I fail to obtain a default value for an option of a package. What is a good way to obtain a default "string" value for an option? Here is what I have tried. % File: main.sty \NeedsTeXFormat{...
projetmbc's user avatar
  • 13.4k
1 vote
1 answer
57 views

How may I put packages with options in vector?

As you all know, instead of writing \usepackage{package1} \usepackage{package2} \usepackage{package3} and so on, we may write \usepackage{package1, package2, package3} How may I obtain instructions ...
Frode Alfson Bjørdal's user avatar
1 vote
0 answers
83 views

passing version option to package loaded by class

With the latest changes made to siunitx, I would like the pass the version option =v2 to the package. However the class I use is the one loading the package not my document. I know I can use \...
ArTourter's user avatar
  • 17.5k
4 votes
0 answers
211 views

How to list options supported by a package?

Sometimes options supported by a package are scattered all over a 100-page documentation rather than given in a list, and it is hard to understand if the package implements certain functionality. Is ...
homocomputeris's user avatar
0 votes
1 answer
579 views

Reset a tcolorbox option after setting it once using tcbset

I'm using tcolorbox package to draw colored boxes. After I set options with \tcbset {opt1, opt2} I would like to reset just the opt1 back to default. After going through its docs, I couldn't find a ...
Aravind Nujella's user avatar
1 vote
1 answer
143 views

invoice2 package: Replace VAT with GST

I'm trying to generate an invoice using the invoice2 package. It works (adding items and applying a VAT at a rate I supply). However, I would like the invoice to show "GST" instead of "...
chaoborid's user avatar
4 votes
1 answer
103 views

Executing only specific options

I'm pretty new to advanced LaTeX coding and therefore may not have a perfectly specific question. I hope you can help me anyway: I want to maintain different preambles at once. They can be seen as ...
Titanlord's user avatar
  • 541
1 vote
1 answer
254 views

Have option conditionally require package [duplicate]

I want to declare an option in my package that, if provided, will require another package. However, just doing \DeclareOption{requiresomething}{ \RequirePackage{somepackage} } does not work, as ...
aachh's user avatar
  • 13
1 vote
1 answer
205 views

Will it work if I use \PassOptionsToPackage twice to the same package?

Sometimes I need to \PassOptionsToPackage under certain conditions. Would it work if I \PassOptionsToPackage multiple times to the same package? For example, when I write: \PassOptionsToPackage{...
Jinwen's user avatar
  • 8,608

1
2 3 4 5 6