[OS X TeX] Detecting an option in documentclass [OT]

Alan Munn amunn at gmx.com
Sat Aug 27 06:13:30 CEST 2011

On Aug 26, 2011, at 7:32 AM, Themis Matsoukas wrote:

> This is a pure latex question: is it possible to detect an option in a document class? For example, in some files I use
> \documentclass[11pt,article]{memoir}
> and in others
> \documentclass[11pt]{memoir}
> I am building a macro that should behave differently depending on whether or not the option "article" is loaded. 

I don't think there's a general way to do this.  In your specific case, memoir has a conditional \ifartopt which is set to true if the article option is chosen.  So you can do:

 ... (define article version of the macro)
...  (define non-article version)


Alan Munn
amunn at gmx.com

More information about the macostex-archives mailing list