Concerning options that can be passed to document classes.
31
votes
3answers
486 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. ...
26
votes
3answers
17k 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, ...
13
votes
4answers
2k views
Setting class options after \documentclass
Context: I'm working on my thesis, and the formatting requirements are pretty godawful. In addition to the version I submit to the grad school, I would like to also create a properly formatted version ...
13
votes
2answers
395 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 ...
13
votes
1answer
69 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.
...
10
votes
2answers
108 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 ...
10
votes
2answers
108 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:
...
10
votes
2answers
450 views
How do I conditionally execute something based on a documentclass option?
I'd like to conditionally do some things (like input a file) depending on if a specific class option was passed. For example, I'd like to have an "instructor" option to the class that would input a ...
10
votes
1answer
580 views
Changing the default options of a document class?
I would like to define some base-class.cls, with some options and their defaults, and then provide some mechanism so that other derived classes can reuse the existing options and change the defaults. ...
8
votes
3answers
685 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 ...
8
votes
1answer
103 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 ...
7
votes
2answers
105 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}
...
7
votes
1answer
161 views
LaTeX3: \ProcessKeysOptions hangs while processing global (class) option
The code of the trivial package mypkg.sty below defines key draft. If draft is given as a class option, LaTeX hangs at the command \ProcessKeysOptions. This seems to be a bug. Or is there something ...
7
votes
0answers
135 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 ...
6
votes
1answer
217 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 ...
6
votes
1answer
138 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}
...
6
votes
1answer
105 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}
...
5
votes
2answers
115 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}
...
5
votes
1answer
110 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}
...
5
votes
2answers
141 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 ...
4
votes
1answer
156 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)
}
% ...
3
votes
2answers
54 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 ...
3
votes
1answer
68 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 ...
3
votes
1answer
93 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 ...
3
votes
1answer
181 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}
...
3
votes
1answer
358 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 ...
2
votes
2answers
356 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 ...
2
votes
1answer
212 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
213 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 ...
1
vote
1answer
214 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 ...
1
vote
1answer
282 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:
...
1
vote
0answers
63 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 ...

