Possible Duplicate:
Which document class is being used?
I'd like to include conditional formatting in a .sty file, conditional on the document class of the document that invokes it.
For example, I'd like to redefine the \section command like this for all article, letter, and book document classes, but have no special formatting for documents making use of the beamer class.
\renewcommand*\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large}}
I'd appreciate any help on how to do this.
\@ifclassloaded– yo' Feb 05 '12 at 22:04