[texhax] Alignment & in tables

Tim Dijkstra newsuser at famdijkstra.org
Tue Oct 9 16:02:28 CEST 2007


I'm trying to do the following. I have an input macro that can be used to
store data in some toks register. The data could be:
\\ AAA \\ BBB \\ CCC \\ DDD
Now I want this data in a table. If I would write it out, I would write
Col1 & Col2 \\
     & AAA \\
     & BBB \\
     & CCC \\
     & DDD

What I need is a macro that replaces in the contents of the register the
'\\' macro with '\\ &'. But whatever I try, I get problems. It seems that
I can't just define a macro that outputs the '&'.

Any ideas?



More information about the texhax mailing list