LaTeX: Save a string, not box

Primary tabs

1 post / 0 new
Laurentius's picture
Joined: 6 Feb 2009 - 5:09pm
LaTeX: Save a string, not box

Is it possible to save the argument of a new command in a string; i.e. NOT a box, and NOT a macro, that will run the argument every time it is called.

E.g. the argument is \cite{PhG}

I want to save the result of this, but not so that \cite is executed every time I use the string -- in which case I will get a different, undesired result, like "ibid."

I also do not want it to be a box, because I want to preserve the options to use either a hbox or a vbox.

Thanks in advance!