Possible Duplicate:
Which documentclass is being used?
I know how to use conditionals in LaTeX, but I need to check what documentclass is being used.
I need to not include a package when I'm using g-brief or g-brief2, so how can check for that?
I tried:
\@ifclassloaded{g-brief}{%
}{%
\@ifclassloaded{g-brief2}{%
}{%
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2cm, bottom=3cm]{geometry}
}}
But I get the following error:
! You can't use `\spacefactor' in vertical mode.
\@->\spacefactor
\@m {}
l.29 \@
ifclassloaded{g-brief}{%
I'm using XeLaTeX.
@in their names, must be put between\makeatletterand\makeatother, except when they are inside a package or class file. – Martin Scharrer Nov 10 '11 at 11:33@as a 'letter', see for example http://tex.stackexchange.com/questions/8351/what-do-makeatletter-and-makeatother-do – Joseph Wright Nov 10 '11 at 11:44