ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TABLE & lines (frame)
Date: Tue, 12 Jun 2012 17:40:13 +0200	[thread overview]
Message-ID: <CAG5iGsC=3d7v8XnMXR4xPhy+TTit16_O=5H5D+u8Nf7ivMxT7A@mail.gmail.com> (raw)
In-Reply-To: <op.wfspuds2tpjj8f@lpr>

On Tue, Jun 12, 2012 at 5:12 PM, Procházka Lukáš Ing. - Pontex s. r.
o. <LPr@pontex.cz> wrote:
> Hello,
>
> I'd need to create table with a head and a body, and with horizontal lines
> between rows disabled, excluding the head.
>
> Something like (ASCII art trial):
>
> +------+------+
> | Head | Head |
> +------+------+   <- Line here bellow the head is wanted (and can be thicker
> than the outer lines)...
> | 11   | 12   |
> |      |      |   <- ... but no horizontal line between body's rows.
> | 21   | 22   |
> +------+------+
>
> I played with *frame settings (guided by wiki), but no success.
>
> My trial code:
>
> ----
> \starttext
>  \bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
>    \bTABLEhead[bottomframe=on]
>      \bTR\bTD Head \eTD\eTR
>      \bTR\bTD Head \eTD\eTR
>    \eTABLEhead
>    \bTABLEbody
>      \bTR\bTD 11\eTD\bTD 12\eTD\eTR
>      \bTR\bTD 21\eTD\bTD 22\eTD\eTR
>    \eTABLEbody
>  \eTABLE
> \stoptext
> ----
>
> How to specify rules (frame) to get the desired look?
>
> TIA.
>
> Kind regards,
>
> Lukas

Hm, your ascii-art and the tex code don't match very well (you have
one head-row on ascii, but two head-rows on tex)
This is quite similar to your ascii-art:

\starttext
 \bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
   \bTABLEhead
%     \bTR\bTD Head \eTD\eTR
     \bTR[bottomframe=on,topframe=on]\bTD Head \eTD\bTD Head \eTD\eTR
   \eTABLEhead
   \bTABLEbody
     \bTR\bTD 11\eTD\bTD 12\eTD\eTR
     \bTR[bottomframe=on]\bTD 21\eTD\bTD 22\eTD\eTR
   \eTABLEbody
 \eTABLE
\stoptext

-- 
luigi
___________________________________________________________________________________
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-12 15:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12 15:12 Procházka Lukáš Ing. - Pontex s. r. o.
2012-06-12 15:40 ` luigi scarso [this message]
2012-06-12 15:41 ` Wolfgang Schuster
2012-06-12 16:17   ` Procházka Lukáš Ing. - Pontex s. r. o.

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='CAG5iGsC=3d7v8XnMXR4xPhy+TTit16_O=5H5D+u8Nf7ivMxT7A@mail.gmail.com' \
    --to=luigi.scarso@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).