On Sun, Mar 8, 2009 at 5:58 PM, Hans Hagen
Aditya Mahajan wrote:
On Sun, 8 Mar 2009, Wolfgang Schuster wrote:
Hi Hans,
natural tables are perfect to create tables with a fixed size for the cells but the syntax requires sometimes a lot of typing for small content and takes to many lines of code in the document.
less code and more efficient too ... can you test this?
\def\startTABLE {\dosingleempty\dostartTABLE}
\def\dostartTABLE[#1]% {\bgroup \bTABLE[#1]% \let\NC\doTABLENC \let\NR\doTABLENR \let\bTR\relax \let\bTD\relax \let\bTH\relax \let\bTN\relax}
\def\stopTABLE {\eTABLE \egroup}
\newconditional\inTABLEnc
\unexpanded\def\doTABLENR {\eTR \setfalse\inTABLEnc}
\unexpanded\def\doTABLENC {\futurelet\next\dodoTABLENC}
\def\dodoTABLENC {\ifx\next\doTABLENR \else \expandafter\dododoTABLENC \fi}
\long\def\dododoTABLENC#1\NC {\ifconditional\inTABLEnc\else\settrue\inTABLEnc\parseTR[][]\fi \parseTD[][]#1\eTD\NC}
Can you change this to \long\def\dododoTABLENC#1\NC {\ifconditional\inTABLEnc\else\settrue\inTABLEnc\parseTR[][]\fi \dodoubleempty\parseTD#1\eTD\NC} I want to be able to give argument with \NC too, it's important for me to be able to use spanned columns/rows in the simple form. Wolfgang