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
33 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
51 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} ...
14
votes
0answers
194 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 ...
1
vote
1answer
41 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 ...
10
votes
3answers
170 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 % ...
2
votes
0answers
25 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 ...
2
votes
1answer
35 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 ...
4
votes
1answer
42 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 ...
2
votes
1answer
83 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 ...
1
vote
2answers
83 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, ...
3
votes
1answer
93 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
91 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: ...
4
votes
1answer
73 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
145 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
270 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
73 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
107 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
77 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
2k 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
30 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
72 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
417 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
572 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
368 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: ...
1
vote
0answers
97 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
60 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
593 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
139 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
731 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
118 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
1answer
76 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
128 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 ...
2
votes
1answer
3k 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
242 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 ...
9
votes
1answer
425 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} ...
7
votes
1answer
816 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
112 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 ...
4
votes
1answer
75 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
464 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
1k 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
196 views

How to use the Parallel package with proper environment options? [duplicate]

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
221 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) ...
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.}, } ...
10
votes
3answers
216 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. ...
7
votes
1answer
112 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
247 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: ...
8
votes
1answer
312 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
201 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
69 views

Package “complexity” with option “small” [closed]

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?