Concerning options that can be passed to document classes.

learn more… | top users | synonyms

13
votes
2answers
974 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
211 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
210 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 ...