* tabulate
@ 2001-09-05 8:35 Patrick Gundlach
2001-09-05 8:58 ` tabulate Hans Hagen
0 siblings, 1 reply; 14+ messages in thread
From: Patrick Gundlach @ 2001-09-05 8:35 UTC (permalink / raw)
Hi,
I have tried
\let\endmyenv=\stoptabulate
\starttext
\starttabulate[|l|]
\NC A \NC \NR
\endmyenv
\stoptext
but this gives me an error message.
I wanted to do something like this:
\def\myenv#1{\subject{#1}\starttabulate[|l|lT|]}
\def\myrow#1#2{\NC #1 \NC #2 \NC\NR}
\let\endmyenv=\stoptabulate
so I can say
\myenv{One}
\myrow{hello}{lineone}
\myrow{out there}{linetwo}
\myrow{and}{linethree}
\myrow{everything}{linefour}
\endmyenv
and that would give me a table :
hello lineone
out there linetwo
and linethree
everything linefour
How can I accomplish this?
Viele Grüße,
Patrick Gundlach
- I TeX, therefore I am -
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: tabulate
2001-09-05 8:35 tabulate Patrick Gundlach
@ 2001-09-05 8:58 ` Hans Hagen
0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2001-09-05 8:58 UTC (permalink / raw)
Cc: ntg-context
At 10:35 AM 9/5/2001 +0200, Patrick Gundlach wrote:
>I wanted to do something like this:
>\def\myenv#1{\subject{#1}\starttabulate[|l|lT|]}
>\def\myrow#1#2{\NC #1 \NC #2 \NC\NR}
>\let\endmyenv=\stoptabulate
>
>so I can say
>
>\myenv{One}
>\myrow{hello}{lineone}
>\myrow{out there}{linetwo}
>\myrow{and}{linethree}
>\myrow{everything}{linefour}
>\endmyenv
>
>and that would give me a table :
>
>hello lineone
>out there linetwo
>and linethree
>everything linefour
>
>How can I accomplish this?
\definetabulate [patrick] [ some template ]
\let\somepatrick\startpatrick
\def\startpatrick#1{\subject{#1}\somepatrick}
\startpatrick
....
\hisrow ...
....
\stoppatrick
-------------------------------------------------------------------------
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] 14+ messages in thread
* Tabulate
@ 2011-04-13 13:59 Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 0 replies; 14+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-04-13 13:59 UTC (permalink / raw)
To: ConTeXt
Hello,
several questions about tabulate. Let's have:
---
\starttext
\setuptabulate[header=repeat]
\starttabulatehead
\HL
\NC T \NC U \NC\AR % [1] \SR? \NR?...
\HL
\stoptabulatehead
\starttabulate[|c|c|]
\NC a \NC b \NC\NR
\NC A \NC B \NC\NR
\stoptabulate
\hairline
\starttabulate[|c|c|]
\NC a \NC b \NC\NR
\NC A \NC B \NC\NR
\stoptabulate
\stoptext
---
- Which kind of \?R to write to [1] to get pretty placed horizontal line? (There is a huge unwanted space above the second \HL.)
- How to rewrite the code above to affects only a particular kind of "tabulate"? I'd like to have a special \definetabulate which would contain "header=repeat" specification as well as a special "tabulehead" (my code affects all following \tabulates).
How to rewrite it better?
TIA.
Best 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
___________________________________________________________________________________
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] 14+ messages in thread
* tabulate
@ 2011-03-23 13:01 Herbert Voss
0 siblings, 0 replies; 14+ messages in thread
From: Herbert Voss @ 2011-03-23 13:01 UTC (permalink / raw)
To: ntg-context
this worked some time ago.
Current minimal mkiv
\def\tabulateuse#1{%
\dorecurse{\numexpr2*#1-1\relax}
{\span\omit}}
\appendtoks
\let\use\tabulateuse
\defineTABLEshorthands
\to \everytabulate
\starttext
\starttabulate[|l|Bc|c|c|c|r|]
\NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
\NC a\NC \use2 b\NC d\NC e\NC f\NC\NR
\NC a\NC \use3 b \NC e\NC f\NC\NR
\NC \use4 a \NC e\NC f\NC\NR
\stoptabulate
\stoptext
system > tex > error on line 10 in file 09-02-30.ctxcrop:
Undefined control sequence ...
1 \def\tabulateuse#1{%
2 \dorecurse{\numexpr2*#1-1\relax}
3 {\span\omit}}
4 \appendtoks
5 \let\use\tabulateuse
6 \defineTABLEshorthands
7 \to \everytabulate
8 \starttext
9 \starttabulate[|l|Bc|c|c|c|r|]
10 >> \NC a\NC b\NC c \NC d\NC e\NC f\NC\NR
11 \NC a\NC \use2 b\NC d\NC e\NC f\NC\NR
12 \NC a\NC \use3 b \NC e\NC f\NC\NR
13 \NC \use4 a \NC e\NC f\NC\NR
14 \stoptabulate
15 \stoptext
Herbert
___________________________________________________________________________________
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] 14+ messages in thread
* tabulate
@ 2010-11-20 8:27 Herbert Voss
2010-11-20 10:47 ` tabulate Hans Hagen
2010-11-20 11:39 ` tabulate Hans Hagen
0 siblings, 2 replies; 14+ messages in thread
From: Herbert Voss @ 2010-11-20 8:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
this worked some days ago:
\starttext
\starttabulate[|p(3cm)|p|]
\NC foo \NC bar \NC
\stoptabulate
\stoptext
minimal mkiv
Herbert
systems : begin file 09-02-15.ctxcrop at line 1
! Undefined control sequence.
\bskip ...bulatehook \ifconditional \autotabulate
\hsize \tabulatewidth
\fi ...
<template> ...l \empty \dotagtabulatealign \bskip
\ifnum \tabulatetype
=\plu...
<to be read again>
f
\tabulatecontent ->\NC f
oo \NC bar \NC
\fulltabulatecontent ...dcontent \tabulatecontent
\tabulatetailcontent
\remo...
\processtabulate ...le \crcr \fulltabulatecontent
\crcr }\dostoptagged
\dost...
l.5 \stoptabulate
___________________________________________________________________________________
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] 14+ messages in thread
* tabulate
@ 2010-11-16 10:07 Herbert Voss
2010-11-16 10:11 ` tabulate Hans Hagen
0 siblings, 1 reply; 14+ messages in thread
From: Herbert Voss @ 2010-11-16 10:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
is this known, that I need at least one space between the last digit
and a followng \NC?
\starttext
\starttabulate[|g{,}|]
%\NG 100.000,00\NC\NR % error
\NG 100.000,00 \NC\NR
\stoptabulate
\stoptext
Herbert
___________________________________________________________________________________
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] 14+ messages in thread
* Re: tabulate
2010-11-16 10:07 tabulate Herbert Voss
@ 2010-11-16 10:11 ` Hans Hagen
0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2010-11-16 10:11 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Herbert Voss
On 16-11-2010 11:07, Herbert Voss wrote:
> is this known, that I need at least one space between the last digit
> and a followng \NC?
>
> \starttext
>
> \starttabulate[|g{,}|]
> %\NG 100.000,00\NC\NR % error
> \NG 100.000,00 \NC\NR
> \stoptabulate
>
> \stoptext
yes, think of
\def\NG#1 {...}
so the space is a delimiter
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 14+ messages in thread
* Re: tabulate
@ 2001-09-05 9:35 Patrick Gundlach
0 siblings, 0 replies; 14+ messages in thread
From: Patrick Gundlach @ 2001-09-05 9:35 UTC (permalink / raw)
Hi,
thanks, I should have read up-004 thoroughly.
> \definetabulate [patrick] [ some template ]
Patrick
^ permalink raw reply [flat|nested] 14+ messages in thread
* Tabulate
@ 1999-05-27 23:39 David Arnold
1999-05-28 0:27 ` Tabulate Hans Hagen
0 siblings, 1 reply; 14+ messages in thread
From: David Arnold @ 1999-05-27 23:39 UTC (permalink / raw)
I am not sure why the last \NC is needed in each row of
\starttabulate[|l|r|]
\NC not to much \NC 1.220 \NC \NR
\NC pretty much \NC 5.186 \NC \NR
\NC totalling up to \NC \overbar{6.406} \NC \NR
\stoptabulate
In fact,
\starttabulate[|l|r|]
\NC not to much \NC 1.220 \NR
\NC pretty much \NC 5.186 \NR
\NC totalling up to \NC \overbar{6.406} \NR
\stoptabulate
seems to work equally well. Indeed, on page 49 of Tabulating in ConTeXt,
Hans even leaves these off himself (at least I think he does), in
\definetabulate [legend] [|emj1|i1|mR|]
\definetabulate [legend] [two] [|emj1|emk1|i1|mR|]
\setuptabulate [legend] [unit=.75em,EQ={=}]
Now we can say things like:
\startlegend
\NC w \NC the width of the box \NC pt \NR
\NC h \NC the height of the box \NC pt \NR
\NC d \NC the depth of the box \NC pt \NR
\stoplegend
Curious.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Tabulate
1999-05-27 23:39 Tabulate David Arnold
@ 1999-05-28 0:27 ` Hans Hagen
0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 1999-05-28 0:27 UTC (permalink / raw)
David Arnold wrote:
> I am not sure why the last \NC is needed in each row of
It is indeed optional. One reason for using it is that it provides an
down/upward compatible hook. In for instance the table environment,
there is
\VL
which produced the vertical lines. One can turn of this vertical lines
and then all tables come out without them. This is typical a situation
where the column separator is not redundant.
It's up to you what you prefer in tabulations.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2011-04-13 13:59 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-05 8:35 tabulate Patrick Gundlach
2001-09-05 8:58 ` tabulate Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2011-04-13 13:59 Tabulate Procházka Lukáš Ing. - Pontex s. r. o.
2011-03-23 13:01 tabulate Herbert Voss
2010-11-20 8:27 tabulate Herbert Voss
2010-11-20 10:47 ` tabulate Hans Hagen
2010-11-20 11:39 ` tabulate Hans Hagen
2010-11-20 13:10 ` tabulate Herbert Voss
2010-11-20 13:12 ` tabulate Herbert Voss
2010-11-16 10:07 tabulate Herbert Voss
2010-11-16 10:11 ` tabulate Hans Hagen
2001-09-05 9:35 tabulate Patrick Gundlach
1999-05-27 23:39 Tabulate David Arnold
1999-05-28 0:27 ` Tabulate 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).