I was wondering if it is possible to use the pipe character, |, instead of the & to separate cells.
Something like this:
c1 | c2 | c3 \\
c4 | c5 | c6 \\
instead of this:
c1 & c2 & c3 \\
c4 & c5 & c6 \\
|
I was wondering if it is possible to use the pipe character, Something like this:
instead of this:
|
|||||
|
|
Instead of (inherently fragile) catcode trickery, as suggested by David, you could also define a simple helper macro with delimited arguments:
Even though the extra |
|||||||||||||
|
|
Here's a ConTeXt solution using the
As separators the strings The same technique can be used to typeset CSV data as well since the macros, separators and the quoting can be configured. |
|||
|
|