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.

0
votes
0answers
16 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
740 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
49 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
113 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
59 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} \...
2
votes
1answer
37 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
222 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
36 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
45 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
73 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
146 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
59 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
81 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
67 views

Problem with table installed from Excel2Latex

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
137 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} \...
0
votes
0answers
40 views

Captions Language

This is how I started my code, but i saw in all the questions about captions that it's written in the same way and i don't know why the TexStudio keeps saying that it doesn't recognize that order \...
4
votes
1answer
106 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
58 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
35 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
67 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 ...
7
votes
1answer
131 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
288 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
128 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
100 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 ...
5
votes
1answer
119 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
138 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
57 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
208 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:...
0
votes
1answer
93 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
201 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
490 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 ...
1
vote
1answer
53 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
90 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
40 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
99 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
121 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
92 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
600 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
305 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
56 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
83 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
214 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
163 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
419 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
212 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 ...
2
votes
1answer
304 views

Declaring a Default Option in custom style

I'd like to create a style file that lets me choose between two versions of a document, one that contains identifying information and one that does not---is "suitable for blind review". My idea is to ...
0
votes
0answers
634 views

Unknown option keeplastbox for package `flushend`

I'm working with a fresh install of MiKTEX and TeXstudio on a new Windows computer. On my other computer I can compile my article without error. But on this new computer, I get the error: Unknown ...
1
vote
1answer
110 views

Verify that option was set

Based on this answer I'm able to verify that an option was set to specific values. But how do I verify that an option was set in case the actual value doesn't matter. I.e. how do I make sure an option ...
1
vote
1answer
98 views

Variable-like options in a package

I turned my most used packages and macros and environments into a package (and defined options for some). There is one thing I could not figure out. Say I have this environment definition in my custom ...