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.
120
questions
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 ...
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\...
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 ...
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 ...
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 ...
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 ...
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 ...
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}
\...
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 \@...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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}
\...
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>
-------------------------...
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 ...
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 ...
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. ...
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 ...
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\...
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 ...
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) ...
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 ...
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 ...
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 \...
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 ...
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 ...
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 ...
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 "...
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-...
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,
\...
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=...
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 ...
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 ...
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?
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 ...
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 ...
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 (...
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@...
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?
...
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 ...
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 ...
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....
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=...
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 ...
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 ...
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 ...
-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 ...