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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
71 views

Unknown option leads to error with babel and geometry

Consider the following example: \documentclass[logo height = 2\baselineskip]{article} \usepackage[french]{babel} \usepackage{geometry} \begin{document} Text in case of empty. \end{document} I am ...
Jinwen's user avatar
  • 7,818
0 votes
2 answers
56 views

Expand macro in options list for environment

I am trying to define some options for an environment using a macro. \usepackage{tabularray} .... % previous parameter definition, does not scale \def\cellax{1} \def\cellay{2} \def\cellaw{4} \def\...
stimulate's user avatar
  • 107
3 votes
2 answers
163 views

Horizontal rules or not horizontal rules in NiceTabular [closed]

I am making a simple table with NiceTabular, one of its columns must occupy 6 rows, specifically of the second column. The problem is with the rules (is it possible?), and depend of options using the ...
Darío's user avatar
  • 91
1 vote
0 answers
33 views

newtcolorbox option drop lifted showed not working completely

I created three environments using the package tcolorbox. The option drop lifted shadow appears eratically in spite of several compilations under some boxes and not under other ones, without any hint ...
Cedric's user avatar
  • 63
1 vote
1 answer
75 views

Chronosys box outline shows unwanted line

I'm making a timeline using chronosys package. It worked well but when I choose the box=true option in the \startchronology, a line popped just before the arrow and I can't make it disappear. Here is ...
BlueMarker's user avatar
1 vote
0 answers
45 views

DocumentClass option not running

Sorry in advance for maybe noonish question. I have the following template files provided by my University. In the document class, there should be an option oneref that allows for all of the ...
Doe's user avatar
  • 11
1 vote
1 answer
92 views

Why can't Hebrew be passed as an option to the babel package when the document class is beamer (beamer-rl)?

A couple weeks ago I asked whether it was possible to specify Hebrew as an option to the babel package, rather than specifying it with the \babelprovide command. A comment from Javier Bezos indicated ...
Evan Aad's user avatar
  • 10.8k
0 votes
0 answers
26 views

How can labels' option lists be suppressed in the the output of `showlabels`?

When the showlabels package is loaded, is it possible to suppress the printing of labels' option lists? Consider, for example, the following LaTeX code, saved in ~/Test.tex. \documentclass{article} \...
Evan Aad's user avatar
  • 10.8k
2 votes
1 answer
48 views

Raise Package/ Class error for incompatible options

When I am writing a package or class, I sometimes have some options that are incompatible with each other. What I want is to raise an error if two such options are imported at the same time. I tried \@...
Vebjorn's user avatar
  • 1,758
0 votes
1 answer
41 views

Package/ class option for swapping text and image in header

I have a written a .cls file which has a command \makecvheader that makes a header that looks something like this: I have written some class options, and would like to add another one: an option to ...
Vebjorn's user avatar
  • 1,758
0 votes
1 answer
69 views

Activate/ Execute all options in a custom package

I want an option in a package I'm writing to activate all other options. What I want is something like \usepackage[all]{mypackage} which will activate all options in mypackage (including options added ...
Vebjorn's user avatar
  • 1,758
2 votes
1 answer
225 views

Pass compile flags to pdflatex

In C I can do this: gcc -DOPTION file.c --- #ifdef OPTION ...code... #endif Is there a similar mechanism in LaTeX? I am trying to write a manual for a product with lots of options. I'd like to ...
Stewart's user avatar
  • 679
1 vote
1 answer
215 views

Parsing additional command-line arguments in luatex

I am trying to parse extra arguments given to lualatex in command line — e.g lualatex --jobname=out in.tex myarg. Though I could not find it in the docs, I discovered from this answer that I can use ...
Atai Ambus's user avatar
1 vote
1 answer
52 views

How to use two styles for the same listings language?

At the moment I have two global options defined for my listings language: color and monochrome (I have bundled the language as a package and so these are package options). However, now I find that I ...
IIM's user avatar
  • 289
1 vote
1 answer
32 views

Using style packages expkv-def.sty and expkv-opt.sty

