Skip to main content
19 votes

Option clash for package xcolor

Another way is to paste this line \PassOptionsToPackage{table}{xcolor} before \documentclass{...} as was already referenced here!
EnthusiastiC's user avatar
19 votes
Accepted

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

From source2e.pdf, page 479 (CTAN page or texdoc source2e in a terminal):
Phelype Oleinik's user avatar
17 votes
Accepted

Package option vs setup command

It is best to set things up using a \foosetup command and then (possibly) also make those options available as package options using kvoptions or similar packages. the advantage of having a separate ...
David Carlisle's user avatar
12 votes
Accepted

How to declare several options for a package

The space in \ExecuteOptions is an easily solved problem; but there's another one. With the input \documentclass{article} \usepackage[en,bib-by-name]{sam} \begin{document} x \end{document} the .aux ...
egreg's user avatar
  • 1.1m
12 votes
Accepted

Are there any pros and cons associated with dvipsnames, svgnames, and x11names in xcolors package?

One difference is that the colours with dvipsnames are defined in CMYK, but svgnames and x11names are defined in RGB. So you might choose dvipsnames if your final output is intended for offset or ...
David Purton's user avatar
  • 26.4k
11 votes

key-value syntax in package options

A few examples for different packages All of the following package examples work with the following document when saved as mytheorem.sty. \documentclass[]{report} \usepackage[level=chapter, foo, bar=...
Skillmon's user avatar
  • 61.2k
11 votes

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

Phelype Oleinik pointed you at the LaTeX sources but there is also a user guide called usrguide.pdf texdoc usrguide will open the document in texlive. Section 3.2 on preamble commands has the ...
David Carlisle's user avatar
9 votes
Accepted

Proper way to use `RequirePackage` and avoid option clash

The Option Clash error only happens when the options used at the second \usepackage are not empty and differ from the first option list, so you can defer loading hyperref at the very end of the ...
Phelype Oleinik's user avatar
9 votes
Accepted

Is ntheorem[thref] truly incompatible with hyperref?

unchanged things The thref option of ntheorem is and was always incompatible with hyperref. Without hyperref a label like \label{theo}[additional text] will write \newlabel{theo}{{1}{1}}[additional ...
Ulrike Fischer's user avatar
8 votes
Accepted

Switching lines in preamble causes error/NO error

From the documentation of \usepackage in source2e.pdf: \usepackage[⟨package-option-list ⟩]{⟨package-list ⟩}[⟨version ⟩] There can be any number of these declarations. All packages in ⟨...
Andrew Swann's user avatar
  • 96.1k
8 votes
Accepted

Package option (for xcolor) is not being properly used in beamer

This is due to a bug in beamer v3.65 which was fixed in beamer v3.66. Those who are forced to use this version (upgrades may be difficult when you install the complete system), you can use the ...
Masroor's user avatar
  • 17.9k
7 votes
Accepted

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

The IEEEtran class has % The IEEE uses Times Roman font, so we'll default to Times. % These three commands make up the entire times.sty package. \renewcommand{\sfdefault}{phv} \renewcommand{\...
egreg's user avatar
  • 1.1m
6 votes

Package xcolor Error: Undefined color `ForestGreen'

A more general solution may simply be to define the color explicitly. \definecolor{ForestGreen}{RGB}{34,139,34}
Bradley Evans's user avatar
6 votes
Accepted

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

LaTeX's \DeclareOption doesn't work with key-value pairs. That is, options like 10pt, 11pt, and 12pt are allowed, but an option fontsize=<10 or 11 or 12> wouldn't work. There are a few packages ...
Phelype Oleinik's user avatar
6 votes

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

I think the clearest way to see the differences is to use package layout showing you the current writing area and margins and several length of the document in mm. Please see this code \...
Mensch's user avatar
  • 65.5k
6 votes
Accepted

Use unexpanded macro in package options

Currently (although there may be plans to change this) the options argument is normalized by the standard option handling code before being passed to the package and so before being accessed by the ...
David Carlisle's user avatar
6 votes

Customize package between book/article classes

you can check for document class, by name but more general is to check for \chapter \@ifundefined{chapter} {no chapter version} {chapter version}
David Carlisle's user avatar
6 votes
Accepted

Is \ProcessKeysPackageOptions obsolete?

Yes, we have integrated into the kernel a very slightly modified method: \ProcessKeyOptions [ <family> ] There is no 'just the package' command in the kernel, as this behaviour did not match ...
Joseph Wright's user avatar
  • 261k
5 votes
Accepted

Resetting RequirePackage arguments in class, allowing subsequent usepackage call

There is no general way to do this. Normally latex detects the package has been loaded and prevents loading a second time. You can turn off that check by undefining the macro that records the ...
David Carlisle's user avatar
5 votes

Appending options to hyperref

The reason the following does not work \def\in@hyperref{pdfauthor=My Name} \hypersetup{colorlinks,linkcolor=blue,\in@hyperref} but the following does \def\in@hyperref{My Name} \hypersetup{...
Martin Scharrer's user avatar
5 votes
Accepted

MikTeX: Package installation repair

Sounds as if the map file has not been updated. Run on a command line updmap. Remark: This is often necessary -- if you don't kill the installation -- as the admin package manager can not update ...
Ulrike Fischer's user avatar
5 votes

Can not load biblatex with options

I found the answer. It is an incompatibility with the xwatermark package: \usepackage[printwatermark]{xwatermark} If this package is included before biblatex it somehow breaks the option parsing for ...
Marcus's user avatar
  • 61
5 votes
Accepted

Why does biblatex not process global options

Global options are stored in \@classoptionslist. The \ProcessOptions command in a package checks this lists and compares every entry with the list of declared options of the package. If the option is ...
Ulrike Fischer's user avatar
5 votes
Accepted

Setting default values for LaTeX3 keys

I've "fixed" your code in the following way: I've added the initial statement. You need to understand the difference: .default defines what happens when you do \keys_set:nn {...} {mykey} (what mykey ...
TeXnician's user avatar
  • 33.7k
5 votes
Accepted

Package keyval Error: hidelinks undefined

From the ChangeLog of package hyperref: 2011-02-05 6.82a Heiko Oberdiek 6.82a Options hidelinks, allcolors and allbordercolors added. Update hyperref.
Heiko Oberdiek's user avatar
5 votes
Accepted

Misunderstanding of \PassOptionsToPackage?

You need to put \PassOptionsToPackage before you load the package. It modifies how the package will be loaded in the future. In this case, you might not need it. Language options normally belong in ...
Davislor's user avatar
  • 45k
5 votes
Accepted

LaTeX3 - Failing to define the default value of a package option

It looks like you are not looking for a default value, you are looking to set the initial value (at least in l3keys parlance). The default value becomes relevant if a key is given without a value. The ...
moewe's user avatar
  • 177k

Only top scored, non community-wiki answers of a minimum length are eligible