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
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
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
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
participants (3)
-
Hongwen Qiu
-
Martin Althoff
-
Wolfgang Schuster