# [texhax] choice of documentstyle upon \jobname

Susan Dittmar S.Dittmar at eureca.de
Wed Nov 30 17:55:24 CET 2005

```Hi all,

I would like to choose the documentclass (in fact, only some of the
documentclass options) according to \jobname. I tried something like

\ifx\jobname{first}
\documentclass[first]{...}
\else
\documentclass[second]{...}
\fi

(and some variations thereof), but somehow it never uses the first
set of options even when \typeout{\jobname} yields 'first'.
Where's my mistake?