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

2
votes
1answer
30 views

Why does using a lstset option in usepackage command make pdflatex not terminate?

Question Why does passing a wrong (as in non-existing) option to listings upon package loading result in a non-terminating pdflatex run, instead of - say - a simple error message? Background ...
2
votes
1answer
112 views

Updating from an old enumitem package - Lubuntu

I've installed Texmaker on my netbook running LXLE (built on Lubuntu 12.04) and when I tried to compile a file I'd been working on with Texmaker on Windows, I get an error saying: Unknown option ...
10
votes
3answers
200 views

When/How should a class load biblatex

I would like to write a custom class that loads the biblatex package, but I am having trouble with option clashes. For example, the following MWE gives me an error % arara: pdflatex % arara: biber % ...
0
votes
0answers
34 views

“Package Options” for a beginner

I have a custom package based on titlesecpackage: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{blackenedtitles}[2015/04/03 Custom Titles Package] \RequirePackage{titlesec} ...
1
vote
1answer
370 views

MikTeX: Package installation repair

I was compiling a TeX file with marvosym package - which was not installed in my computer. When it was automatically attempting to install the marvosym package, I force closed the program thinking ...
5
votes
1answer
69 views

Help with Options in MIT Poker Package?

I'm trying to write a paper for university and it involves using poker cards in latex. I'm using the Poker MIT Package: http://web.mit.edu/foley/games/Arcadia/sr/poker/poker.sty provides the ...
1
vote
2answers
28 views

SVG filename argument to \includesvg - damned if you do, damned if you don't

I'm trying to use the svg package, for some svg files I have in a graphics/ subdirectory. My includegraphics command used to be: \includegraphics{graphics/foo.png} Now, if I write: ...
18
votes
1answer
281 views

Is there a reason for \usepackage with options in a separate line?

I understand that these two commands do the same thing: \usepackage[letterpaper, landscape, margin=2in]{geometry} and \usepackage{geometry} \geometry{legalpaper, landscape, margin=2in} Is there ...
3
votes
1answer
39 views

“Extra \fi” error when defining mutually exclusive package options with conditionals

I have been trying to create a package, which loads the babel package and sets the language with an option. I've been getting strange errors when trying to define mutually exclusive package options, ...
0
votes
2answers
125 views

