[OS X TeX] \ifthenelse in \author ?
Peder Axensten
peder at axensten.se
Wed Feb 2 15:44:26 CET 2005
In your specific case, would it be possible to use:
\ifthenelse{\equal{A}{B}}{\author{Whatever true}}{\author{whatever
false}}
?
On 2 feb 2005, at 15.26, Josep M.Font wrote:
> Hi all,
>
> Sorry if this is not a specifically MacOS X-oriented question.
>
> IL am trying to use the \ifthenelse command (from the ifthen package)
> in amsart document class. I am writing something like
> \ifthenelse{\equal{A}{B}}{then clause}{else clause}, where A,B will be
> text strings. It works well if used inside the document's body, but I
> would like to use it inside the \author{} command (and use \maketitle
> afterwards) and in this case LaTeX complains that \equal is not
> defined.
>
> I know \maketitle does some special things, but I am not an expert.
> Any idea ? Should I abandon my plan ?
>
> Thanks in advance,
>
> JMaF
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>
>
/Peder
+46-90-786.7719 (work)
+46-90-32344 (home)
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list