I have expkv-def.sty and expkv-opt.sty stored in directory expkv. How can I use the two packages from another sty file. Currently I have the following ephram.sty \ProvidesPackage{ephram}[2022/04/...
Veak's user avatar
  • 643
1 vote
0 answers
79 views

I'm working with MiKTeX, TeXstudio and writing letters with KOMA-Script and get the following warning "Unused global option(s): [dieter]."

My dieter.lco file includes besides personal information the following lines \ProvidesFile{dieter.lco}[2022/01/08 scrlttr2 options] \RequirePackage{ngerman} \RequirePackage{fix-cm} \...
dkraft's user avatar
  • 11
0 votes
1 answer
63 views

Where in a .dtx file does \DefineOptions go and what are the rules?

Given the source of demopkg.dtx: % \iffalse meta-comment % !TEX program = pdfLaTeX %<*internal> \iffalse %</internal> %<*readme> -------------------------...
hsmyers's user avatar
  • 1,493
3 votes
1 answer
217 views

`babel` - Getting the language loaded?

How can I get the value of the language used by babel? I know that I can use \@ifpackagewith{babel}{french}{<true>}{<false>} but this command makes my code very ugly with several nested ...
projetmbc's user avatar
  • 13.4k
0 votes
0 answers
30 views

How to know if certain parameter is passed to a (standard) class

I'd like to type some text in english or other language depending on an option passed to \documentclass. The idea is to implement a very crude "localization" macro (called \localize, for ...
Orestes Mas's user avatar
0 votes
0 answers
127 views

What's the difference between !h and h! in float positions [duplicate]

I know that "h" puts the figure at the place where it occurs in the code and "!" overwrites latex's internal parameters. But I don't understand why the order makes a difference. ...
Johanna's user avatar
4 votes
1 answer
70 views

Executing only specific options

I'm pretty new to advanced LaTeX coding and therefore may not have a perfectly specific question. I hope you can help me anyway: I want to maintain different preambles at once. They can be seen as ...
Titanlord's user avatar
  • 521
1 vote
1 answer
129 views

scrlttr2: lco file read only if babel is not used ; DeclareOption*; actually: handling of options and babel

I have my own letterclass using scrlttr2: %mwe.cls \NeedsTeXFormat{LaTeX2e} \ProvidesClass{mwe}[2010/11/19 mwe.cls] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrlttr2}} \ProcessOptions\...
Sven's user avatar
  • 67
0 votes
0 answers
72 views

DocumentClass options - ex

I have a LaTeX file with the following line: \documentclass[1.5ex]{report} Can I confirm that the options set is to set the x height of the main body font to 1.5mm? (as an aside does anyone know what ...
Colin747's user avatar
  • 709
1 vote
2 answers
93 views

LaTeX compiller and editor interaction

When pdflatex finds an error it stops and asks for a user reply. If I press "e" the editor should open the file at the place of the error. However, I use a different (nonstandard for LaTeX) ...
ivan's user avatar
  • 11
1 vote
1 answer
53 views

Automate the option setting for an itemize inside an environment

I was asking myself if there is a way to automate the option setting inside one of a document's environment? For instance, I have an itemize block inside a tcolorbox environment, inside it I set my ...
Guilian Deflandre's user avatar
2 votes
0 answers
89 views

Pencil effect in TikZ [duplicate]

We assume that to have drawn a vector.... \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} \tikz\draw[->,line width=1pt] (0,0) -- (1,1); \end{document} Is there a pencil ...
Sebastiano's user avatar
  • 52.6k
0 votes
0 answers
221 views

Start on the other side

I am searching for a way to start typing on the other side of the page because I want to give a value to some options like: Option A \somecommand 1 point Option B \somecommand 2 point Option C \...
Michiel's user avatar
  • 13
1 vote
1 answer
1k views

general options for graphix overriding every includegraphics settings

I have multimarkdown text compiled from an external source and which is including its own settings for each figure compiled. I would like to have a general settings at the beginning of the document ...
compmonks's user avatar
  • 113
1 vote
1 answer
92 views

Macro for drawing a right triangle with options for lengths automatically

I am hoping to write a macro so that in the options, I can change the horizontal length and the vertical length to produce an image automatically. I only use the \hordisplay because some of the ...
E.Yu's user avatar
  • 337
0 votes
1 answer
43 views

If a style uses requires a package with options, are these options enforced in the document that uses it?

I am writing a style and I used a package with one option set, as in: \RequirePackage[fit]{truncate} However, I am curious if this option is now enforced everywhere in the document and if there is ...
Xexeo's user avatar
  • 287
0 votes
0 answers
52 views

Is it possible to specify options for preventing incomplete words in Rmarkdown? [duplicate]

I'm working with Rmarkdown and my output is a pdf document. When reading the text, I noticed that so many words are printed incomplete such as "ar- rojan" and "progra- mación" (which should be "...
Alejandro Carrera's user avatar
0 votes
1 answer
109 views

Option not declared?

