[texhax] need name of variable containing value of documentclass

Uwe Lueck uwe.lueck at web.de
Mon Oct 17 23:14:39 CEST 2011

"Heiko Oberdiek" <heiko.oberdiek at googlemail.com> wrote 04.10.2011 16:33:48:
> A document class can load another document class
> that can load another documentclass

I disagree already here, let alone ...

> that can load another document class that can load ...

... once I thought this too, but then I experienced \@twoloadclasserror,
see \let\LoadClass\@twoloadclasserror in \@onefilewithoptions of latex.ltx.

> There is a package `classlist' that records the main (first) class
> and the class list. The package needs to be loaded before \documentclass:

I saw "classlist" earlier and already then wondered how long the "list" can be, 
now looked up its documentation for examples ...

I.e., e.g., when some class `modbook.cls' builds on the standard LaTeX
`book.cls' by \LoadClass{book}, you cannot create a class `mmodbook.cls'
building on `modbook.cls' by \LoadClass{modclass}, rather


will produce the \@twoloadclasserror then.



More information about the texhax mailing list