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:

    \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.
                 \@m {}
l.29 \@

I'm using XeLaTeX.

marked as duplicate by Joseph Wright Nov 10 '11 at 10:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    This is a clear dupe: I'm closing. – Joseph Wright Nov 10 '11 at 10:54
  • Well, at least a link to the original would be nice, I really don't know how to do that! – polemon Nov 10 '11 at 11:04
  • @polemon There's a link to the duplicate, added at the top of the question. Closing is just to keep the site content clean, sorted and accessible, nothing personal. Also, if you change the question so that it becomes different, it can be reopened. – Stefan Kottwitz Nov 10 '11 at 11:11
  • 1
    All macros with an @ in their names, must be put between \makeatletter and \makeatother, except when they are inside a package or class file. – Martin Scharrer Nov 10 '11 at 11:33
  • On @ as a 'letter', see for example tex.stackexchange.com/questions/8351/… – Joseph Wright Nov 10 '11 at 11:44