ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Column cell number in natural tables
Date: Sun, 09 Apr 2006 22:24:15 +0200	[thread overview]
Message-ID: <44396D6F.7090905@wxs.nl> (raw)
In-Reply-To: <ops7o67ftc9niby6@localhost>

nico wrote:
> Hello,
>
> Is it possible to explicitely set the column of the cell defined by a \bTD  
> ... \eTD? I mean that, within a row, it is the number of previous defined  
> cells that determine the current column cell position. What I would like  
> is to be able to omit intermediate empty cells by explicitely setting the  
> column of the defined cell.
>
> I thought that maybe the option "n" could do that, but it does not work as  
> I expected. Here is an example of a table I'd like to be able to write (of  
> course the "n" option can be replaced by anything else):
>
> \bTABLE
> \bTR\bTD[n=3] a3 \eTD\bTD[n=6] a6 \eTD\eTR
> \bTR\bTD b1 \eTD\bTD b2 \eTD\bTD b3 \eTD\bTD b4 \eTD\eTR
> \bTR\bTD c1 \eTD\bTD c2 \eTD\bTD c3 \eTD\bTD c4 \eTD\eTR
> \bTR\bTD d1 \eTD\bTD[n=5] d5 \eTD\bTD[n=7] d7 \eTD\eTR
> \bTR\bTD e1 \eTD\bTD[n=3] e3 \eTD\eTR
> \eTABLE
>
> On benefit of this feature is that it would make the CALS table model  
> (http://www.oasis-open.org/specs/a502.htm) mapping to context quite  
> easier, especially when the table contains row or column spanning.
>   
ah, this should work indeed, but i never tested more than one column skipped, i'll send you a small patch to test 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

      reply	other threads:[~2006-04-09 20:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-08 16:39 nico
2006-04-09 20:24 ` Hans Hagen [this message]

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=44396D6F.7090905@wxs.nl \
    --to=pragma@wxs.nl \
    --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).