Stack Exchange Network

Stack Exchange network consists of 174 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.

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
149 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
28 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
34 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
64 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
96 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
53 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
66 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
60 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
64 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
102 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
47 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
34 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
60 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
124 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
204 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
112 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
76 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
87 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
99 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
51 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
201 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
85 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
165 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
410 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
50 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
88 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
38 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
82 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
107 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
88 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
447 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
266 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
55 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
184 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
146 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
374 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
187 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
251 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
605 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
103 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
92 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 ...
3
votes
1answer
156 views

Why does biblatex not process global options

For some reason biblatex doesn't seem to be reading global options. The following tex file produces a single citation, but not in the authoryear style. If I uncomment the PassOptionsToPackage line, it ...
5
votes
0answers
135 views

Issues with grffile passing options to graphicx (draft/final)

I’ve been trying to set draft mode globally on my document, but I still want \includegraphics to work normally, so the graphicx package should receive the final option. I’m also using the grffile ...
0
votes
0answers
63 views

upsampling method \includegraphics

What is the method latex uses, if I change the original resolution/size of an image in latex using e.g. \includegraphics[scale=1.5]{img.jpg} or \includegraphics[scale=0.5]{img.jpg}? Do I have access ...
1
vote
0answers
393 views

Correct way to pass options to (class) loaded packages

I write a document with the book class and have a file (mainstyle.sty) with a number of packages that I use (pdfx, lipsum, placeins, etc\ldots). I recently started playing around with tufte-book and ...
4
votes
2answers
201 views

pgfkeys with multiple values for a class option key has incompatibilities with some packages

Like discussed on the chat TexAndFriends, I'm currently adding the ability to define languages in my own class file. Here is my minimal (non working) example. My class file with the packages I'm ...