ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* table row span question
@ 2010-08-26  4:42 Martin Althoff
  2010-08-26  5:49 ` Hongwen Qiu
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Althoff @ 2010-08-26  4:42 UTC (permalink / raw)
  To: ntg-context

I am having trouble working out a solution for spanning some rows of tables. The instructions at http://wiki.contextgarden.net/Table got me so far as the example shows. 

The example is a timetable excerpt. So I want horizontal lines everywhere, except on Mo, Di, Mi (Monday Tuesday Wednesday) where there are double periods. Adding any more \DLs or \VLs results in not being able to translate the file or other errors. Currently the horizontal lines are not where they should be (now on Mo, Mi, Fr) but kind of evenly spread. 

Lastly: How do I control row height? 

thanks!
Martin

\setuppapersize[A4,landscape][A4]

\def\TagBreite{4cm}

\starttext

\placetable{Stundenplan} 
\starttable[|r w(1cm) |p(\TagBreite) c|p(\TagBreite) c|p(\TagBreite) c|p(\TagBreite) c|p(\TagBreite) c|] 
\HL
\VL Std \VL Montag \VL Dienstag \VL Mittwoch \VL Donnerstag \VL Freitag \VL\FR
\HL
%%%%%%%%% Row Span
\VL 1. 	\VL \LOW{mo} 	\VL \LOW{di} 	\VL \LOW{mi} 	\VL do leer \VL fr leer \VL\MR
\DC 	\DL				\DL		 		\DL							\DR
\VL 2. 	\VL  	\VL  	\VL 	\VL do leer \VL fr leer \VL\MR
\HL 
\VL 3. 	\VL  class	\VL  class	\VL class	\VL do class \VL fr class \VL\MR
\HL 
\stoptable

\stoptext



___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: table row span question
  2010-08-26  4:42 table row span question Martin Althoff
@ 2010-08-26  5:49 ` Hongwen Qiu
  2010-08-26 13:07   ` Martin Althoff
  0 siblings, 1 reply; 5+ messages in thread
From: Hongwen Qiu @ 2010-08-26  5:49 UTC (permalink / raw)
  To: ntg-context

  于 2010年08月26日 12:42, Martin Althoff 写道:
> \DC 	\DL				\DL		 		\DL							\DR
As far as I know, this should be written as

\DC \DL[3] \DR
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: table row span question
  2010-08-26  5:49 ` Hongwen Qiu
@ 2010-08-26 13:07   ` Martin Althoff
  2010-08-26 14:07     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Althoff @ 2010-08-26 13:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> As far as I know, this should be written as
> 
> \DC \DL[3] \DR 

OK, maybe syntactically better -- actually changes the appearance too. Now the the columns that I do not want with lines have them and vice versa. Kind of the negative of what I need. 

The use of DC DL DR kind of eludes me. 

How to get better control? Somehow the commands seem to have their own life...

Thanks again
Martin



___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: table row span question
  2010-08-26 13:07   ` Martin Althoff
@ 2010-08-26 14:07     ` Wolfgang Schuster
  2010-08-27  0:47       ` Martin Althoff
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2010-08-26 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

  Am 26.08.10 15:07, schrieb Martin Althoff:
>> As far as I know, this should be written as
>>
>> \DC \DL[3] \DR
> OK, maybe syntactically better -- actually changes the appearance too. Now the the columns that I do not want with lines have them and vice versa. Kind of the negative of what I need.
>
> The use of DC DL DR kind of eludes me.
>
> How to get better control? Somehow the commands seem to have their own life...

Use natural tables, they provide better control about the cell size and 
layout.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: table row span question
  2010-08-26 14:07     ` Wolfgang Schuster
@ 2010-08-27  0:47       ` Martin Althoff
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Althoff @ 2010-08-27  0:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Use natural tables, they provide better control about the
> cell size and 
> layout.

Wolfgang, thanks! I wasn't aware of them. They don't seem to have found their way into contextref.pdf

I could do what I want and more! Below is the solution for my situation. Gleened from http://wiki.contextgarden.net/TABLE and the docs referenced on that page.

Martin

\setupTABLE[column][width=4cm]
\setupTABLE[column][1][width=1cm]
\setupTABLE[row][align={middle,lohi},height=6ex]
\bTABLE
\bTR \bTD Std \eTD \bTD Montag \eTD \bTD Dienstag \eTD \bTD Mittwoch \eTD \bTD Donnerstag \eTD \bTD Freitag \eTD\eTR
\bTR \bTD 1 \eTD \bTD[nr=2] mo \eTD \bTD[nr=2] di \eTD \bTD[nr=2] mi \eTD \bTD frei \eTD \bTD frei \eTD \eTR
\bTR \bTD 2 \eTD \bTD do \eTD \bTD fr \eTD \eTR
\bTR \bTD 3 \eTD \bTD mo \eTD \bTD di \eTD \bTD mi \eTD \bTD do \eTD \bTD fr \eTD \eTR
\eTABLE



___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2010-08-27  0:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-26  4:42 table row span question Martin Althoff
2010-08-26  5:49 ` Hongwen Qiu
2010-08-26 13:07   ` Martin Althoff
2010-08-26 14:07     ` Wolfgang Schuster
2010-08-27  0:47       ` Martin Althoff

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