Questions tagged [package-options]

These reference options specified to the package at loading time. For optional arguments to macros or environments, use {optional-arguments} instead.

Filter by
Sorted by
Tagged with
2
votes
0answers
64 views

A valid alternative(s) to siunitx package [duplicate]

Although this question is very simple in the substance, I would like to ask it anyway. Visibly if I use the comma within the mathematical environment you can see a small space that I have underlined ...
0
votes
1answer
33 views

Custom Package Parameters

I am writing a custom, package using Texmaker with Pdftex. I have a function, which I would like to change a certain delimiter to whatever the user wishes if my provided delimiters are not good, or ...
0
votes
1answer
52 views

Two questions about compiling order of packages codes

I have a question about compiling order of packages. For example consider a package (for instance tocloft) and I have the following document: \documentclass{book} \usepackage{tocloft} \setlength{\...
1
vote
3answers
55 views

How to execute default option when using pgfopts?

I would like to define options for a package using pgfopts. So far it works quite well, but I can't figure out how to execute default options. This is described here: How do you define a default ...
1
vote
1answer
46 views

Custom package error ! Missing = inserted for \ifnum

I am trying to create a very basic package for use with a font called HEJI2 (which provides some music symbols to use in-line). My code looks like this: \ProvidesPackage{heji}[2019/12/9 v1.0] \...
0
votes
0answers
125 views

The requested package is unknown

I used these packages: \documentclass{beamer} \usepackage{mathtext} \usepackage{amssymb,amsmath} \usepackage[T1,T2A]{fontenc} \usepackage{sidecap} \usepackage[cp1251]{inputenc} \usepackage[bulgarian,...
0
votes
0answers
35 views

Allow kvoptions with spaces in String

I try to write my own package + class. The package is supposed to offer some option like so: options -> class -> package -> custom command For this I use the kvoptions-package, and my files ...
0
votes
0answers
17 views

Problems loading circuitikz [duplicate]

Since ALWAYS i used to load the circuitikz package with: \usepackage[siunitx]{circuitikz} I formated my PC and reinstalled THE SAME MikTeX, GhostScript, GSview and TeXMaker versions, but when i try ...
0
votes
1answer
66 views

Creating language package options

This is essentially the same question: Write a class with language dependent strings. But I didn't find any solutions that worked. I'm trying to create a package where languages are package options, ...
2
votes
1answer
26 views

Why does the `date=terse` option to biblatex cause an extra space after the year in bibliography entries?

Compiling my MWE with the date=terse option to biblatex causes an extra space between the last digit in the year and the closing parenthesis. Commenting this option removes the extra space. How do I ...
0
votes
1answer
53 views

Passing options to hyperref via Beamer from Pandoc

If I were writing LaTeX code directly, I could pass options to hyperref via beamer: \usepackage[dvipsnames,hyperref={colorlinks=true,linkcolor=black,urlcolor=blue}]{beamer} but I'm not using LaTeX ...
1
vote
0answers
72 views

Incomplete \ifx if randomizing on one machine, but not on the other (mcexam)

folks--- I'm a new user on the Exchange, but not as new to LaTeX, so I hope I'm able to give some context to this problem. I have two machines. I'm working on Debian 9.11 (stretch) on both machines; ...
0
votes
0answers
68 views

Isn't it wise that LaTeX package developers, make an option in all their math packages…?

Question: Isn't it wise that LaTeX package developers, make an option in all their math packages something like \usepackage[opt-cmd[user-define]]{math-package-name} such that we able to use only ...
0
votes
0answers
47 views

usepackage with arguments simplify multiple

When using multiple packages: \usepackage{A,B,C} if one wants to pass arguments to any one, they have to split it up making it verbose, is there anyway around this? e.g., \usepackage{A[a],B,C[q]} ...
2
votes
1answer
77 views

How to use a calligraphy package only for part of the document

I need to write up a calculation that requires a lowercase calligraphic b, which I got from the following package: \usepackage[cal=dutchcal]{mathalfa} However, now other calligraphic letters which I ...
4
votes
1answer
130 views

Are there any pros and cons associated with dvipsnames, svgnames, and x11names in xcolors package?

The xcolors package mentions three color options in its package documentation at http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf. They are dvipsnames, svgnames, and x11names. I ...
1
vote
1answer
43 views

How negate value of Boolean option in package using kvoptions

In the package created by the following source, how can one change the value of \optB to true if \optA is true — so that the message written to the log would become >>> optB is true ...
0
votes
2answers
92 views

Passing boolean key value from one package to another with kvoptions

The source document below first writes two packages, each using keys and kvoptions; the first package passes a boolean option to the second and calls the second. Despite the preamble line \...
9
votes
1answer
179 views

Sorting and looking at the (table of) formula directory - with glossaries

I would like my formula index to look more like my tabular index. But at the moment it still looks like this. Without clamps. Besides, it's too far out of the frame on the right (showframe=true ist ...
0
votes
0answers
48 views

Unknown options `capitalise' for package cleverref when using subfile

Solution: Spell capitalize/capitalise correctly I simply didn't spell capitalize correctly (switched the placement of the 'i'). The reason it worked in the MWE is that I spelled it correctly there. ...
2
votes
1answer
134 views

Using key option to package that uses string cases

What's wrong with the following package and source file? I get an error at line 14, after [Other], of mypackage.sty, and a "Missing \begin{document}" error resulting. The source: \documentclass{...
1
vote
1answer
43 views

Use unexpanded macro in package options

When I try to put in my package options with not yet defined macro (even if I use noexpand), the document fails to compile (even if I don't use the macro!). Any idea if it's fundamental or not? (I ...
2
votes
1answer
100 views

Different settings for figures in Tikz

I have a beamer with many figures. The problem is that now I want something that requires settings that are in contradiction with what was defined beforehand. I have : - A main file where all the ...
0
votes
2answers
45 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
45 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
1answer
102 views

`kpfonts` light option

I am a bit confused by this sentence in the kpfonts package documentation: With the light option, the print is better than display! May I understand that the light option produces a better result ...
16
votes
2answers
820 views

Why do people specify date as an option for \usepackage?

In LaTeX code written by other people, I sometimes see a date specified as an optional argument for \usepackage: \usepackage{iftex}[2013/04/04] Intuition tells me that this is some way to ensure ...
3
votes
3answers
143 views

Declaring option a4paper in \documentclass produces different margins than declaring it in \geometry

I have seen a similar question at a4paper, where should I declare it? In document class or geometry? and the selected answer there implies that there is no difference in whether we use \documentclass[...
2
votes
1answer
135 views

Switching lines in preamble causes error/NO error

I have 2 almost idenctical lines of LaTeX source. They differ only in switching order of these two lines \usepackage[fleqn]{amsmath} \usepackage{amsmath,amssymb} One causes error and the other one ...
3
votes
1answer
97 views

Using pgfopts to set up a tcolorbox style

Consider a package file eqbox.sty: % Preamble \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{eqbox}[2018/01/01 Boxed Equations] % Packages \RequirePackage{xcolor} \RequirePackage{pgfopts} \...
0
votes
0answers
55 views

Error loading modref

I have a problem with modref, v. 0.9 of 2009/02/02 (generated from the zip archive on CTAN where it is said version 1.0). I try to use the package modref with the following minimal example: \...
2
votes
1answer
60 views

Use a user-defined variable before loading package

I'm trying to make a template where I can specify a draft version, and some text will appear in the footer noting that it's a draft, with today's date. I also define a function that allows text to be ...
1
vote
1answer
649 views

Changing geometry after loading the geometry package

I've looked at some related questions and can't solve this. I have a common LaTeX file where I load the geometry package among others. This file (called pre.tex here) is a common, site wide file ...
1
vote
0answers
83 views

Packages option breakall not compatible with ctex

I am having this weird issue where the option breakall of package truncate is not compatible with package ctex. Below is the code \documentclass[UTF8]{article} \usepackage{lipsum} \usepackage[UTF8]{...
0
votes
1answer
82 views

glossaries first use style

after searching for like an hour, I still cannot find out how to do the following: \documentclass[11pt, twoside, a4paper, openright]{report} \usepackage[acronym]{glossaries} \makenoidxglossaries \...
1
vote
1answer
122 views

pdfx package - incompatibility with bookmark package when using LuaTeX engine

The pdfx package is incompatible with the bookmark package, i.e. the resulting file has no bookmarks when the bookmark package is loaded. I know that the PDF /X standard does not allow any bookmarks, ...
1
vote
3answers
511 views

How to properly use \DeclareOption within a macro

Using \ifthenelse statements I've defined a macro that prints it's value as long as it is different from the value of the previous time it was used. \RequirePackage{xifthen} \def\storedval{} % create ...
2
votes
1answer
92 views

Libertine package options with boldface and emphasis change numeric text

I've just installed and updated MacTeX and am recompiling files for the university courses I'm teaching this year. I'm experiencing a really peculiar problem with numeric information when I set ...
1
vote
1answer
119 views

Face cards do not show up on poker package (pst-poker)

My .tex looks like this: \documentclass{article} \usepackage{pst-poker} \begin{document} \crdQs \Qs \crdAs \As \end{document} Everything compiles great except for \crdQs. I am getting the ...
1
vote
0answers
139 views

Problem with table installed from Excel2Latex [closed]

I am writing a paper for my thesis and I'm having getting a reoccurring error about " LaTeX Error: Option clash for package xcolor. See the LaTeX manual or LaTeX Companion for explanation. Type H ...
0
votes
1answer
280 views

Conflicts with existing macro when using kvoptions: Undefined control sequence

I am trying to use kvoptions pacakage to allow passing key options to my style file. Here is a MWE of the style file: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{test} \newcommand{\rtitle}{TITLE} \...
4
votes
1answer
148 views

How to define a string variable with diacritics to my own package (.sty)

I try to add a variable title string to my own package 'MyStyle.sty'. 'MyStyle.sty' just contains some used packages, pdf settings and commands for a style guide / corporate identity. Document.tex \...
0
votes
0answers
133 views

Problem with natbib and class based on scrbook

I'm building a class for monographs, dissertations, and thesis from my department. I chose as a base the scrbook class that is part of koma-script. I need the natbib package numbers option to be ...
2
votes
1answer
43 views

Compiling a separate list of “Open Questions” found in the main text in order of appearance

I'm writing my math notes. A paragraph may include (or be followed as a separate paragraph) by an "Open question". This is a paragraph making some points about a topic. Open question: Why is this ...
0
votes
1answer
102 views

ModernCV class does not compile in Debian 9 (Stretch)

In my previously installed Debian Jessie everything went fine with ModernCV-files, but now in Debian Stretch I always receive the following error: \fancyfoot's 'E' option without twoside option is ...
9
votes
1answer
185 views

Package option vs setup command

Traditionally, LaTeX packages will use package options (I mean the options in \usepackage[...]{package}) for setup. However, I have noticed in some modern packages, e.g. siunitx, unicode-math, ctex, ...
0
votes
1answer
530 views

Package keyval Error: hidelinks undefined

I wish to remove color boxes around references and links in my document. According to answer to this question I tried \usepackage[hidelinks]{hyperref} in preamble, but received the following error ...
5
votes
1answer
235 views

What is the difference between \PassOptionsToPackage and inline options passing?

I have noticed that, for example, ClassicThesis config file uses this style: \PassOptionsToPackage{utf8}{inputenc} \usepackage{inputenc} instead of \usepackage[utf8]{inputenc}. What is the ...
2
votes
0answers
201 views

Setting up kvoptions with a setup command [closed]

The hyperref package (for example) provides a \hypersetup command where key-value options can be provided as an alternative to \usepackage[key=value]{hyperref}. I'm trying to do the same, using ...
6
votes
1answer
384 views

In IEEEtran, why does `fontspec` package automatically change the font type once loaded?

By default, the body text font for IEEEtran document class is like this: When I load fontspec package, the font type changes: What is the name of the new font? How can I retain the original IEEEtran ...

1 2 3 4 5