From: "Procházka Lukáš" <lpr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: Thicker row separator in a table
Date: Fri, 22 Oct 2010 15:17:08 +0200 [thread overview]
Message-ID: <op.vkza1w2m8lgizc@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
Hello,
I'm trying to get a thicker [transparent] row separator in a table. I have the following code:
---
\definetabulate[TabA][|c|]
\def\XROW{\vrule height 2.5ex depth 1.ex}
\starttext
\startTabA
A \NR % Next Row
B \NR
C \SR % Separate Row
D \MR % Mid Row
E \AR % Auto Row
F \NR
\stopTabA
\startTabA
1 \XROW width 1em \NR
2 \XROW width 1cm \NR
3 \NR
4 \NR
\stopTabA
\stoptext
---
I tried all \?R commands (first table) but there is the same space between each row of the table.
(BTW: What is the difference in use or purpose between \MR, \SR and \AR?)
I'm trying to achieve a bigger space between two rows, like between 1 and 2 or 2 and 3 in the second table.
But, I had to use a bit "dirty" trick - to use an auxiliary blank \vrule with a specific height and depth (= \XROW). That is, I'm actually growing the height of rows instead of growing their separator (= space between them).
Is there a "cleaner" way how to achieve a bigger space between two rows? (I mean between two specific rows, not between rows of one table in general.)
Lukas
[-- Attachment #2: t-Table.pdf --]
[-- Type: application/pdf, Size: 5732 bytes --]
[-- Attachment #3: t-Table.mkiv --]
[-- Type: application/octet-stream, Size: 322 bytes --]
\definetabulate[TabA][|c|]
\def\XROW{\vrule height 2.5ex depth 1.ex}
\starttext
\startTabA
A \NR % Next Row
B \NR
C \SR % Separate Row
D \MR % Mid Row
E \AR % Auto Row
F \NR
\stopTabA
\startTabA
1 \XROW width 1em \NR
2 \XROW width 1cm \NR
3 \NR
4 \NR
\stopTabA
\stoptext
[-- Attachment #4: Type: text/plain, Size: 486 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:[~2010-10-22 13:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=op.vkza1w2m8lgizc@localhost \
--to=lpr@pontex.cz \
--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).