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
56 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
24 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
168 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
26 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
54 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 ...
4
votes
1answer
107 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
177 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
101 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
1answer
508 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, ...
17
votes
1answer
7k 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: ...
0
votes
0answers
45 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
46 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
72 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
62 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
30 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 ...
4
votes
1answer
131 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 ...
3
votes
2answers
473 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.}, } ...
2
votes
0answers
70 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
190 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
57 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
48 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
220 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} ...
2
votes
1answer
1k 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
174 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 ...
6
votes
2answers
103 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
1answer
382 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
60 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
63 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
260 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
549 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
182 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 ...
67
votes
1answer
919 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 ...
1
vote
1answer
183 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) ...
9
votes
3answers
168 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
88 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
158 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
166 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
150 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 ...
5
votes
2answers
100 views

How to use commands or multiline values for package options/parameters?

I would like to know if there's a way to use a command (including custom commands created with \newcommand) as parameter/option values). I would like to do something like this ...
1
vote
0answers
60 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?
8
votes
2answers
144 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
111 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
79 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.
3
votes
1answer
338 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: ...
7
votes
2answers
156 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 ...
4
votes
1answer
915 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
87 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
221 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. ...
6
votes
2answers
134 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 ...
12
votes
1answer
903 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 ...