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

learn more… | top users | synonyms

4
votes
1answer
168 views

Can one set global numberlike in thmtools?

I want all of my theorem-like environments to be numbered as if they were all theorems. Using thmtools I can do this with code like this: \usepackage{amsthm} \usepackage{thmtools} ...
2
votes
1answer
78 views

Conditional based on packageoption

I added a counter to the todonotes packages \todo so I could display the total number of todos I have left. However I also enjoy working with the package option disabled. Therefore I would like to ...
3
votes
1answer
66 views

Creating an option clash between custom class options

In my custom LaTeX class, I've created some different options, such as different font sizes, 11pt, 12pt and 13pt, and paper sizes, such as a4paper and letterpaper. However, only one option from each ...
14
votes
2answers
435 views

Applying options to already loaded package

Is there a way to apply some options to a package which is loaded in the cls file I am using? For instance, suppose that the cls file loads graphicx, and I want to apply the option demo to it from my ...
2
votes
1answer
333 views

Biblatex package options do not apply correctly anymore

I use biblatex to create my bibliography and citations in my LaTeX document. Now as I want to change some options for the citation style. The changes I made to the biblatex options do not apply ...
68
votes
1answer
958 views

Automated management of package options and loading order

This question led to a new package: pkgloader(CTAN, Github) LaTeX package conflicts are a common source of frustration: (1) (2) (3) (4) (5) (6). To quote Freek Dijkstra: Package conflicts ...
3
votes
1answer
141 views

Should I load all “package dependencies” in tufte-latex?

In the tufte-latex sample-book.pdf: Package Dependencies The following is a list of packages that the Tufte-LATEX document classes rely upon. Packages marked with an asterisk are optional. • ...
5
votes
1answer
158 views

Changing the optional argument of a package at some point in the document

Is it possible to change the optional argument from <option 1> to <option 2> (given to a loaded package <package> via \usepackage[<option x>]{<package>}) at an arbitrary ...
1
vote
1answer
106 views

Detecting the mode of the exercise package [closed]

I am trying to detect whether the exercise package's option noanswer is on, with the intention of not displaying parts in either mode. Here is my mwe: \documentclass{minimal} ...
3
votes
1answer
146 views

Passing arguments to a .sty-file - a specific case

After having plowed through (i.e. read and trimmed down the given examples in an attempt to apply them to my case) these documentations and guides: Implementing key-value input: An introduction The ...
14
votes
2answers
234 views

Load a package as optional argument

I'm creating my personal package. I'd like to use an option to turn on/off the line numbering provided by the package lineno. So, my sty file contains \RequirePackage{lineno} \linenumbers But if ...
4
votes
1answer
601 views

Hyperref options

