ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Buggy ConTeXt table macros?
@ 2001-02-12  5:36 James Ramsey
  2001-02-12  8:53 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: James Ramsey @ 2001-02-12  5:36 UTC (permalink / raw)


I'm not sure if \DL, \DC, and \DR are buggy or just
not quite documented yet. The following table seems to
work, though it looks to me like it shouldn't:

\starttable[|l|w40|l|w4|]
\NC Signed \NC \NC Date \NC \NC \NR
\DC \DL \DL \DR
\NC \NC (President) \NC \NC \NC\LR
\stoptable

This table gets me

Signed _____________________  Date _____
           (President)

which is what I want; however, the table looks like
its missing a \DC between the two \DL's.

This table, which I found in an unanswered post in the
ConTeXt mail archive doesn't work, and I can't find a
way to make it work:

\starttable[|l|l|l|l|l|]
\NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC\AR
\DL[2] \DL[2] \DR
\NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC\AR
\stoptable

This table is supposed to look like the following:

1 2 3 4 5
---   ---
1 2 3 4 5

What is going on?

=====

----I am a fool for Christ. Mostly I am a fool.----

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Buggy ConTeXt table macros?
  2001-02-12  5:36 Buggy ConTeXt table macros? James Ramsey
@ 2001-02-12  8:53 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-02-12  8:53 UTC (permalink / raw)
  Cc: ntg-context

At 09:36 PM 2/11/01 -0800, James Ramsey wrote:
>I'm not sure if \DL, \DC, and \DR are buggy or just
>not quite documented yet. The following table seems to
>work, though it looks to me like it shouldn't:
>
>\starttable[|l|w40|l|w4|]
>\NC Signed \NC \NC Date \NC \NC \NR
>\DC \DL \DL \DR
>\NC \NC (President) \NC \NC \NC\LR
>\stoptable
>>This table gets me
>
>Signed _____________________  Date _____
>           (President)
>
>which is what I want; however, the table looks like
>its missing a \DC between the two \DL's.

this may be a better template: \starttable[s0|s3l|w40|l|w4|]

the dc seems missing, but what actually happens is that the line extends
into the between column space. This table package is based on TaBlE
(michael wichura) which which has imaginary columns. I may rewrite that
from scratch some day, also because color support would become more robust
that way. 

\starttabulate[||c|||]
\NC name \NC \underbar{\hskip4cm} \NC date \NC \underbar{\hskip2cm} \NC\NR
\NC      \NC \tx (president)      \NC      \NC                      \NC\NR
\stoptabulate

>This table, which I found in an unanswered post in the
>ConTeXt mail archive doesn't work, and I can't find a
>way to make it work:
>
>\starttable[|l|l|l|l|l|]
>\NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC\AR
>\DL[2] \DL[2] \DR
>\NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC\AR
>\stoptable
>
>This table is supposed to look like the following:
>
>1 2 3 4 5
>---   ---
>1 2 3 4 5
>
>What is going on?

A lot of tricky things.

This may work (core-tab.tex): 

\def\TableDR%
  {\ifnum\currentTABLEcolumn<\maxTABLEcolumn 
     \finishTABLErow
   \else
     \global\currentTABLEcolumn=0            
     \normalTABLElineending
   \fi
   \TABLEnoalign
     {\nobreak
      \global\TABLEdivisionfalse
      \accountTABLElinewidth % temporary solution
      \setTABLEaction\TABLErule}}

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      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
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-12  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-12  5:36 Buggy ConTeXt table macros? James Ramsey
2001-02-12  8:53 ` Hans Hagen

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).