[texhax] Conditional statement

Andreas Ess aess at vision.ee.ethz.ch
Mon Oct 23 17:19:08 CEST 2006


Hi,
I'm trying to do some conditional statements with TeX...

Given the following statement

\def\arbeitE#1#2{
   \author #2// & \title #1//\\ \hline
}

, which takes arbeitE, of the following form
\arbeitE{A;B;C}{D;E;F;G}

and then passes the two arguments on to the \author and \title commands, 
I want to execute the entire statement (\author ... \hline) only if the 
value of E equals a certain character sequence, and otherwise, do 
nothing... The things I don't see:

- How can I extract E from argument #2
- How can I do the actual comparison?

Thanks!
Andreas


More information about the texhax mailing list