Consider the following two MEWs: \documentclass{article} \usepackage[colorlinks=false,pdfborder={0 0 0}]{hyperref} \begin{document} Click \href{http://www.latex-project.org/}{here} to go to the ...
1
vote
1answer
442 views

Set my own minted default options inside a class

Is there a way that I can set minted options inside a class? I want to set my own defaults format for minted inside a custom class that I have.
12
votes
2answers
366 views

Is there a way to limit the scope of \usepackage?

When I tried to use the breqn package suggested by an answer to the question How do I break a long equation over lines It managed to break a whole bunch of unrelated equations (equations that did ...
5
votes
2answers
194 views

Creating a dependency tree (\RequirePackage) for packages used in my document

Is there a way of creating a dependency tree for packages \RequirePackageing each other for those packages used in my document, ideally with the respective required options and version numbers? Are ...
2
votes
1answer
74 views

How do I pass the right option to select english?

OK I'm not a LaTeX developer but I'm using someone else's file to produce a document. I don't know LaTeX at all, How do I pass a command option to tell the package to use english and not french when ...
7
votes
2answers
465 views

How can I stop the “setspace” package from processing a “doublespacing” documentclass option?

LaTeX does not behave as I expected with the following files. First file: \documentclass[doublespacing]{article} \usepackage{lipsum} % for dummy text only \begin{document} \lipsum \end{document} ...
1
vote
1answer
599 views

How can I set the 'final' option for the graphicx package in XeTeX?

I'm using XeTeX and wondering how to set the final option of the graphicx package. I started my document with pdfTeX and the following lines: \documentclass[a4paper, 12pt, twoside, headsepline, ...
1
vote
1answer
434 views

How do I pass options to a package? [closed]

I apologize if this is a neophyte or duplicate question because I was unable to find it. A comment on the question Problem with \leq displaying as \leqslant, mentions that "you can include mathabx ...
3
votes
1answer
133 views

Convenient way to pass package options and \setup like commands

I want to be organized in my code. In order to pass options to packages, i developped my own macros : \makeatletter \newcommand*\Option{% \@ifstar{\@Option}{}} \newcommand*\@Option[3]{% ...
3
votes
1answer
163 views

LaTeX system-wide glossary database as custom package

I'm trying to make a system-wide glossary database (with acronyms and definitions) as a package. My file is: /usr/local/texlive/texmf-local/tex/latex/local/myglossary.sty One needs to run: sudo ...
9
votes
1answer
162 views

Compare \CurrentOption with a string

I encountered a problem that I want to compare the \CurrentOption with a string. In the .tex file I have a code below. \usepackage[en-ver]{cufestatletter} Then I want to use \ifx to determine ...
19
votes
1answer
9k views

Option clash for package xcolor

I'm writing a report, and have a rather large table in my appendix. I'd like to emphasize some specific values by coloring some single cells. I'm trying to do it with xcolor. But receiving the error: ...
13
votes
2answers
193 views

Load different options depending on package version

Is there any possibility to load a package with different options depending on the version of the package? The command \@ifpackagelater{package}{date}{true}{false} only works if the package is ...
7
votes
1answer
5k views

Option clash when using graphicx and tikz packages

The following code fails Option clash for package graphicx, it seems to be an incompatibility between the package graphicx (when the option pdftex is used) and the package tikz. ...
5
votes
1answer
257 views

pass xkeyval option to class

I have read about passing options to classes in this thread, but do not understand what I'm doing wrong. My class is defined like so, using xkeyval and based on memoir. \NeedsTeXFormat{LaTeX2e} ...
3
votes
2answers
958 views

How to pass the draft option for pdfpages to \includegraphics?

If I use \usepackage[draft]{pdfpages} and include \includepdf[...]{...} everything works fine, i.e. instead of the included pages I get empty boxes. But if I use \includegraphics[...]{...} ...
0
votes
1answer
2k views

How to resolve option clash for package xcolor? [duplicate]

Possible Duplicate: Option clash with xcolor and TikZ The following is my MWE: \documentclass{article} \usepackage{tikz} \usepackage[table]{xcolor} \begin{document} Hi! \end{document} ...
3
votes
1answer
710 views

beamerposter custom style with keyval definition

I'm creating a beamerposter style accordingly to my department specification. I would like to create a theme where the definitions of the blocks can vary accordingly to a keyword in the calling of the ...
3
votes
2answers
533 views

How to outsource \hypersetup to an external file?

I use the hyperref package and defined custom settings as follows: \usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{url} \usepackage{hyperref} \hypersetup{ bookmarks=true, ...
3
votes
3answers
6k views

Set natbib options after loading natbib package

Is it possible to set (or change) the natbib package options after its loading (i.e. after the line \usepackage{natbib})? The reason I need it is that I'm using a LaTeX style from a journal and it ...
3
votes
1answer
898 views

beamerposter passing portrait options to custom theme

Hi I'm preparing a custom theme for beamerposter to align with the theme of my institution. I have to include a figure banner on the headline plus the possibility to include 2 different logos. So far ...
14
votes
2answers
2k views

Package options and \RequirePackage: order of commands and option conflicts?

How do the options of a \RequirePackage command interact with options specified for that same package elsewhere? Here is an example: The pdfx package, if loaded with the a-1b-option, executes the ...
1
vote
1answer
471 views

Different animated pictures but only one control panel

I have a beamer frame made up of different animated pictures which share the same time. Is that a way to use the controls option in the animate package so that I can control all the animations at the ...
15
votes
3answers
6k views

a4paper, where should I declare it? In document class or geometry?

I currently have an article document class and I previously changed it to include printing on A4 paper: \documentclass[12pt, a4paper]{article} However, I had to change my margins to meet my ...
7
votes
2answers
684 views

Different types of Blackboard Bold in the same document

I am using mtpro2 package and it has 7 (!) different options for the Blackboard Bold (BB) to choose from. However only 2 of them provide BB version of Greek letters. And in both cases the result is ...
2
votes
2answers
3k views

How to circumvent ‘Option clash for package …’ error?

I use a package foo that requires a package bar with some options. Now, assume that I need bar to be loaded with a different set of options. Unfortunately, when I try to load bar myself I usually end ...
6
votes
2answers
803 views

“Double use” of a4paper (geometry/KOMA)?

In my preamble, should I give the a4paper option just once or twice, i. e. once for the KOMA-script document class (scrartcl) and once for geometry? Is this redundant or does scrartcl need the option ...
8
votes
2answers
649 views

Loading package twice with \RequirePackage causes “option clash”

I thought that loading a package twice with the same options cannot lead to option clash, still I get a clash in the following simple example: \documentclass{article} ...
4
votes
1answer
131 views

How do I add an option that sets a flag to a document class?

I want to add an option that sets a flag to a document class. That is, I want to be able to type \documentclass[foo]{class} and get one type of behavior, and type \documentclass{class} to get a ...
5
votes
1answer
95 views

Spaces in pfgopts options

Is there a simple way to allow spaces in the options of a package using pgfopts to process them, which is local to that package i.e. I don't have to include some package in the main document before ...
6
votes
1answer
177 views

Where to get help for the package options?

OS: Windows 7 + SP1 TeX: MiKTeX 2.9 IDE: Kile 2.1 For getting help on usage of package options, I usually Google "foo options latex", where foo is the name of the package. I wanted to know whether ...
34
votes
3answers
592 views

Will LaTeX3 improve freedom of package ordering and reduce “options clash”?

A prefatory afterthought: you may think this question better asked on the LaTeX3 mailing list, but I believe there may be a more general interest in the rather Byzantine rules for package load order. ...
9
votes
2answers
259 views

Key Value option in package

I trying to write a package, and I'd like to specify whether there should be colour or not. I'd like to do: \usepackage[color=false]{foo} and have this set \RequirePackage[color=false]{hyperref} ...
24
votes
2answers
7k views

Option clash with xcolor and TikZ

I want to draw some coloured circles, so I loaded tikz in my preamble. However, now xcolor is telling me that it has an "option clash". How should I fix this? \documentclass{article} ...
0
votes
1answer
362 views

longtable package is not spanning table across multiple pages

I have a table which spans into multiple pages. but, I could not get the table spanning into multiple pages. here is my MWE. \documentclass[a4paper,10pt]{book} \usepackage{multirow} ...
3
votes
1answer
550 views

How can I repair a Minion Pro font installation that lacks certain features?

I was overzealous in my installation of Minion Pro and accidentally installed metrics that I do not have. Specifically (it seems), I unzipped metrics-opticals.zip, when I shouldn't have. As a ...
13
votes
2answers
525 views

Did I misunderstand \RequirePackage? I don’t understand an option clash

Have a look at the following example, please. \documentclass{article} \usepackage{filecontents} \begin{filecontents}{my.sty} \RequirePackage{xcolor} \end{filecontents} \RequirePackage{my} ...
6
votes
1answer
160 views

Nested parameters lost when generating new macros from package options

I've created a package which I would like to take in options and turn these into new macros (one new macro for each option). I also want these new macros to produce new macros in turn. For example, ...
14
votes
1answer
543 views

Where can I find out what various hyperref options do?

Where can I find a description of hyperref options, deeper than the one of the manual? I do not understand the meaning of several options. For instance, what is "redefines LaTeX internals" (option ...