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
0answers
35 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
1answer
31 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
1answer
69 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
0answers
22 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
0answers
49 views

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

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. ...
3
votes
1answer
24 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
1answer
79 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
0answers
26 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
2answers
54 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
1answer
41 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
0answers
82 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
0answers
60 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
1answer
122 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
1answer
69 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
1answer
35 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
0answers
27 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
1answer
45 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
1answer
141 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
0answers
47 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
0answers
145 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
1answer
78 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
2answers
5k 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
1answer
72 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
3answers
197 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
1answer
40 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
2answers
107 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
1answer
87 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
0answers
64 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
1answer
379 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
1answer
145 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....
1
vote
1answer
154 views

Query beamer document class option aspectratio in a .sty file

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
1answer
76 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
1answer
135 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
1answer
469 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
1answer
226 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 ...
1
vote
0answers
314 views

How to set global options / parameters in Circuitikz?

I use Circuitikz quite often with modified sizing as styles as follows: \begin{circuitikz}[line width=0.7pt, line join=round] \draw (0,0) ... to [/tikz/circuitikz/bipoles/length=22pt, L] (1,0) \end{...
2
votes
3answers
108 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
1k views

Why do I have green vertical bars in the left margin of TeXstudio?

I've come to using TeXstudio having written most of my chapters in WinEDT. I'm now adding more writing in the document. I'm using the MacOS version of TeXstudio, coming from using WinEDT in the ...
6
votes
1answer
663 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{...
1
vote
0answers
112 views

How to make a yes/no option to control the shown text, using beamer, latex [duplicate]

I am making template for presentation slides using beamer class. I want to let the user choose if this file is confidential or not. If yes, then shown it is yes; if not, then show it is no. The ...
2
votes
0answers
98 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,...
1
vote
1answer
64 views

Disabling changes and todonotes packages: Text is still being coloured

The problem arose after the solution of : Colouring text doen't work in newcommand definition I am trying to define a new \note command based on todonotes and changes packages but I'm having ...
1
vote
1answer
46 views

New .bib-field fullauthor to be used instead of author

In an extremely long bibliography it can be quite annoying to have the same author with a somewhat different name in each entry, especially if the publications appear as a list under the name of the ...
2
votes
2answers
1k views

How(where) to change the default directory where WinEdt save new files?

How (where) to change the default directory where WinEdt save new files?
1
vote
1answer
341 views

The TikZ pipeline: A path's 'draw' option has no effect on a 'behind path' node

Still trying to figure out the TikZ pipeline (i.e. the sequence of low-level actions that a TikZ path is converted to as it is being "executed") by analysing the source code, specifically <tex ...
3
votes
1answer
695 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 ...
1
vote
1answer
771 views

How to cause TikZ's 'sharp/rounded corners' options to apply immediately?

Consider the following LaTeX manuscript (the TikZ code is copied from the first example on p. 146 of the TikZ & PGF Manual for Version 3.0.1a): \documentclass[tikz]{standalone} \begin{document} \...
1
vote
4answers
592 views

How can I auto-equalize the width of columns whose contents are similar?

Assume that we have a table and we want LaTeX to automatically determine its columns' width provided that column widths are equal. Such a problem can be solved by defining a new column type as follows:...
1
vote
1answer
91 views

Discussion on several options for the document

I have the boon and bane of the freedom on choosing between several options, sometimes just for the printed version of my generated document. As I already googled around, there are many opposed ...
4
votes
1answer
523 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: ...