Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
33 views

Use unexpanded macro in package options

When I try to put in my package options with not yet defined macro (even if I use noexpand), the document fails to compile (even if I don't use the macro!). Any idea if it's fundamental or not? (I ...
2
votes
1answer
54 views

Different settings for figures in Tikz

I have a beamer with many figures. The problem is that now I want something that requires settings that are in contradiction with what was defined beforehand. I have : - A main file where all the ...
0
votes
2answers
21 views

How to detect whether the option citecounter was enabled on biblatex?

I think this is the definition of the citecounter option on the biblatex package: \DeclareBibliographyOption[boolean]{citecounter}[true]{% \ifcsdef{blx@opt@citecounter@#1} {\csuse{blx@opt@...
1
vote
1answer
20 views

How to detect whether \PassOptionsToPackage was already called?

If I call: \PassOptionsToPackage{backend=biber,style=numeric,backref=false}{biblatex} % And later someone else call again \PassOptionsToPackage{style=abnt,backend=biber}{biblatex} What will happen? ...
0
votes
0answers
28 views

`kpfonts` light option

I am a bit confused by this sentence in the kpfonts package documentation: With the light option, the print is better than display! May I understand that the light option produces a better result ...
17
votes
2answers
756 views

Why do people specify date as an option for \usepackage?

In LaTeX code written by other people, I sometimes see a date specified as an optional argument for \usepackage: \usepackage{iftex}[2013/04/04] Intuition tells me that this is some way to ensure ...
1
vote
3answers
68 views

Declaring option a4paper in \documentclass produces different margins than declaring it in \geometry

I have seen a similar question at a4paper, where should I declare it? In document class or geometry? and the selected answer there implies that there is no difference in whether we use \documentclass[...
2
votes
1answer
116 views

Switching lines in preamble causes error/NO error

I have 2 almost idenctical lines of LaTeX source. They differ only in switching order of these two lines \usepackage[fleqn]{amsmath} \usepackage{amsmath,amssymb} One causes error and the other one ...
3
votes
1answer
66 views

Using pgfopts to set up a tcolorbox style

Consider a package file eqbox.sty: % Preamble \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{eqbox}[2018/01/01 Boxed Equations] % Packages \RequirePackage{xcolor} \RequirePackage{pgfopts} \...
0
votes
0answers
38 views

Error loading modref

I have a problem with modref, v. 0.9 of 2009/02/02 (generated from the zip archive on CTAN where it is said version 1.0). I try to use the package modref with the following minimal example: \...
2
votes
1answer
39 views

Use a user-defined variable before loading package

I'm trying to make a template where I can specify a draft version, and some text will appear in the footer noting that it's a draft, with today's date. I also define a function that allows text to be ...
1
vote
1answer
276 views

Changing geometry after loading the geometry package

I've looked at some related questions and can't solve this. I have a common LaTeX file where I load the geometry package among others. This file (called pre.tex here) is a common, site wide file ...
1
vote
0answers
45 views

Packages option breakall not compatible with ctex

I am having this weird issue where the option breakall of package truncate is not compatible with package ctex. Below is the code \documentclass[UTF8]{article} \usepackage{lipsum} \usepackage[UTF8]{...
0
votes
1answer
53 views

glossaries first use style

after searching for like an hour, I still cannot find out how to do the following: \documentclass[11pt, twoside, a4paper, openright]{report} \usepackage[acronym]{glossaries} \makenoidxglossaries \...
1
vote
1answer
89 views

pdfx package - incompatibility with bookmark package when using LuaTeX engine

The pdfx package is incompatible with the bookmark package, i.e. the resulting file has no bookmarks when the bookmark package is loaded. I know that the PDF /X standard does not allow any bookmarks, ...
1
vote
3answers
229 views

How to properly use \DeclareOption within a macro

Using \ifthenelse statements I've defined a macro that prints it's value as long as it is different from the value of the previous time it was used. \RequirePackage{xifthen} \def\storedval{} % create ...
2
votes
1answer
65 views

Libertine package options with boldface and emphasis change numeric text

I've just installed and updated MacTeX and am recompiling files for the university courses I'm teaching this year. I'm experiencing a really peculiar problem with numeric information when I set ...
1
vote
1answer
93 views

Face cards do not show up on poker package (pst-poker)

My .tex looks like this: \documentclass{article} \usepackage{pst-poker} \begin{document} \crdQs \Qs \crdAs \As \end{document} Everything compiles great except for \crdQs. I am getting the ...
1
vote
0answers
88 views

Problem with table installed from Excel2Latex [closed]

I am writing a paper for my thesis and I'm having getting a reoccurring error about " LaTeX Error: Option clash for package xcolor. See the LaTeX manual or LaTeX Companion for explanation. Type H ...
0
votes
1answer
175 views

Conflicts with existing macro when using kvoptions: Undefined control sequence

I am trying to use kvoptions pacakage to allow passing key options to my style file. Here is a MWE of the style file: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{test} \newcommand{\rtitle}{TITLE} \...
4
votes
1answer
114 views

How to define a string variable with diacritics to my own package (.sty)

I try to add a variable title string to my own package 'MyStyle.sty'. 'MyStyle.sty' just contains some used packages, pdf settings and commands for a style guide / corporate identity. Document.tex \...
0
votes
0answers
75 views

Problem with natbib and class based on scrbook

I'm building a class for monographs, dissertations, and thesis from my department. I chose as a base the scrbook class that is part of koma-script. I need the natbib package numbers option to be ...
2
votes
1answer
36 views

Compiling a separate list of “Open Questions” found in the main text in order of appearance

I'm writing my math notes. A paragraph may include (or be followed as a separate paragraph) by an "Open question". This is a paragraph making some points about a topic. Open question: Why is this ...
0
votes
1answer
70 views

ModernCV class does not compile in Debian 9 (Stretch)

In my previously installed Debian Jessie everything went fine with ModernCV-files, but now in Debian Stretch I always receive the following error: \fancyfoot's 'E' option without twoside option is ...
9
votes
1answer
139 views

Package option vs setup command

Traditionally, LaTeX packages will use package options (I mean the options in \usepackage[...]{package}) for setup. However, I have noticed in some modern packages, e.g. siunitx, unicode-math, ctex, ...
0
votes
1answer
338 views

Package keyval Error: hidelinks undefined

I wish to remove color boxes around references and links in my document. According to answer to this question I tried \usepackage[hidelinks]{hyperref} in preamble, but received the following error ...
5
votes
1answer
138 views

What is the difference between \PassOptionsToPackage and inline options passing?

I have noticed that, for example, ClassicThesis config file uses this style: \PassOptionsToPackage{utf8}{inputenc} \usepackage{inputenc} instead of \usepackage[utf8]{inputenc}. What is the ...
2
votes
0answers
111 views

Setting up kvoptions with a setup command [closed]

The hyperref package (for example) provides a \hypersetup command where key-value options can be provided as an alternative to \usepackage[key=value]{hyperref}. I'm trying to do the same, using ...
6
votes
1answer
168 views

In IEEEtran, why does `fontspec` package automatically change the font type once loaded?

By default, the body text font for IEEEtran document class is like this: When I load fontspec package, the font type changes: What is the name of the new font? How can I retain the original IEEEtran ...
0
votes
0answers
175 views

Options with color package clash with acmart documentclass? [duplicate]

I'm trying to use a package that imports color with the dvipsnames,usenames options. Unfortunately, my document uses the ACM format, which appears to already import the color package with no options. ...
1
vote
1answer
66 views

How do I define, using the package 'options', a new command type option which is capable of invoking its default argument?

I am trying to use the package options to define a new command type option which invokes the default argument when not provided with an argument. I have tried the following MWE which defines the new ...
7
votes
2answers
217 views

Creating package options which are mutually exclusive and choosing a default

I want to automatize some of the code that I usually include to setup my theorem environment functionality into a package. So here is what I do to control within which counter my theorems are numbered:...
1
vote
1answer
100 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 ...
0
votes
1answer
234 views

'Unknown option' errors in custom package

I am playing around a little with creating a custom package for theorem environments and related functionality. Consider the following MWE: \RequirePackage{filecontents} \begin{filecontents}{test.sty}...
4
votes
1answer
556 views

key-value syntax in package options

I want to create a style file capturing my layout for theorem environments. In particular, I would like to pass an option to the package specifying the level of the theorem counter. So here is a ...
2
votes
1answer
56 views

Transfer all options of “geometry” to my package

In my package I need to use all of geometry package options, I can define one option landscape like this \DeclareOption{landscape}{ \geometry{landscape} } \ProcessOptions\relax My hope is ...
1
vote
0answers
92 views

Pass a list of package-options to a self-written documentclass using l3keys2e

I am writing a documentclass which loads several packages as default. I want to give the user the possibility to pass options to these packages using an documentclass option. Because most packages ...
2
votes
1answer
42 views

How can an unused documentclass option affect other packages?

This is a sort of followup on this question of mine about overprinting. Apparantly, I don't understand how global options are passed from classes to packages as well as I hoped I did. This \...
1
vote
1answer
122 views

option newlinetospace in titlesec not working?

This is the mwe showing the issue. % !TeX program = lualatex \documentclass[9pt, twoside]{extbook} \usepackage[utf8]{luainputenc} \usepackage[T1]{fontenc} \usepackage{lipsum} % fancyhdr -------------...
2
votes
1answer
138 views

pdfpages, calc and moactitlepage conflict

I am unable to use the package pdfpages because it creates a conflict with another package i am using (moactitlepage) that i can't find documentation for. I'd like to find a way to use both together. ...
3
votes
1answer
96 views

Setting default values for LaTeX3 keys

I've written the following code for setting values of a key as part of a package I'm working on, and for some odd reason the default doesn't seem to work. When the package this is part of is specified ...
1
vote
2answers
829 views

How to declare several options for a package

I'm writing a package and already added two options with \DeclareOption. Then with \ExecuteOptions I set the default option. This works really well, but now I have to add a second option type and this ...
5
votes
2answers
342 views

Multiple arguments for modules in LyX - Importing algorithms2e with multiple options in LyX

I want to use the algorithm2e package in LyX (version 2.2.3). There is a LyX module that makes this task simple. However, I would like to adjust the arguments with which the package is imported. The ...
1
vote
1answer
57 views

What is paxcommands?

I've been writing my own class and all the tutorials I've found use the following command to handle font options: \DeclareOption{sansserif}{ \PassOptionsToPackage{\CurrentOption}{paxcommands} } ...
5
votes
2answers
88 views

How to detect whether a package supports an option, or not?

I'm working on a customised report class, aimed at technical documentation in our company. Among other bells and whistles, I'd like to use the "lmodern" package with the "lighttt" option preferably. ...
3
votes
0answers
243 views

Can the optidef package accommodate breaking a long constraint?

The optidef package accommodates breaking a long objective function using the \breakObjective command (documentation section 9.9). I have a constraint that is too long. The workaround below uses \...
2
votes
1answer
180 views

Can't add to table of contents (using cuisine package, memoir class)

According to package documentation, adding "contents" as an argument should add the recipe titles to the TOC, but it's not working. \documentclass[11pt, a4paper, openright]{memoir} \usepackage[utf8]{...
1
vote
1answer
55 views

Producing multiple PDFs with different package options called

I write my worksheets with a package \usepackage{handout}. The package has a few options [solutions], [teachingnotes], [nospace]. I was wondering if there is a way to set up my compiler to produce ...
0
votes
2answers
480 views

Bad mathchar with semantic package

I get the following error message when using the semantic package: ! Bad mathchar (32768). <to be read again> \relax l.13 \begin{document} The problem goes away if I ...
3
votes
1answer
240 views

Resetting RequirePackage arguments in class, allowing subsequent usepackage call

How do I allow someone using my custom document class to \usepackage some library that I've already \RequirePackage'd with specific options? Optimally, when they call \usepackage, it would operate as ...