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
1 vote
0 answers
72 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
  • 7,826
3 votes
1 answer
96 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
34 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,126
1 vote
0 answers
42 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,821
1 vote
1 answer
67 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
50 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
51 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
  • 127
0 votes
0 answers
35 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
35 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,715
0 votes
1 answer
802 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
  • 370
2 votes
1 answer
115 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], ...
Mario's user avatar
  • 469
0 votes
1 answer
69 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,758
1 vote
1 answer
57 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
74 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
67 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
  • 643
3 votes
0 answers
26 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
92 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
104 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
0 votes
1 answer
246 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
58 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
7 votes
1 answer
919 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
  • 17.7k
1 vote
1 answer
189 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,545
0 votes
2 answers
101 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
317 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
24 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,452
3 votes
1 answer
213 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
202 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
73 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
88 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
54 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
24 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
203 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
54 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 ...
Sapiens's user avatar
  • 4,549
1 vote
0 answers
72 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
  • 17k
4 votes
0 answers
151 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
360 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
98 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
70 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
  • 521
1 vote
1 answer
157 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
161 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
  • 7,826
1 vote
0 answers
264 views

Any reference and tutorial on writing .cls file class? [closed]

I was trying to re-edit the report.cls file to adapt to our institution thesis presentation format. I was stuck at declaring and executing options,also with error flag on xcolor file execution. Having ...
Ibiloye Abiodun Christian's user avatar
1 vote
2 answers
100 views

Suppress page numbers in in-text citations but one-time only

My advisor requires page number in in-text citations, consider the following MWE and its output: \documentclass{article} \begin{filecontents}{references.bib} @article{einstein, author = &...
taihao's user avatar
  • 15
0 votes
1 answer
45 views

Should loading a package with no options behave the same as calling a macro with no options using pgfopts and pgfkeys?

This is a followup to my previous question Why does pgfkeys .initial not work in these cases?. In that question I created a macro with a key-value interface using pgfkeys and it works perfectly. Now, ...
LaTeXereXeTaL's user avatar
1 vote
2 answers
348 views

Is this a correct way to handle Boolean options?

In trying to get a better understanding of kvoptions I have the following minimal example package and document. In the package, I construct a new macro command based on the logical states of three ...
LaTeXereXeTaL's user avatar
0 votes
1 answer
62 views

Even without reading a package option the code defined in it is read in the compilation. What is the problem in the codes?

The problem! My tex file is ... \PassOptionsToPackage{svgnames}{xcolor} \documentclass{scrbook} %%% \usepackage[capimage]{suave} %%% \begin{document} \frontmatter \chapterimage{imagetest} \...
Benaia Sobreira de Jesus Lima's user avatar
0 votes
0 answers
74 views

Change footmisc options midway through document

I would like to be able to use the para option of footmisc in one chapter of my book and have it not be in use in another chapter. In the package documentation I don't see a command defined for making ...
brannerchinese's user avatar
0 votes
1 answer
183 views

Why can I not use the "superiors" package with any options?

I am trying to compile the following document: \documentclass[a4paper,11pt]{scrartcl} \usepackage[supstfm=libertinesups,supscaled=1.2,raised=-.13em]{superiors} \begin{document} a \end{document} The ...
user505117's user avatar
0 votes
1 answer
156 views

Why does uniquelist=false option of biblatex package work only if it is inserted at the first time?

With biblatex package I was using these options: \usepackage[style=authoryearcomp,maxbibnames=99,maxcitenames=2,isbn=false,backend=biber]{biblatex} but later I needed to add the uniquelist=false ...
s1m0n3's user avatar
  • 59
0 votes
1 answer
377 views

Misunderstanding of \PassOptionsToPackage?

In the following code I would like to use \PassOptionsToPackage but this does not work. What am I doing wrong ? \documentclass{article} \RequirePackage{algorithm2e} \PassOptionsToPackage{french}{...
projetmbc's user avatar
  • 13.4k
0 votes
1 answer
113 views

Personalize the first \addConstraint using optidef package

I have this MWE where I have used optidef package, a specific library for optimization problems. \documentclass[a4paper,12pt]{article} \usepackage[short]{optidef} \begin{document} \begin{mini!} {\...
Sebastiano's user avatar
  • 52.6k

1
2 3 4 5 6