Skip to main content

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
1 answer
45 views

Unused Balance Option Warnings in ACM Template

When I use \documentclass[sigconf,balance=false]{acmart}, it outputs the warning LaTeX: Unused global option(s): [balance=false]. However, if I remove the term "balance=false", it outputs ...
Han's user avatar
  • 13
1 vote
0 answers
44 views

Can I change the default settings for \begin{figure}? [duplicate]

When I type \begin{figure}, it is automatically filled to the following: \begin{figure} \centering \includegraphics{} \caption{Caption} \label{fig:enter-label} \end{figure} Is it ...
lewebrom's user avatar
0 votes
1 answer
45 views

Overleaf using Corrupted Standalone?

I have a long tex file on Overleaf that just started, out of nowhere, failing to compile. I simplified it down to a minimal working example here \documentclass{article} %%%%%%%%%%%%%%%%%% Pre-Load ...
David G.'s user avatar
  • 329
1 vote
2 answers
74 views

Macros to change pgfkeys package options on the fly and define custom sets of options

Consider the following code for a package : % Preamble \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{mypackage}[2024/01/01 MyPackage] \makeatletter % Dependencies \RequirePackage{pgfopts} \...
Vincent's user avatar
  • 5,327
4 votes
1 answer
160 views

Using \tikzset to replace options for tikzpicture without a named style

I am trying to concentrate often used options for a tikzpicture under a tikzset command in the preamble, to share among different pictures. My MWE is: \documentclass[crop,tikz]{standalone} \usepackage{...
chandra's user avatar
  • 3,104
2 votes
1 answer
99 views

Package 'siunitx' unknown option 'exponent-thresholds'

I have been trying to typeset numbers with siunitx. I'd like to use the threshold mode, as some numbers don't really require exponents. So I have been including the package like this: \usepackage[ ...
bebarty's user avatar
  • 35
0 votes
2 answers
107 views

Option to use colour names without calling xcolor package twice

I have seen that I cannot require a package twice. How can I have an option that activates the availability of colour names \RequirePackage[dvipsnames*,svgnames,x11names]{xcolor} But if the option ...
Veak's user avatar
  • 1
1 vote
0 answers
121 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
  • 8,618
0 votes
2 answers
72 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\...
simulate's user avatar
  • 107
3 votes
2 answers
220 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
  • 471
1 vote
0 answers
40 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
91 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
48 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
111 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
  • 11.1k
2 votes
1 answer
57 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,884
0 votes
1 answer
54 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,884
0 votes
1 answer
113 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,884
2 votes
1 answer
415 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
  • 703
1 vote
1 answer
351 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
69 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
  • 309
1 vote
1 answer
42 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
  • 1
1 vote
0 answers
107 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
70 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,573
3 votes
1 answer
294 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
36 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
103 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
  • 541
1 vote
1 answer
135 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
  • 77
0 votes
0 answers
95 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
  • 751
1 vote
2 answers
111 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
69 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
96 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
  • 56.7k
0 votes
0 answers
316 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
2 votes
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
  • 123
1 vote
1 answer
100 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
46 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
  • 300
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
156 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,278
3 votes
1 answer
264 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
  • 96.3k
3 votes
0 answers
159 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,794
0 votes
0 answers
396 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
128 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
2 votes
2 answers
13k 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
  • 59
1 vote
1 answer
107 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
210 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,266
3 votes
1 answer
45 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,266
0 votes
2 answers
147 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,815
1 vote
1 answer
141 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,815
0 votes
0 answers
68 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
2 votes
1 answer
595 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