Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [options]

Options can be specified in order to influence the behavior of packages and classes, e.g. allowing for features or disabling others.

27
votes
1answer
17k views

What is the opposite to “only marks” option in PGFPlots?

For some application I generate a bunch of plots automatically from a script, that means that sometimes I issue contradictory options to pgfplots objects because one is the default (within the script),...
17
votes
4answers
5k views

Use MiKTeX option through latexmk

When I use MiKTeX normally, I call this: pdflatex --aux-directory="C:\Users\doncherry\Documents\LaTeX\AUXI_global" foo.tex For latexmk outputting pdf (via pdfLaTeX) with continuous previewing, my ...
15
votes
1answer
66k views

How to run TeX from the command line interface in Linux

Even though I can find this command hiding somewhere on the internet, I though it might be useful to have it up here for the LaTeX community in general. How does one run TeX from the command line ...
14
votes
1answer
248 views

Does tex know its own command line arguments?

Is it possible to test within the document what commandline arguments were passed to tex? The particular case that prompts this is the question Tabs in output file written by xelatex and pdflatex are ...
12
votes
3answers
4k views

[minimal] option for CV

I've been thinking of implementing an option for my CV where it extracts a set of predefined sections (in a minimal form) and typesets that instead of the entire list of everything I've done in my ...
11
votes
3answers
517 views

Difference between - and -​- in compiling options

In running MiKTeX What is the difference between -shell=escape and --shell-escape What is the difference between -synctex=1, --synctex=1, and --synctex=-1
11
votes
2answers
3k views

Question on the syntax of the options of pdflatex, latex, etc.: difference between -shell-escape and --shell-escape?

What is the difference between pdflatex -shell-escape myFile.tex and pdflatex --shell-escape myFile.tex ?
10
votes
4answers
3k views

\newcommand with options

My question is about declaring a "newcommand" with an option. I have defined \newcommand{\bforall}[2]{\forall #1\, (#2)} so that $\bforall{x}{x \in A}$ writes $\forall x (x \in A)$. I would like ...
10
votes
1answer
2k views

Conditional compilation of documents using command line options for pdflatex

Is it possible to compile two different pdf outputs from the same .tex file? For example, let's say I have a document main.tex which contains questions for students, and answers only for teachers, ...
10
votes
2answers
5k views

ProcessOptions and ProcessKeyvalOptions

\ProcessOptions and \ProcessKeyvalOptions Which comes first? Does it matter? \ProcessOptions\relax or \ProcessOptions* What's the difference? Apparently for keyval there is only the starred version....
10
votes
2answers
2k views

Pass keyval string option to babel

How to pass a keyval string option given to my package to babel? I load my package with \usepackage[languages={ngerman,english}]{mylang} In package mylang I want to handle this optional languages ...
10
votes
3answers
4k views

Texify and `--output-directory`

I'd like to tell texify to place compiled output (i.e., .pdf in my case) in the parent directory (I'm using MikTeX 2.8 on Vista32). I run the following: texify --pdf --clean --tex-option=--output-...
9
votes
2answers
1k views

How do I detect the options passed to the documentclass from my own style?

In the listings package, they note that "a global \documentclass-option draft is recognized, so you don’t need to repeat it as a package option" I tried looking into its source to see how it ...
9
votes
1answer
306 views

Declare option other than documentclass

I I have a usrdefn.tex file in which I defined some commends/environments used a lot, also there are two version of theorem environments based on the language (english/chinese). Then I want to pass an ...
7
votes
3answers
361 views

How does one define synonymous options in style/class files?

I want to be able to pass two options to a package (actually, a class) and have them be the same. What's the best way to do this? That is, I want: \documentclass[norsk]{myclass} and \...
6
votes
2answers
5k views

Line break (continuation) for commands (options, arguments)

