Questions tagged [class-options]

Concerning options that can be passed to document classes.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
65 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
0answers
123 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 ...
1
vote
0answers
30 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=...
1
vote
0answers
27 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 ...
1
vote
0answers
116 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 ...
1
vote
0answers
109 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 ...
1
vote
0answers
86 views

Using a generic way to evaluate global document options

I am looking for a way to easily define and evaluate additional global document options. Right now I am using \documentclass[12pt,ngerman]{scrartcl} as the first line of my documents, I'd like to ...
0
votes
1answer
29 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
25 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 ...
0
votes
0answers
39 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
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 \...
0
votes
0answers
90 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 ...
0
votes
0answers
633 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 ...
0
votes
0answers
332 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
0answers
773 views

Passing language parameter to \RequirePackage through \documentclass

I've written my own CV class and set it up so all packages are required in the .cls file and the .tex file only uses \documentclass. I would like to keep it this way but still be able to select ...