ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer, H. van der" <H.vanderMeer@uva.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xtable
Date: Fri, 22 Jun 2012 10:00:40 +0000	[thread overview]
Message-ID: <D934AE81-6AEF-4C05-8093-96CBBA64F30C@uva.nl> (raw)
In-Reply-To: <BC946F23-CB9C-48F4-88FE-DB7D5942E55F@googlemail.com>


On 22 jun. 2012, at 10:53, Wolfgang Schuster wrote:

> 
> Am 21.06.2012 um 16:27 schrieb Meer, H. van der:
> 
>> Can one put individual horizontal and vertical lines between rows/columns in xtable? Just like for example \HL in \starttable?
> 
> You can use MetaPost to draw the rules but it’s awkward because you can make a setup like this
> 
>  \setuxptable[column][1][background=…]
> 
> which is only supported by natural tables. It would be simpler when stables had a counter like \currentxtablecolumn
> which could be accessed to make a test like “if \currentxtablecolumn = 1 then … fi” but this isn’t the case.

I see. No hope here. 

But I found some sort of solution which I communicate here. It is bit of a kludge but does more or less what I had in mind. The following macros do the work in my xml=>xtable module:
<table frameon="t,b"> also <thead> <tr> <td> and so on.

\def\setframeparts#1#2#3{%
\doifinset{t}{#1}{#3[topframe=#2]}%
\doifinset{b}{#1}{#3[bottomframe=#2]}%
\doifinset{l}{#1}{#3[leftframe=#2]}%
\doifinset{r}{#1}{#3[rightframe=#2]}%
}
..#2 being \setupxtable or \setupframed, just as needed
\doifnot{\xmlatt{#1}{frameon}}{\empty}%
    {#2[frame=off]\setframeparts{\xmlatt{#1}{frameon}}{on}{#2}}%
\doifnot{\xmlatt{#1}{frameoff}}{\empty}%
    {#2[frame=on]\setframeparts{\xmlatt{#1}{frameoff}}{off}{#2}}%
..

> 
>> The workings of parameter spaceinbetween on \startxtable remain a mystery to me. Can someone enlighten me?
> 
> It inserts a space between each row, the amount of space is the same as \blank[…] would insert.
> 

Do I conclude correctly that the dimension of the space is fixed to what \blank[] does? 
I experimented with various values, but did not get much out of it.

Hans van der Meer



___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2012-06-22 10:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 14:27 xtable Meer, H. van der
2012-06-22  8:53 ` xtable Wolfgang Schuster
2012-06-22 10:00   ` Meer, H. van der [this message]
2012-06-22 10:48     ` xtable Wolfgang Schuster
2012-06-22 11:14       ` xtable Meer, H. van der

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=D934AE81-6AEF-4C05-8093-96CBBA64F30C@uva.nl \
    --to=h.vandermeer@uva.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).