Questions tagged [class-options]

Concerning options that can be passed to document classes.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

pgfopts .unknown does not handle key-value pairs?

I would like my custom class to forward unknown keys to the base class, or in this case, a package. The following works (to make the example smaller, this forwards only one key; expanding it to a ...
0
votes
0answers
24 views

Can a document class be installed locally inside a file?

I have 2 documents each in a different document class. Can I somehow add one file to the other preserving the formatting? Is there a way to locally install inside one of the documents the .cls and ...
1
vote
0answers
28 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
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
1answer
29 views

How to generate an outline for a document?

I am writing a debate case class in latex and I have environments set up so the user can easily declare a contention and subpoint. For example, if the user had: Contention 1: My solution is better ...
2
votes
1answer
36 views

Default font sizes do not work with new paper size option

I wonder why the default font sizes won't work in the following modified class file. \RequirePackage{filecontents} \begin{filecontents}{example.cls} \ProvidesClass{example} \NeedsTeXFormat{LaTeX2e}[...
0
votes
0answers
25 views

How to pass options from beamertheme to beamer class?

How to pass options from custom beamertheme to beamer class (and already loaded packages)? slides.tex: \documentclass[ %xcolor=table, % this option should be set in the theme! 17pt, % you can ...
0
votes
2answers
74 views

How scale a mathrel to match current context's font size?

Revised question: I'm using TikZ to re-design \rightarrow for the Lucida Bright fonts, to better match tikzcd arrows. How do I scale that mathrel for script- and scriptscript-styles (as well as have ...
1
vote
1answer
53 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 ...
3
votes
1answer
25 views

Specifying font size with LoadClassWithOptions causes error

When I specify font size with LoadClassWithOptions, the main document gives error: File `.cls' not found. The custom class file is in the same folder as the main file. What I am doing wrong? ...
0
votes
1answer
133 views

Editing res.cls to increase the left column width

I'm a beginner to Tex. I was using an Overleaf template to create a CV. [Link: https://www.overleaf.com/project/5cdbf1b52aab4345446ebf8c ]. I want to know how I can increase the left column width so ...
0
votes
2answers
33 views

What class file should I be looking for, for 2 column preprint physics style?

I need something that gives me the following functionality: 2 column journal style natbib or other automatic parsing of .bib file with hyperlinks numbered bibliography items and citations, i.e. ...
2
votes
1answer
55 views

Differences between \documentclass[spanish]{article} and \usepackage[spanish]{babel}

This is my second post in latex-SE. Here is a very (I think) basic question, but I could'nt find a precise answer yet: What exactly does the command \documentclass[spanish]{article} and what sets it ...
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
33 views

Problem with passsing options through customized class interface \myclsset using pgfkeys

My intention is to create a class with a interface setup command \myclsset \documentclass{myclass} \myclsset{key1=val1, key2=val2, ..} % key-value list \begin{document} ... \end{document} where \...
2
votes
1answer
51 views

String parameter passed to a class vanish the spaces between words

I created a class in which I'd like to pass some parameters in \documentclass[parameters]{}. The parameters I need to pass are pdftitle and pdfsubject to the hyperref package. I succeeded in doing so, ...
0
votes
0answers
83 views

l3keys2e: best practices to pass options from class to package

I moved part of the code in a class to a new package. This package can handle a couple of options defined using l3keys and processed with l3keys2e (one option being multichoice). My problem is that I ...
1
vote
1answer
61 views

KOMAscript gives error when using parenthesis within options

Coming up from my previous question How to use equal sign inside class option with pgfopts I switched the base class from article to scrartcl and ran into a compile error. l.451 \...
3
votes
3answers
86 views

When amsart is used as a base class of another class, the “fleqn” option is ignored

I tried creating my own class based on amsart, like this one: % file: myamsart.cls \ProvidesClass{myamsart} \LoadClass[fleqn]{amsart} However, the option fleqn has no effect: % file: test.tex %\...
1
vote
1answer
218 views

How to create a LaTeX class with default parameters?

I've learnt how to use LaTeX at the user level, but wanted to package the recurring code (resulting mostly from the styling of the cover) in a class file. Therefore, I tried the following simple ...
1
vote
0answers
263 views

Class Springer-SVJour Error: No valid journal specified in option list [closed]

I am trying to submit an article to the EPJ plus but I got the following error: LaTeX Warning: File `leer.eps' already exists on the system. Not generating it from this source. (c:/TeXLive/texmf-...
3
votes
0answers
61 views

Passing options from parent to child classes

This question is related to a previous one: assume I am defining a new class dependend on an existing one with the following code: \ProvidesClass{foo} %\PassOptionsToClass{11pt}{article} \...
3
votes
1answer
387 views

Pass an option from a class to another

I try to pass the handout option from my class to beamerclass. This method works. I tried with \PassOptionsToClass but it is not clear for me. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{beamer-nk}[2017/...
0
votes
0answers
606 views

What is the source of Class revtex4-1 Warning when compiling a tex file in overleaf?

When working on my paper on overleaf, I notice that the compilation runs with no error and produces the final version of the paper but there is an annoying warning which I don't seem to know its cause ...
2
votes
1answer
378 views

Options in custom class [duplicate]

Consider the following class: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{sampleclass} \LoadClass[ paper=a5, chapterprefix=true ]{scrbook} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrbook}} \...
1
vote
0answers
112 views

Pass a list of package-options to a self-written documentclass using l3keys2e

I am writing a documentclass which loads several packages as default. I want to give the user the possibility to pass options to these packages using an documentclass option. Because most packages ...
7
votes
2answers
106 views

How can I recover option values with the current l3keys2e?

Minimal-Compiling-But-Not-Working Example: \begin{filecontents}{\jobname.cls} \ProvidesClass{\jobname} \RequirePackage{l3keys2e} \ExplSyntaxOn \keys_define:nn { job / doc } { doc~name .tl_set:N =...
1
vote
1answer
37 views

How to change a text on Latex class outside of Class?

I use a Latex class for my thesis which contain the following code (XeLATEX compiler): thesis.Cls \ProvidesClass{thesis} \LoadClass{article} \RequirePackage{etoolbox} \newif\if@bscthesis \@...
11
votes
1answer
533 views

\PassOptionsToClass does not work

I am trying to create my own class, inheriting from extarticle. I want to still be able to use the options of this class, so I found a way to do it in most of the docs I read : \DeclareOption*{\...
3
votes
1answer
156 views

Change “twocolumn” option to obtain right to left columns

When using twocolumn option writing on paper start from left side then the right side, my wish is change twocolumn option to start writing on paper from right side \documentclass[twocolumn]{...
1
vote
1answer
564 views

How do I find the meaning of latex documentclass options?

I saw someone using the [final] option for the beamer documentclass and wanted to see what it did. So I searched the package documentation here on CTAN and also found the directory on my computer that ...
1
vote
2answers
196 views

Can I know the class options in a document (or user-defined package)?

Edit (again). It appears that I'm not very clear. I'm looking for a technique to access the options passed to the class. The MWE below is just an example, 12pt is an example. If there is no ...
1
vote
0answers
94 views

How to choose the right options/key-value package? [closed]

I want to spruce up my department's thesis document class with better / less idiosyncratic class options support. So, I've noticed this community wiki question: A big list of every keyval package ......
0
votes
0answers
317 views

Changing a boolean in a class file from the main latex file

I'm trying to change a boolean value located in a class file (.cls) from the main latex document (.tex). I've tried to set the boolean in the main latex file using \setboolean{showwatermark}{true/...
0
votes
1answer
305 views

Can't specify paper size when loading scrartcl in custom class [duplicate]

By default, my system produces A4 documents. If I want to set the paper size to US Letter, I can pass the letterpaper option to scrartcl: \documentclass[letterpaper]{scrartcl} \begin{document} Hello, ...
1
vote
1answer
172 views

Own commands not accessible in fancypagestyle environment for plain pages with fancyhdr

I'm experiencing a weird bug. If I understand correctly, LaTeX plain pages principle consists in pages following a document mark triggered by maintitle or a chapter/section mention. Each time a main ...
1
vote
1answer
61 views

What is paxcommands?

I've been writing my own class and all the tutorials I've found use the following command to handle font options: \DeclareOption{sansserif}{ \PassOptionsToPackage{\CurrentOption}{paxcommands} } ...
1
vote
1answer
43 views

Can't set a toggle based on class option value

I'm trying to toggle linenumbers when the class option man is passed. So far I've tried the recommended answer from this answer but it doesn't work. LaTeX complains with an Undefined Control Sequence ...
1
vote
1answer
357 views

achemso invalid values for manuscript option

I am using the manuscript option achemso package, as described here (page 3). I would like to use it in the following manner: \documentclass[journal=jprobs,manuscript=note,layout=twocolumn,email=true]...
8
votes
1answer
293 views

Pass RGB colours to custom class

I'm trying to pass a RGB colour code as an option to my custom-class.cls, so I can change the colour of a header bar and the colour of my titles in the main-doc.tex. The default option does work, but ...
8
votes
3answers
549 views

Conditionals in LaTeX: try/catch and “not \equal”

I have a problem with some variable checking: I offer the user an option in the interface of a document class. If the option is not provided my code fails. Hence I would like to check if the option ...
2
votes
1answer
216 views

How to override the default options specified in user defined classes?

My scenario is to let the user override the default options specified in myclass.cls. Minimal Working Example \RequirePackage{filecontents} \begin{filecontents*}{myclass.cls} \ProvidesClass{...
3
votes
0answers
121 views

Options to \documentclass not being passed to packages

Page 17 in the The LaTeX Companion suggests all options to \documentclass are passed to packages as class options. However, when I include margin=1in in the documentclass option in an attempt to pass ...
2
votes
1answer
324 views

Reformatting TexMemo into Spanish

So I dowloaded a memo template from ShareLatex, the TexMemo. Essentially, I want to reformat the entire template into Spanish. Additionally, I want the fields at the top to be written in spanish. For ...
1
vote
0answers
106 views

scrartcl @a1paper with 20pt

want to mirrow a power-point-poster to tex by an own class. First my plan is, to write a working preamble and convert it to a class. My first step: Chose the right font-size. For Din-A1 20pt seems to ...
3
votes
1answer
124 views

How to unset options like setting options with DeclareOption, a kind of UndeclareOption

I created a class which adapts the exam class to the needs of my school and added some stuff to control the class from the outside by a script to be able to create an individual exam for each student ...
2
votes
1answer
379 views

How to pass option conditionally to memoir class?

I would like to pass option conditionally to memoir from my custom class for this I try to do a MWE myClass.cls \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myClass} \newif\ifthesis@foo \DeclareOption{...
1
vote
1answer
479 views

Change enumerate option within newenvironment

I've been trying to create a new environment to have a sort of recipe or list of steps, like Process 1 Step 1 - Do this; Setp 2 - Do that; I'd like it to accept \label command since I'll have to ...
3
votes
1answer
198 views

Why does biblatex not process global options

For some reason biblatex doesn't seem to be reading global options. The following tex file produces a single citation, but not in the authoryear style. If I uncomment the PassOptionsToPackage line, it ...