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

3
votes
1answer
47 views

Package option won't do what it has to

I'm writing a package but I'm having a little trouble. Right now, the package goes: %!TEX encoding = UTF-8 Unicode \def\fileversion{0.2} \def\filedate{% Mon 2014-04-01 } ...
1
vote
0answers
45 views

emulateapj options not changing anything

simple question: how do you change an option with emulateapj? I'm using \documentclass[12pt, apj]{emulateapj} but it appears to have no effect and comes up with these messages: [Compiling ...
2
votes
1answer
33 views

outline package, how to change enumeration style?

I'm working with the outlines package. I want to change the 2nd level enumeration style from small letters ( a b c ) to small roman letters ( i),ii),iii)... ). In other words, I want to exchange the ...
1
vote
0answers
23 views

How to use the Parallel package with proper environment options?

If I use: \begin{Parallel}[c]{0.47\textwidth}{0.47\textwidth} \ParallelLText{paragraph 1 left} \ParallelRText{paragraph 1 right} \ParallelPar \ParallelLText{paragraph 2 left} \ParallelRText{paragraph ...
1
vote
1answer
124 views

Help to change svg package to include a 600dpi pdf instead of creating huge pdf with vector graphic. (Downgrade PDF)

I am using the svg package to include an svg file with transparent 3D graphic and latex code to be set at the right label positions. I tried many different methods to do that (matlab->eps+tex file) ...
1
vote
1answer
70 views

Initials in the bibliography. firstinits/uniquename not working correctly in biblatex?

Consider two MWEs (minimum working examples): \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib} @article{Delbaen1998, year={1998}, title={Title3}, author={Delbaen, F.}, } ...
9
votes
3answers
150 views

How to make or add options for packages or functions

I'm using at this moment the Piano Package. This Package is a little limited so I want to change a few things. The standard color of the dots is orange. I want to change this in different situations. ...
6
votes
1answer
56 views

Expand package option, to make contained character math-active

In an answer to another question of mine, egreg posted code, which activates a character in math mode and gives it the function of \operatorname. Now I want to put this into a package and set the ...
6
votes
0answers
57 views

Appending options to hyperref

I am trying to append options to hyperref inside a package (say append.sty) I'm writing. More precisely, in the package I load the hyperref package and I tune it: ...
6
votes
1answer
46 views

In \DeclareStringOption, what is the difference between <init> and <default>?

In the kvoptions package the following macro is defined: \DeclareStringOption [⟨init⟩] {⟨key⟩} [⟨default⟩] Following is the related documentation: A macro is created that remembers the value ...
4
votes
1answer
57 views

Treat floatbarriers like page borders?

When I use the figure environment I like using [bt] options. I now have subsections acting as floatbarriers (using the extraplaceins package), and [b] / [t] does not work due to my restraining ...
1
vote
0answers
48 views

Package “complexity” with option “small”

I'm using the package complexity to typeset complexity classes (e.g. NP). For some reason the small-option does no show any effect (font size does not change). Any ideas?
3
votes
2answers
51 views

Is there a way to create a standalone folder/document with non standard packages?

I am working on an article which will be compiled on another machines (of somebody else). I don't want to depend on the other person to install missing packages. Is there a way to include them with ...
6
votes
2answers
79 views

Passing an if-else option to a custom sty file

I have a custom .sty file loading needed packages and defining some commands and environments. Is there an easy way to either: define an if-else option define option's default value I am using the ...
10
votes
1answer
76 views

Pass package options at loading time or later?

(This isn't really about a LaTeX issue but more about personal taste and arguments herefore.) Do you prefer to pass package options at loading time with, say, \usepackage[something]{geoemtry} ...
2
votes
1answer
44 views

Options for ``footmisc'' package

Is there a command for footmisc similar to siunitx's \sisetup for setting options in another way than via \usepackage[<options>]{footmisc}? I can't find anything in the manual.
6
votes
2answers
109 views

Using option for sty file

I would like to create and option (namely grid) to my sty file to produce a grid covering the whole page. I had success using \newif\if@sigur@grid \DeclareOption{grid}{\@sigur@gridtrue} and using ...
3
votes
1answer
152 views

acronym option passed at the class level rather than to the (glossaries) package level doesn't work

I was pretty sure that options (including unknown ones) passed at the class level were also passed to the loaded packages. Hence I don't understand why the following MCE works like a charm: ...
3
votes
1answer
67 views

Can one reconfigure packages after \usepackage?

Is it possible to change the options a package was invoked with after the fact? That is, could one define \OopsIWishIHadWrittenDraftWhenIncludingGraphicx so that \documentclass{article} ...
3
votes
1answer
161 views

Lyx: How to add option to package automatically load

I got the problem, that links in \url only break in LyX when there is a \ character in it. I found the solution to add \usepackage[hyphens]{url} to my preamble. But the problem is, LyX loads the ...
3
votes
1answer
116 views

What is the proper way to implement language options in a multilanguage package?

I'm writing a multilingual LaTeX2e package to be used with pdflatex containing several macro and environment definitions. The main language of the document--a thesis--is English, Finnish or Swedish. ...
5
votes
2answers
93 views

Passing Options to Unknown Class

My goal is to process a LaTeX tex file with the draft option enabled for the document class, but from a terminal without having to edit the tex file or even open it to look at what class is being ...
10
votes
1answer
241 views

If not DeclareOption

I have some documents using a same custom package. That "header" package loads by default the package fullpage. But I would like to write a new LaTeX document, using the same header, but without ...
1
vote
1answer
116 views

Packages options not recognized

I installed TeX Live and I have a document containing this line: \usepackage[utf8x]{inputenc} The document used to compile years ago, but now it does not seem to find utf8x. What I did to install ...
4
votes
1answer
63 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
56 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
53 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 ...
11
votes
2answers
197 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
214 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 ...
55
votes
1answer
644 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
106 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
119 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
62 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
112 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 ...
13
votes
2answers
172 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
302 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
230 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
286 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 ...
4
votes
0answers
136 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
72 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
229 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
232 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
254 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
105 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
128 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
115 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 ...
13
votes
1answer
2k 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: ...
13
votes
2answers
169 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 ...
4
votes
1answer
3k 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
226 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} ...