Concerning options that can be passed to document classes.

learn more… | top users | synonyms

5
votes
2answers
178 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
411 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
577 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: ...
3
votes
1answer
596 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 ...
13
votes
2answers
1k 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
1k 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. ...
4
votes
1answer
215 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) } % ...
8
votes
1answer
214 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 ...