ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: NTG-ConTeXt <ntg-context@ntg.nl>
Subject: Re: Table: horizontal border lines, but not everywhere
Date: Thu, 12 Oct 2000 15:07:29 +0200	[thread overview]
Message-ID: <3.0.6.32.20001012150729.01331580@pop.wxs.nl> (raw)
In-Reply-To: <39E59DE4.697D7B98@gmx.de>

At 01:17 PM 10/12/00 +0200, Tobias Burnus wrote:
>Hi,
>
>How can I create something like:
>
>
>-----------------------------------
>Row 1  Row 2  Row 3  Row 4  Row 5
>-------------       -------
>Row 1  Row 2  Row 3  Row 4  Row 5
>------       --------------
>Row 1  Row 2  Row 3  Row 4  Row 5
>COL 4a ----------------------------
>Row 1  Row 2  Row 3  Row 4  Row 5
>-----------------------------------
>
>Best would be if the Row1-Col4a-Row1 part be one cell (since it prevents
>the need to hyphenate oneself; I haven't tried \LOW yet since I my main
>problem is the rules between the table rows.
>
>I tried \DL \DC \DL[4] \DR to get:
>
>Time  Mo Tu We Th Fr
>----     -----------
>
>But it produces errors. Using \DL \DC \DL \DL \DL \DL \DR doesn't
>produce errors, but it doen't work either (wrong output).

This has to do with the fact that \omits and \spans are interfering and
that's about the worst part of tex once you try to write macros -) 

How about the following, awful sequence of commands:

\setupTABLE[frame=off,width=3em]
\setupTABLE[c][each][align={middle,lohi}]
\setupTABLE[r][1,4][topframe=on]
\setupTABLE[r][3,4][bottomframe=on]
\setupTABLE[1,4][2][topframe=on,bottomframe=on]
\setupTABLE[2][2][topframe=on]
\setupTABLE[3][2][bottomframe=on]

\bTABLE
\bTR \bTD1/1\eTD                \bTD1/2\eTD \bTD1/3\eTD \bTD1/4\eTD
\bTD1/5\eTD \eTR
\bTR \bTD2/1\eTD                \bTD2/2\eTD \bTD2/3\eTD \bTD2/4\eTD
\bTD2/5\eTD \eTR
\bTR \bTD[nr=2]3/1 34/1 4/1\eTD \bTD3/2\eTD \bTD3/3\eTD \bTD3/4\eTD
\bTD3/5\eTD \eTR
\bTR                            \bTD4/2\eTD \bTD4/3\eTD \bTD4/4\eTD
\bTD4/5\eTD \eTR
\eTABLE

I hope you don't hate me for this -) 

Hans

-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


      reply	other threads:[~2000-10-12 13:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-12 11:17 Tobias Burnus
2000-10-12 13:07 ` 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=3.0.6.32.20001012150729.01331580@pop.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).