* TABLE & lines (frame)
@ 2012-06-12 15:12 Procházka Lukáš Ing. - Pontex s. r. o.
2012-06-12 15:40 ` luigi scarso
2012-06-12 15:41 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-06-12 15:12 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]
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
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
[-- Attachment #2: t-TAB.mkiv --]
[-- Type: application/octet-stream, Size: 332 bytes --]
\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
[-- Attachment #3: t-TAB.pdf --]
[-- Type: application/pdf, Size: 5382 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 4+ messages in thread
* Re: TABLE & lines (frame)
2012-06-12 15:12 TABLE & lines (frame) Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-06-12 15:40 ` luigi scarso
2012-06-12 15:41 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: luigi scarso @ 2012-06-12 15:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TABLE & lines (frame)
2012-06-12 15:12 TABLE & lines (frame) Procházka Lukáš Ing. - Pontex s. r. o.
2012-06-12 15:40 ` luigi scarso
@ 2012-06-12 15:41 ` Wolfgang Schuster
2012-06-12 16:17 ` Procházka Lukáš Ing. - Pontex s. r. o.
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2012-06-12 15:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 12.06.2012 um 17:12 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> 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?
\starttext
\setupTABLE[start][frame=off,leftframe=on,rightframe=on]
\setupTABLE[header][frame=on]
\setupTABLE[row][first][topframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE[split=repeat,option=stretch]
\bTABLEhead
\bTR\bTD Head \eTD\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
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] 4+ messages in thread
* Re: TABLE & lines (frame)
2012-06-12 15:41 ` Wolfgang Schuster
@ 2012-06-12 16:17 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 0 replies; 4+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-06-12 16:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]
... OK, this seems good.
Actually, I need multi-line header, so two more questions:
1) Is there a way how to address rows (first, last) of the header part? Something like:
\setupTABLE[header][r][1][topframe=on]
\setupTABLE[header][r][last][bottomframe=on]
- When I'd like to draw a line bellow the last row of the head, I have to set "\setupTABLE[r][x][bottomframe=on]" so far, where "x" means the number of the last head row. So I'm looking for a way to address the last header row WITHOUT knowing its number.
2) How to make Ctx draw the line bellow the last row printed on a page, when the table is continued on the next page and "bottomframe" (of the whole table) is on? - See the bottom of table on the page 1, continued on the next page.
Lukas
On Tue, 12 Jun 2012 17:41:00 +0200, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> \starttext
>\setupTABLE[start][frame=off,leftframe=on,rightframe=on]
> \setupTABLE[header][frame=on]
> \setupTABLE[row][first][topframe=on]
> \setupTABLE[row][last][bottomframe=on]
>\bTABLE[split=repeat,option=stretch]
> \bTABLEhead
> \bTR\bTD Head \eTD\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
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
[-- Attachment #2: t-TAB2.mkiv --]
[-- Type: application/octet-stream, Size: 620 bytes --]
\starttext
\setupTABLE[start][frame=off,leftframe=on,rightframe=on]
%\setupTABLE[header][frame=off,leftframe=on,rightframe=on]
%\setupTABLE[header][frame=off,leftframe=on,rightframe=on,bottomframe=on] % Always
\setupTABLE[r][1][topframe=on]
\setupTABLE[r][3][bottomframe=on]
\setupTABLE[r][last][bottomframe=on]
\bTABLE[split=repeat,option=stretch,align=middle,frame=off,leftframe=on,rightframe=on]
\bTABLEhead[bottomframe=on]
\dorecurse{3}{\bTR\bTD Head\eTD\bTD Head\eTD\eTR}
\eTABLEhead
\bTABLEbody
\dorecurse{50}{\bTR\bTD 1\eTD\bTD 2\eTD\eTR}
\eTABLEbody
\eTABLE
\stoptext
[-- Attachment #3: t-TAB2.pdf --]
[-- Type: application/pdf, Size: 7427 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2012-06-12 16:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-12 15:12 TABLE & lines (frame) Procházka Lukáš Ing. - Pontex s. r. o.
2012-06-12 15:40 ` luigi scarso
2012-06-12 15:41 ` Wolfgang Schuster
2012-06-12 16:17 ` Procházka Lukáš Ing. - Pontex s. r. o.
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).