Package xcolor Error: Undefined color `ForestGreen'

I am using the following packages in my files Latex sources: \usepackage{color} \usepackage[table,xcdraw]{xcolor} \usepackage[usenames, dvipsnames]{color} ...
1
vote
1answer
49 views

\@ifpackagewith doesn't behave as I expected with global options

When I compile the following code, I expect a "Yes" but I get a "No" instead. Is there something subtle going on or is my method for checking wrong? If so, how can I see which options have been passed ...
2
votes
0answers
36 views

Using the dvi2tty package

I want to convert a .dvi file using dvi2tty but I don't know how. I downloaded the dvi2tty package, which contains only some .tex files and other extensions, and I can't see from where to start. Could ...
3
votes
1answer
70 views

algorithm2e - override defaults

I'm using using algorithm2e package with the following settings: \usepackage[ruled,vlined,linesnumbered,noresetcount]{algorithm2e} But for some subset of algorithms in the same document, I want to ...
15
votes
2answers
2k 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 ...
4
votes
1answer
46 views

Can't pass \ in option to package processed with xkeyval - TeX capacity exceeded

I have a test package that uses the xkeyval package to process options. The package works when I pass an option value that does not have \ in it but when I pass yy=\tiny I get ! TeX capacity ...
1
vote
2answers
104 views

Set biblatex options after loading

I use biblatex with the following call: \usepackage[style=authoryear, mergedate=false, maxcitenames=1, mincitenames=1, maxbibnames=999, minbibnames=999, uniquename=false, ...
72
votes
1answer
1k 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 ...
4
votes
1answer
138 views

Option clash for package adjustbox [duplicate]

Problem: I am getting the error message Option clash for package adjustbox. and am wondering what could be wrong? Any advice how to figure out which of the other packages are generating this error? ...
2
votes
1answer
120 views

Assign citation style after the \usepackage{biblatex} in preamble

Is it possible to assign the citation style with a command? (such as \ExecuteBibliographyOptions{...}) I'm getting all \usepackage{...} in one file and settings in another. But I can not do: ...
5
votes
2answers
1k 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.}, } ...
4
votes
1answer
82 views

How does the LaTeX `ABC` music typesetting package configure spacing with `width`

How does the ABC music typesetting package configure spacing with the value passed to width. The documentation says width is the dimension best expressed as a fraction of \abcwidth As width is one ...
6
votes
1answer
184 views

\ExecuteOptions error \CurrentOption \@nil

I try to follow this scheme : If not DeclareOption but have an error of this type : I get an error when using `\ExecuteOptions` together with `\usepackage{geometry}` but I don't understand how to ...
1
vote
1answer
344 views

PassOptionsToPackage: natbib via svjour3

In this MWE, I am unable to pass options to natbib via svjour3, which requires natbib. The commented alternative works fine, but has some drawbacks (e.g., the code in svjour3 after ...
1
vote
2answers
77 views

How to test whether report has been called with “draft” option

How can I test within a document, whether or not the initial \documentclass[a4paper,11pt,twoside,fleqn,draft]{report} includes the "draft" option? My naive attempt \newif\ifmydraft \mydraftfalse ...
6
votes
1answer
119 views

How to make menukeys support both of win and mac?

menukeys is a very fancy package. We can use it by: \usepackage[os=win]{menukeys} % Show keys in Windows style or by: \usepackage[os=mac]{menukeys} % Show keys in Mac style However, in my ...
1
vote
1answer
101 views

option for title page in custom package

I have made my own package which loads some packages and setup a custom title page using the following % Title and author \makeatletter \def\@maketitle{% \newpage %\vspace{-\topskip} % ...
1
vote
1answer
3k views

! LaTeX Error: Option clash for package geometry (but I haven't loaded package twice)

I am currently trying to create a landscape document using r markdown. Since I also want the header to be in landscape, I have the following mystyles.sty document: \usepackage[landscape]{geometry} ...
0
votes
0answers
31 views

How to \DeclareOption with a variable? [duplicate]

I know \DeclareOption{option name}{option content} but how is this used to pass a variable number into the package? for example, \usepackage[margin=1in]{geometry} passes 1in to the margin option of ...
0
votes
1answer
77 views

PDF as a data container

Inserting data about article to the PDF It is possible to pass title and author of the article to the appropriate hyperref package options? I want to be the values of \title - Title of the article ...
5
votes
1answer
558 views

PassOptionsToClass vs global options

I'm currently using \PassOptionsToClass, as suggested in Conditional Compiling and \documentclass to compile a document in several languages. However, if I use language-options in \PassOptionsToClass, ...
3
votes
1answer
703 views

error '\clipbox already defined' when use package adjustbox

I am trying draw table. I use adjustbox package. I loaded this package in separate file. That separate file contains the packages I use. \usepackage{inputenc} \usepackage{graphicx,color} ...
2
votes
1answer
428 views

Using Babel inside my own package produces option-clash error

I want to write my own package which provides an \affidavit command which produces some standard text in two languages (ngerman and english). Minimal working example of this package: ...
2
votes
1answer
1k 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, ...
29
votes
1answer
18k 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: ...
1
vote
0answers
110 views

Play one video immediately after another one with `\usepackage{multimedia}`

If I use autostart only video4 plays, but the idea is to play all videos in order, i.e., first video1, then second video2 immediately after video1 finishes and so forth. Is that possible? I haven't ...
2
votes
1answer
63 views

Navigating latex packages for their options

I'm trying to find all the different font options available in the package devanagari for typesetting hindi. I found a template online, whose reduced working form is \documentclass{article} ...
0
votes
1answer
853 views

How to change Figure Label? (Fig.: n instead Figure: n) [duplicate]

This question seems to be asked a lot. I tried some different solutions and any of them did not work. My figure caption is displayed as Figure 1: Caption Here But I want to display: Fig. 1: ...
0
votes
0answers
163 views

Problems with mutated vowels and Option Clash

My Problem is that i have wrong packages for Mac, i think. I obviously cannot write ö,ü,ä and somehow the package "\usepackage[applemac]{inputenc}" does not help. My packages are as follows: ...
0
votes
0answers
31 views

Cannot find amsmath amstools package even though the doc used to compile [duplicate]

This is from a document that used to compile. I want to use it as a template as it was a really good template. However when I press compile it says that it cannot find the amsmath or amstools ...
5
votes
1answer
961 views

Declare package options and loading packages leads to “options section” error

I'm trying to create a package with some options. However, whenever I declare options and load other packages, I receive the following error: LaTeX Error: \RequirePackage or \LoadClass in Options ...
2
votes
0answers
139 views

I am trying to send options to a style file using boolean declare option [closed]

$Ok trying minimal examples: here is doofus.tex \documentclass[english]{letter} \usepackage[T1]{fontenc} \usepackage{color} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX ...
5
votes
2answers
221 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
88 views

Having multiple contradictory options, how to handle them?

Lets say you are writing a package, which has the usual pair of draft and final-mode. But how should I handle, if this package gets the global option final and the local draft? Consider the ...
3
votes
1answer
144 views

“Author et al., submitted”, is that possible with \citep?

Is it possible to have "Author et al., submitted" using the package natbib? e.g.: @article{papersubmitted, title = {{I love LaTeX, and you?}}, author = {Author1, Name and Author2, Name and ...
9
votes
1answer
511 views

xkvltxp gives keyval error in case of biblatex's options on multiple lines

A keyval error arises if both: xkvltxp is loaded biblatex is loaded with options on multiple lines. The following MWE shows this strange behavior: \documentclass{article} % \usepackage{xkvltxp} ...
3
votes
1answer
4k views

When using Caption Package, I receive: “Undefined control sequence \captionsetup ”

I introduce a figure as follows: \begin{figure} \centering \includegraphics[scale=0.300]{Figure.eps} \caption{Caption for the figure} \label{a} \end{figure} In the preamble I have written: ...
6
votes
2answers
263 views

Creating a custom character that automatically adjusts size in math mode? [duplicate]

After a lot of searching, I finally found the .pdf's for the elusive Griffiths script r character used in his ubiquitous undergraduate electrodynamics book. I made a simple package that allows me to ...
7
votes
2answers
181 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 ...
7
votes
1answer
908 views

'Unknown option' for my own package

I create a package: one common file that includes others. In common package file (russian_post.sty) I define options: \DeclareOption{times}{\@seriffalse} \DeclareOption{landscape}{\@lscapetrue} ...
4
votes
1answer
130 views

How to make a package to ignore parameters it doesn't know when loading in a class?

I'm defining a class that extends article that loads a package inside (automultiplechoice). I'm trying to configure the package and the class using the parameters of the \documentclass command. When ...