Concerning options that can be passed to document classes.

learn more… | top users | synonyms

2
votes
1answer
33 views

How can I pass babel options through class options?

I built a class upon the article class. This class load a package where the \maketitle command is define. If I do not load babel inside the class, the title of the document is always in english (the ...
1
vote
1answer
44 views

Where to put the options for customize a document with KOMA Script classes?

I started to read the documentation on the KOMA Script classes because I seem to have many tools and are more flexible to use than the standard classes, but at the same time I don't understand at all ...
0
votes
0answers
35 views

How to set options in a .cls file

Suppose I'm writing a foo class which at some point calls LoadClassWithOptions{book} I would like to be able to pass either oneside or twoside to the book class based on various other ...
0
votes
0answers
33 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 ...
2
votes
0answers
37 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 ...
0
votes
0answers
77 views

Not able to use 5p options in the document class of elsarticle

Showing the error of logo when using the option of 5p in document class of elsarticle. I am using the following code: \documentclass[preprint,5p,times,twocolumn]{elsarticle} ...
3
votes
1answer
30 views

How to change the behavior of a package via the class options?

I'm writing a document class based on the book class. In this class I have some code as below: \RequirePackage[total={10cm,18cm},paperwidth=16cm, paperheight=23cm]{geometry} ...
0
votes
0answers
40 views

What is the kvoptions-patch's equivalent of \@classoptionslist?

For a class I'm working on, I'd like some (babel's) languages to be automatically loaded. This can be achieved thanks to \@classoptionslist: \begin{filecontents*}{myclass.cls} ...
2
votes
0answers
38 views

Migrating from xkeyval to kvoptions: how to retrieve \define@choicekey?

I'm in the process of migrating a class I wrote from xkeyval to kvoptions, mainly because I'd like to provide class options whose values could be list of comma separated values: ...
8
votes
1answer
75 views

Why are these options passed to \LoadClass ignored?

Consider the following simple example: % === this is simple.tex === \documentclass[paper=a5,pagesize]{scrbook} \usepackage{lipsum} \begin{document} \lipsum{1-10} \end{document} When processing this ...
2
votes
1answer
39 views

How can I force some options and discard others in a custom class?

I'm creating a document class based upon memoir. For this, I allow several class options to be passed to my code. Options that are not recognized will simply be passed to memoir. Now my question is: ...
4
votes
1answer
50 views

How to make a package to ignore parameters it doesn't know when loading in a class?

I'm defining a class that extends article that loads a package inside (automultiplechoice). I'm trying to configure the package and the class using the parameters of the \documentclass command. When ...
3
votes
1answer
105 views

Class options declaration error: Undefined control sequence

I'm trying to write a class file with certain options (e.g centered title, vs title on the left). When I compile a *.tex file that calls this class, I get the an undefined control sequence error for ...
11
votes
1answer
105 views

Processing document class options with l3keys

How can I parse (that is, access) the entire option list given to the current document class with l3keys? This would obviously need some sort of \keys_define:nn { document-class-?? } { default ...
1
vote
0answers
25 views

standalone: subprambles inverse

When splitting a document with the standalone class and package, the option subpreambles causes the main document to include all the preambles of the sub-files. The other way around is more difficult. ...
13
votes
1answer
242 views

A class with default language settings

I want to write a class which loads babel and other language aware packages and pass to all of them the option ngerman as default. But if another language is used in the options of the \documentclass ...
3
votes
1answer
253 views

acronym option passed at the class level rather than to the (glossaries) package level doesn't work

I was pretty sure that options (including unknown ones) passed at the class level were also passed to the loaded packages. Hence I don't understand why the following MCE works like a charm: ...
5
votes
2answers
113 views

Passing Options to Unknown Class

My goal is to process a LaTeX tex file with the draft option enabled for the document class, but from a terminal without having to edit the tex file or even open it to look at what class is being ...
1
vote
1answer
275 views

Number of pages decreases when font size increases

Number of pages in my pdf-document [article] decreases when font size increases – and v.v.! It kind of resembles an optimum of maximum page numbers as function of font size (which I don't ...
3
votes
1answer
60 views

Creating an option clash between custom class options

In my custom LaTeX class, I've created some different options, such as different font sizes, 11pt, 12pt and 13pt, and paper sizes, such as a4paper and letterpaper. However, only one option from each ...
6
votes
1answer
101 views

Option seemingly ignored

I'm trying to give my custom class file two options for font size, 11pt and 12pt. I want 12pt to be the default. I create the options like this: \DeclareOption{11pt}{ ...
2
votes
1answer
537 views

How do I set a hard minimum margin size with the tufte-book document class?

I'm trying to typeset my thesis with the tufte-book document class, and I'm having an issue with the margins. There is a rule (beyond my control) that all my text and figures must remain within ...
3
votes
2answers
193 views

Global configuration files in LaTeX

Just wanna know if there is posible to have some kind of "configuration file" on LaTeX. Like a properties file on Java. Recently I changed my email address, so i need to replace it on every document ...
13
votes
1answer
146 views

testing for a documentclass option

I know that there are lots of similar question, but none of those have helped me so far - and I did google a lot. So my question is: I have a document class (emulateapj) which accepts a few options. ...
1
vote
0answers
173 views

Lyx - Editing the document class [closed]

I am using LyX Beamer but want to the option [t]. Using Document -> Settings -> Document Class if I choose presentation (beamer) and put the [t] in custom it does not compile. Is there a way to define ...
3
votes
1answer
224 views

How to define default options to a class?

I do not undestand how to pass options to the parent class when writting a child class. I tried several possibilities but I never get flush left aligned equations. I do understand the difference ...
9
votes
1answer
244 views

How to detect whether “I'm on arXiv.org”?

I write a class. I'm interested in having a different page headers (and eventually make some other small differences) based on whether the class is used on the site arXiv.org or not. Minimal example ...
4
votes
1answer
459 views

Default options in custom memoir class

I can't get default arguments to work with my custom class based on memoir. I want to be able to define some default options (a4paper,danish) but I want to be able to override them when I call ...
6
votes
1answer
180 views

When writing my own document class, certain options don't get passed to base class. Why?

I'm trying to create my own class using scrbook as a base class, and biblatex as for my bibliography. Consider this MWE: \documentclass[bibliography=totoc,fontsize=12]{scrbook} ...
7
votes
2answers
314 views

How can I stop the “setspace” package from processing a “doublespacing” documentclass option?

LaTeX does not behave as I expected with the following files. First file: \documentclass[doublespacing]{article} \usepackage{lipsum} % for dummy text only \begin{document} \lipsum \end{document} ...
8
votes
1answer
139 views

What does the font size documentclass option actually do?

When using e.g. the [12pt] option for a document class like \documentclass[12pt]{article} what does (Xe)LaTeX actually do/set? I noticed that for example a multicols environment behaves different ...
10
votes
2answers
205 views

How to set class options that can have multiple values?

Title says it all, but here's an example: the KOMA-Script classes provide the option toc which can have multiple values that don't interfere with each other, like values that enable the Bibliography ...
5
votes
1answer
263 views

Stop my class passing options on to article class

I have a class file which declares some options. One of them is called draft. This places a watermark on all pages that says DRAFT. \DeclareOption{draft}{ \RequirePackage{draftwatermark} ...
6
votes
2answers
288 views

Add option to class with command

Is it possible add at the loaded class some options? look at the example below: \documentclass{scrbook} \AddOptionsToClass{headinclude,footinclude}% something like this command \begin{document} ...
1
vote
1answer
539 views

What unit of measure is pt in the documentclass?

I would like to know what is the meaning of 13pt in here: \documentclass[a4paper,13pt]{article} My first guess was that it was the size of the characters, but changing the number does not seem to ...
6
votes
1answer
329 views

Mark key-value class options as used

I have written a wrapper for the scrartcl class in the following way: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{mycls}[2012/08/23] \RequirePackage{kvoptions} \DeclareStringOption{title} ...
1
vote
1answer
541 views

Svmono hack. How to change font size in Springer Verlag Class?

I am writing my Ph.D. thesis with svmono class of Springer-Verlag, but the default size is 10pt and seems to me too difficult to read. I would like to change to 11pt or 12pt. This two option are ...
13
votes
3answers
3k views

Possibility to pass options to packages

I am searching for a possibility to give additional options to another package. I have tried it with \PassOptionsToPackage. My idea was that I can use something like ...
10
votes
2answers
157 views

article wrapper class that locks down some options, passes others through

I'm writing a wrapper document class that starts with article and adds a bunch of customizations (required for a particular journal style). One of the requirements is to lock down certain options: ...
2
votes
2answers
1k views

ProcessOptions and ProcessKeyvalOptions

\ProcessOptions and \ProcessKeyvalOptions Which comes first? Does it matter? \ProcessOptions\relax or \ProcessOptions* What's the difference? Apparently for keyval there is only the starred ...
7
votes
1answer
552 views

Is it possible to use \PassOptionsToClass into a package?

Context: I'm building a new package for my university. I need to set a lot of options for the document class, like twoside, a4paper, 12pt, or firstpagenum=chapter. I would like to set them by default ...
33
votes
3answers
565 views

Will LaTeX3 improve freedom of package ordering and reduce “options clash”?

A prefatory afterthought: you may think this question better asked on the LaTeX3 mailing list, but I believe there may be a more general interest in the rather Byzantine rules for package load order. ...
7
votes
1answer
314 views

LaTeX3 from Package Options to Class Options

Howdy please consider the following expample: \RequirePackage{ expl3 , xparse , l3keys2e , xfrac } \ProvidesExplPackage {somewhat} {2012/04/29} {1} {descrr} ...
5
votes
2answers
175 views

Two different text outputs depending on some parameter definition

I am using the astronomy and astrophysics class aa.cls. I use it with either of the two options: structabstract or referee. The first produces 2-column text, the second one-column text. I have some ...
2
votes
1answer
385 views

How to pass a string to a class

I have a class file where I load hyperref. Now I'd like to change the content of hyperref's \pdftitle from the main .tex file on: \RequirePackage{filecontents} \begin{filecontents}{myclass.cls} ...
1
vote
1answer
489 views

own class with twocolumns activated in \ifdefined for KOMA and xelatex

I want to do something like in http://stackoverflow.com/questions/1465665/passing-command-line-arguments-to-latex-document. For better explanation I'll show a minimal running example: My test.cls: ...
14
votes
2answers
587 views

Defining a wrapper class for a set of document classes

Until now, I have been collecting my "frequently used packages", custom macros, and configurations in a personal style file. However, some of those configurations depend on the use of one of the ...
3
votes
1answer
553 views

Best practice for setting package options through class options?

I want to process my class options so as to create a (potentially long) options list for package(s) I'm loading, e.g. % set default package options here somehow \DeclareOption{myvariant}{ % set a ...
75
votes
3answers
81k views

What point (pt) font size are \Large etc.?

In the preamble I have: \documentclass[a4paper,11pt]{article} \usepackage{fontspec} \setmainfont{Arial} What can be inferred about the real font pt size for the following? \tiny, \scriptsize, ...
4
votes
1answer
209 views

Name clash when defining a class based on article class

\NeedsTeXFormat{LaTeX2e} \ProvidesClass{funny-class} %% % Pass any options to the underlying class. \DeclareOption*{% \PassOptionsToClass{\CurrentOption}{article} % (could be another class) } % ...