These reference options specified to the package at loading time. For optional arguments to macros or environments, use {optional-arguments} instead.
1
vote
0answers
62 views
French Cursive font in English document
Why is it that when I use the packages
\usepackage[default]{frcursive}
and
\usepackage[T1]{fontenc}
in MiKTeX I get words like composimpoition for composition and transformasforation for ...
3
votes
1answer
43 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.
• ...
4
votes
0answers
61 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
28 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
44 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 ...
12
votes
2answers
91 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
108 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
93 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.
11
votes
2answers
224 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 ...
10
votes
1answer
152 views
What are best practices for package authors to deal with package conflicts?
One occasionally encountered problem with LaTeX is incompatibility between packages. What are best practices for package authors to deal with package conflicts?
For example:
What is the best way to ...
3
votes
0answers
71 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 ...
5
votes
1answer
73 views
How to change the style of menukeys
Maybe I am just stupid, but I don't manage to change the style of the output of menukeys. The manual of this package lists in Section 4.2.1 some predefined styles. However, I can't find any hint of ...
2
votes
1answer
64 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
109 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
86 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
88 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
70 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
90 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 ...
8
votes
1answer
66 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 ...
5
votes
1answer
549 views
Option clash for package xcolor
Im doing a report, and having a rather large table in my appendix. And want to emphasize some specific values by coloring some single cells. I'm trying to do it with xcolor. But receiving the error:
...
12
votes
2answers
140 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 ...
3
votes
1answer
664 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.
...
4
votes
1answer
92 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
115 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
0answers
73 views
Use the options of a package loaded into another package [closed]
How can I use the options of a package loaded into another package?
For example:
\usepackage[my options,options of a package loaded into mypackage]{mypackage}
0
votes
1answer
263 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
201 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
285 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, ...
2
votes
2answers
1k 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 ...
2
votes
1answer
345 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 ...
13
votes
2answers
412 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
162 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 ...
9
votes
3answers
475 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 ...
6
votes
2answers
354 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
592 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
334 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
225 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
87 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 ...
4
votes
1answer
64 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
115 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 ...
31
votes
3answers
487 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. ...
8
votes
2answers
175 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}
...
13
votes
2answers
2k 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
314 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
373 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 ...
12
votes
2answers
313 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
132 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, ...
13
votes
1answer
403 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 ...
1
vote
1answer
490 views
How can I customize 'headsep' attribute in the geometry package so that I can set it for individual pages?
I use the \geometry package for formatting my CV, and I know (from How to remove vertical space between header and body of text?) that I can use the headsep attribute to customize the spacing between ...
3
votes
1answer
771 views
\RequirePackage without option clashes because of the package loading order?
I am writing a package which requires the xcolor package with table option.
It is loaded in the package with
\PassOptionsToPackage{table}{xcolor}
\RequirePackage{xcolor}
which works if my package ...

