[texhax] Defining variables

Sorin Marti mas at semafor.ch
Mon Oct 13 12:23:02 CEST 2003

Jan Bruners wrote:
> Hi fellows,
> sorry for the stupid question, but I did not find a sufficient explanation in
> the LaTeX Companion:
> * How do I define a new variable in the preamble?
> * How do I assign a new value to that variable?
> * How can I ask LaTeX to print the actual value of the variable?
> I need something like the \author, \title, \date variables which can be printed
> with \maketitle.
> Thanks,
> Jan

#1 means one argument.

You set the value with:\Var{some text}
and print it with \var.


More information about the texhax mailing list