ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: rowdistance in xtables
Date: Sat, 13 Feb 2016 11:33:07 +0100	[thread overview]
Message-ID: <56BF0663.9040002@gmail.com> (raw)
In-Reply-To: <56BF0555.4000003@gmx.es>


[-- Attachment #1.1: Type: text/plain, Size: 1441 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 13. Februar 2016 um 11:28
> Dear list,
>
> I have the following xtable:
>
> \starttext
> \startxtable[frame=off]
> \startxtablehead[foregroundstyle=\bf, topframe=on,
> bottomframe=on]
> \startxrow
> \startxcell
> one
> \stopxcell
> \stopxrow
> \stopxtablehead
> \startxtablebody[rowdistance=20em]
> \startxrow
> \startxcell
> two
> \stopxcell
> \stopxrow
> \stopxtablebody
> \stopxtable
> \stoptext
>
> Well, I suspect that rowdistance isn’t working as expected.
>
> If that helps (and I may be wrong), lines 280-283 from tabl-xtb.mkiv read:
>
> columndistance \dimexpr\xtableparameter\c!columndistance\relax
> leftmargindistance \dimexpr\xtableparameter\c!leftmargindistance\relax
> rightmargindistance \dimexpr\xtableparameter\c!rightmargindistance\relax
> rowdistance \ht\scratchbox
>
> Sorry, but I’m guess that rowdistance doesn’t honor settings.rowdistance
> from tabl-xtb.lua.
>
> Could anyone confirm the bug or tell me what I miss?
You have to use the spaceinbetween key.

\starttext

\startxtable[spaceinbetween=2em]
     \startxrow
         \startxcell
             One
         \stopxcell
     \stopxrow
     \startxrow
         \startxcell
             Two
         \stopxcell
     \stopxrow
     \startxrow
         \startxcell
             Three
         \stopxcell
     \stopxrow
\stopxtable

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2837 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2016-02-13 10:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-13 10:28 Pablo Rodriguez
2016-02-13 10:33 ` Wolfgang Schuster [this message]
2016-02-13 10:55   ` Pablo Rodriguez
2016-02-13 11:21     ` Wolfgang Schuster
2016-02-13 18:27       ` Pablo Rodriguez
2016-02-14 14:40         ` Wolfgang Schuster
2016-02-14 17:18           ` Pablo Rodriguez

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=56BF0663.9040002@gmail.com \
    --to=schuster.wolfgang@gmail.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).