How to do proper line breaking (continuation) for commands, i.e. their options and/or their arguments? For example, in order to transform this: \usepackage[top=1.0cm, bottom=1.0cm, left=1.0cm, right=...
6
votes
1answer
2k views

Styling an “article” document

I'm writing a document using the class article. There are some things I'd like to change, for example: Always center \section and \subsection titles without doing it manually each time using \begin{...
6
votes
1answer
331 views

Remember an class option with newcommand and CurrentOption

I'm trying to make a class but it needs to remember its arguments I'm using the file \documentclass[x]{test} \begin{document} \end{document} With the class \NeedsTeXFormat{LaTeX2e} \ProvidesClass{...
6
votes
1answer
308 views

Unused global option(s): [language=english]

This is a follow up question to Options in custom class. It seems that I still did not understand how global options work. Consider the following code: \RequirePackage{filecontents} \begin{...
6
votes
1answer
498 views

Option seemingly ignored

I'm trying to give my custom class file two options for font size, 11pt and 12pt. I want 12pt to be the default. I create the options like this: \DeclareOption{11pt}{ \PassOptionsToClass{11pt}{...
6
votes
1answer
442 views

How can one undefine an already processed class option?

I'm using a class classX that accepts class option optionX. Thus, I can write: \documentclass[optionX]{classX} ... Now, as I understand it, being a class option, after classX processes this option, ...
6
votes
1answer
78 views

Allow for leading space in use of pgfkeys

pgfkeys seems to have no problem with leading spaces. For instance, adapting the solution from How to create a command with key values?, I can define a key text= as follows: \pgfkeys{ % <-- NOTE: ...
5
votes
1answer
4k views

Beamer option definition

Hi I'm building from scratch a new beamer theme. I would like to define an option in the theme where I can define the conference name which can be used afterwards for the footline. Up to now I've done ...
5
votes
1answer
187 views

Handle class options in the order they're given

How can I pass options of my package in a specific order to another loaded package? \ProvidesPackage{L10n} \DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{babel}} \DeclareOption{ngerman}...
5
votes
2answers
1k views

How to hide grid labels without redefining the grid style?

I want to hide the grid labels without redefining the grid style, is it possible? Note: Redefining the grid style only for hiding the grid labels seems to be an overkill solution. \documentclass[...
5
votes
1answer
2k views

I get an error when using `\ExecuteOptions` together with `\usepackage{geometry}`

I'm writing a custom document class. It's kinda simple, but it will use the geometry package to set page size, orientation and margins. However... Whenever I use that package, the \ExecuteOptions ...
4
votes
1answer
652 views

How to set options for specific packages in LyX? Or, what does \geometry{} mean?

There have been a few questions here on how to pass options to packages in LyX, especially those loaded automagically. Lyx: How to add option to package automatically load Can I change options of ...
4
votes
2answers
3k views

The text in pdf is not smooth [duplicate]

I am using TeXstudio to edit Latex and create pdf files. The text is not smooth in the pdf files created by TeXstudio in my computer. When I zoom in, it will be But if I use my friend's computer to ...
4
votes
1answer
284 views

How to unset option to Verbatim environment

I am using the fancyvrb package to be able to have formatting (e.g., bold, color, etc.) in my verbatim environments. This is easy enough to do by giving the commandchars option as seen in this MWE: ...
4
votes
1answer
168 views

Changing biblatex's sorting within the document

I am using multiple refsections in my document and I need to sort the respective bibliographies differently. E.g., let's say I want one refsection to be as \usepackage[backend=biber,bibencoding=utf8,...
3
votes
3answers
3k views

ifpackageloaded question

why when i comment \usepackage{geometry} i get error? \documentclass{book} \usepackage{geometry} \makeatletter \@ifpackageloaded{geometry} { % i the package was ...
3
votes
2answers
267 views

Multiple Environment Options

How does the tikzpicture environment support multiple options, e.g. \begin{tikzpicture}[red, thick] ... \end{tikzpicture}? According to some LaTeX documentation, multiple options are not permissible ...
3
votes
1answer
434 views

Compiling thesis returns non-specific “Unused Global Option(s)” Error

I'm compiling my thesis, and the same error is constantly returned: It's frustrating as in all the other forum posts I have found, the error has referred to a specific thing (such as: Unused global ...
3
votes
1answer
245 views

How do I prevent the beamer class from removing my global options

I'm currently writing a latex package (or actually a beamer theme, but apparently that makes no difference) and I want to be able to specify a few things using key-value pairs in the global options. ...
3
votes
1answer
619 views

Label in \frame options, disable allowframebreaks in beamer

The \includeonlyframe{...} does not work, when allowframebreaks is used together with label in \frame options. When removing label, it works fine. See MWE: \documentclass{beamer} \includeonlyframes{...
3
votes
1answer
807 views

Use fleqn with acm_proc?

I would like to use the fleqn option to amsmath package. However, my document class gets in the way: Writing \documentclass[fleqn]{acm_proc_article-sp} I am warned that the global option is ...
3
votes
0answers
405 views

feynmp-auto and --output-directory=build not possible?

I really like the automisation by feynmp-auto, but I also want to keep my working directory clean, especially in git repos. So I always use --output-directory=build when compiling documents. However ...
2
votes
3answers
144 views

Multiple options for Pseudonyms

I'm looking for something fairly similar to this problem, of defining macros to print pseudonyms for people, but I'm not sure how to modify it (or if it is actually the right approach for what I'm ...
2
votes
2answers
65 views

Inserting macros mixed with static options

I've been trying on and off for a few days to wrap my head around the following. I want to insert options defined in a macro alongside options statically defined into the option list of another macro. ...
2
votes
2answers
370 views

Can I configure bibtex.exe to insert the command \interlinepenalty=10000 in the .bbl file?

The following question-answers show a method of avoiding page-breaks in between references: How can I prevent page break between lines of a paragraph or bibliography entry? https://tex.stackexchange....
2
votes
3answers
58 views

Custom command with addressable arguments

I know about \newcommand[<arg_num>]{#1 ... #n} to define a simple macro with up to nine arguments. (More if you link multiple newcommands together) I recently started to look at xparse for ...
2
votes
1answer
397 views

Compile with option

On an exact example. Here is the CV template: https://github.com/afriggeri/cv. It says that: there is an print option which renders in black and white And in .cls file there is indeed \...
2
votes
1answer
207 views

Declare bibliography option ending on biblatex

Greetings from the Swiss Alps, I would like to submit the following problem: My intention is to create a new bibliography option which I can toggle at wish while loading the package biblatex-swiss-...
2
votes
1answer
33 views

The option header=false does not work to consider first row containing symbolic name in data text file with pgfplots

I want to do something simple. I have the following data in a text file called example.txt: a 1.254 b 0.995 c 2.782 d 5.722 I want to plot all the data with a, b, c and on X axis but pgfplots ...
2
votes
1answer
24 views

Problem with stored values, macro options, and interaction with other package

Apologies for the rather general title, while trying to sort out a very specific problem: I'm trying to enhance the framework that Alan Munn provided here to represent naturally occurring discourse (...
2
votes
1answer
55 views

Incompatibility between kvoptions and babel

I'm using kvoptions in my document class and it's worked nicely so far, but after a major rewrite I started getting strange errors that I was able to trace back to the babel package. MWE: %% myclass....
2
votes
1answer
168 views

csvsimple - import only certain columns

\begin{figure} \csvautobooktabular[]{csvs/some-ttests.csv} \end{figure} This produces way too large a table (cut off on the left side), so I want to split it up into multiple tabulars, one for ...
2
votes
1answer
596 views

TikZ option for command or environment

I am learning TikZ. I am wondering where I can find information about options of command or environment. For example, for \draw, you can use \draw[step=0.5], but it also has \draw[xstep=0.5,ystep=0....
2
votes
0answers
53 views

Can pgfkeys be used to create nested key hierarchies

I currently have the following following setup (but with many more keys), which works, but isn't as clean as I'd like it. \pgfkeys { /title/.is family, /title, first/.estore in = \title@first,...
2
votes
1answer
560 views

gnuplottex not recognizing options

I want to use gnuplottex to draw graphs in a LaTeX document. The problem is, gnuplottex doesn't accept any options. A mwe would be like \documentclass[a4paper,11pt,titlepage,twoside,openright,toc=...