From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Simplified input for natural tables
Date: Sun, 8 Mar 2009 20:26:52 +0100 [thread overview]
Message-ID: <115224fb0903081226r738a5286v7c91e71ac364955@mail.gmail.com> (raw)
In-Reply-To: <49B3F93F.5080707@wxs.nl>
On Sun, Mar 8, 2009 at 5:58 PM, Hans Hagen <pragma@wxs.nl> wrote:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-08 19:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 15:24 Wolfgang Schuster
2009-03-08 16:34 ` Aditya Mahajan
2009-03-08 16:58 ` Hans Hagen
2009-03-08 18:03 ` John Devereux
2009-03-08 18:36 ` Hans Hagen
2009-03-08 19:10 ` John Devereux
2009-03-09 13:35 ` George N. White III
2009-03-12 10:57 ` Henning Hraban Ramm
2009-03-09 12:15 ` Mojca Miklavec
2009-03-08 19:26 ` Wolfgang Schuster [this message]
2009-03-08 19:50 ` Hans Hagen
2009-03-12 17:14 Vyatcheslav Yatskovsky
2009-03-12 18:05 ` Wolfgang Schuster
[not found] <mailman.19.1236882597.12697.ntg-context@ntg.nl>
2009-03-12 19:51 ` Vyatcheslav Yatskovsky
2009-03-12 20:06 ` Aditya Mahajan
2009-03-12 20:19 ` Wolfgang Schuster
2009-03-13 22:13 ` Mohamed Bana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=115224fb0903081226r738a5286v7c91e71ac364955@mail.gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).