I've managed to confuse myself into not being able to code up options for a style file that I want to use. Here's the MWE. Main Latex File \documentclass{article} \usepackage[author]{style-for-...
Bernhard's user avatar
  • 1,184
3 votes
1 answer
242 views

How to hide a global option from babel [duplicate]

I am using a non-public class that has an option named english for setting up certain texts. I wish to use babel for hyphenation and to specify the language (variant) as british. However, \...
Andrew Swann's user avatar
  • 94.8k
1 vote
0 answers
73 views

Class wrapper: Why "unused global option(s)" warning

I am trying to write a wrapper around some documentclasses as a small test. Everything works so far, but why do I get an LaTeX Warning: Unused global option(s): [math=true,tikz=true,base=normal,type=...
raedma's user avatar
  • 1,754
0 votes
0 answers
337 views

Language options: what is the use of "main=french" in the \documentclass command?

If using the option english,french with babel and french in the \documentclass command, the following warning results. Package babel Warning: Last declared language option is "french", but the ...
LPH's user avatar
  • 246
4 votes
1 answer
107 views

Can I use different font sizes in the title of my document?

I am using a poster template I found here to base my poster on. I want to use small caps in my title, but the font used, cmbright, does not support this. So I thought I could fake it by doing ...
rdv's user avatar
  • 297
1 vote
2 answers
11k views

Package keyval Error: letter undefined

I have no idea what's causing this, I have about 1800 lines of code, and no idea where the problem is. Could someone explain what the keyval package is, and what this error could possibly mean?
Adam 's user avatar
  • 49
1 vote
1 answer
96 views

Conditionally set bibliography title

I am writing a class and would like to offer the option of changing the bibliography title as a class option. If no title was given I would like to just use the default one. Unfortunately I can't seem ...
makkototo's user avatar
2 votes
3 answers
208 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 ...
jan's user avatar
  • 2,216
3 votes
1 answer
44 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 (...
jan's user avatar
  • 2,216
0 votes
2 answers
140 views

How to detect whether the option citecounter was enabled on biblatex?

I think this is the definition of the citecounter option on the biblatex package: \DeclareBibliographyOption[boolean]{citecounter}[true]{% \ifcsdef{blx@opt@citecounter@#1} {\csuse{blx@opt@...
user's user avatar
  • 4,655
1 vote
1 answer
131 views

How to detect whether \PassOptionsToPackage was already called?

If I call: \PassOptionsToPackage{backend=biber,style=numeric,backref=false}{biblatex} % And later someone else call again \PassOptionsToPackage{style=abnt,backend=biber}{biblatex} What will happen? ...
user's user avatar
  • 4,655
0 votes
0 answers
66 views

Commands vs keys/values for setting up a document: what an own document class should provide?

This question somehow extends the question "Package option vs setup command". I'm currently writing a class dedicated to students reports for both academic projects and internships. This class ...
Denis Bitouzé's user avatar
1 vote
1 answer
549 views

Lyx: Choose option from .cls file

I would like to use the sigconf style from acmart.cls. I have already downloaded the acmart.cls file into the latex folder, run texhash and copied a minimal .layout file: #% Do not delete the line ...
Radio Controlled's user avatar
2 votes
1 answer
159 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....
vbwx's user avatar
  • 227
2 votes
1 answer
215 views

Query beamer document class option aspectratio in a .sty file [duplicate]

I am writing my own latex beamer style. I want to use different background graphics depending on the aspect ratio chosen in the documentclass in the main file, like \documentclass[12pt, aspectratio=...
Philippp's user avatar
  • 277
1 vote
1 answer
89 views

help: looking for a generic (and elegant) array (variable) map syntax to keep stuff

My apologies if this has been discussed elsewhere, but if it was I couldn't find it. I am the author of a template for academic thesis for my university, but I'm definitely not a TeX expert. In this ...
João Lourenço's user avatar
2 votes
1 answer
242 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 ...
Willi's user avatar
  • 439
1 vote
1 answer
600 views

xwatermark causing issues with \includegraphics options

I'm currently having issues using xwatermark and the clip and trim={} options of \includegraphics for graphics that are completely unrelated to the watermark produced by xwatermark. Here's a MWE that ...
jgriggs's user avatar
  • 13
-1 votes
1 answer
291 views

More Formats & Options in LyX

In the “File > Export in” there is a paragraph More Formats & Opnions. Show me please how to enter the option. There, where “Send exported file to command” for example, you can enter? Where in the ...
D. Suhachev's user avatar