* Re: tables: templates en page splitting
@ 1998-07-05 13:24 Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 1998-07-05 13:24 UTC (permalink / raw)
Cc: 'ntg-context@ntg.nl'
Berend de Boer wrote:
> How can I setup table templates with table headers?
>
> The manual is inaccurate in this respect (it says you can do a
> \def\mytemplate{\starttable[]}, but this gives errors in
> \starttabel[mytemplate] ).
This is what the documentation in core-tab says:
%D \starttypen
%D \definetabletemplate[test][|||]
%D
%D \starttabel[test]
%D \VL test \VL test \VL\AR
%D \VL test \VL test \VL\AR
%D \VL test \VL test \VL\AR
%D \stoptabel
%D \stoptypen
> In the sources I saw the \definetabletemplate. This works for setting up
> your column definitions. I also like to add customer headers.
Right. What are customer headings?
> Also my tables don't seem to split. I use \starttabellen. Are there some
> rules? Like minimum of rows, or something else?
In what way?
\startbuffer
\starttabelkop
\HL
\NC \bf Parameter \NC \bf Beschikbaar als commando \NC\SR
\HL
\stoptabelkop
\starttabelstaart
\HL
\stoptabelstaart
\starttabellen[|l|l|]
\NC bovenafstand \NC \type{\bovenafstand} \NC\FR
\NC bovenhoogte \NC \type{\bovenhoogte} \NC\MR
\NC hoofdafstand \NC \type{\hoofdafstand} \NC\MR
\NC hoofdhoogte \NC \type{\hoofdhoogte} \NC\MR
\NC kopniveau \NC \type{\kopniveau} \NC\MR
\NC kopwit \NC \type{\kopwit} \NC\MR
\NC rugwit \NC \type{\rugwit} \NC\MR
\NC margeafstand \NC \type{\margeafstand} \NC\MR
\NC margebreedte \NC \type{\margebreedte} \NC\MR
\NC linkermargebreedte \NC \type{\linkermargebreedte} \NC\MR
\NC rechtermargebreedte \NC \type{\rechtermargebreedte} \NC\MR
\NC randafstand \NC \type{\randafstand} \NC\MR
\NC randbreedte \NC \type{\randbreedte} \NC\MR
\NC linkerrandbreedte \NC \type{\linkerrandbreedte} \NC\MR
\NC rechterrandbreedte \NC \type{\rechterrandbreedte} \NC\MR
\NC papierbreedte \NC \type{\papierbreedte} \NC\MR
\NC papierhoogte \NC \type{\papierhoogte} \NC\MR
\NC zetbreedte \NC \type{\zetbreedte} \NC\MR
\NC zethoogte \NC \type{\zethoogte} \NC\MR
\NC tekstbreedte \NC \type{\tekstbreedte} \NC\MR
\NC teksthoogte \NC \type{\teksthoogte} \NC\MR
\NC voetafstand \NC \type{\voetafstand} \NC\MR
\NC voethoogte \NC \type{\voethoogte} \NC\MR
\NC onderhoogte \NC \type{\onderhoogte} \NC\MR
\NC onderafstand \NC \type{\onderafstand} \NC\LR
\stoptabellen
\stopbuffer
\splitsplaatsblok[regels=1]
{\plaatstabel
[hier][tab:parameters]
{Parameters voor pagina layout.}}
{\haalbuffer}
This should work. Can you collect 'failing tables', so I can optimize
the mechanism? When I have enough failing examples I'll look at it
(these are the least easy things to implement in TeX)
The example is from the beginners manual (see latest maps). Suffixes are
automatically added. (\splitfloat, \teilegleitobjekt) Also look at the
buffer mechanism ([name] is optional). Keeps your sources clean!
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tables: templates en page splitting
@ 1998-07-07 7:19 Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 1998-07-07 7:19 UTC (permalink / raw)
Cc: NTG-CONTEXT
Berend de Boer wrote:
> \definetabletemplate[|l|l|]{\HR \NC First col \NC next col \AR \HR}
>
> (typed by head, but you get the idea).
Ok. For that you need (dutch:)
\starttabelkop
\HL ..... \HL
\stoptabelkop
There is also a tail (staart). I suppose you want to do this 'by name'?
> but have \starttabellen without \plaatstabel. Do I need it? I want my
> tables straight below a figure (they should go on one page, but the table
> may split to the next page).
Ok. The figure is the problem. I'm in the middle of something else, so I
cannot experiment too much. Can you try this: put \doflushfloats
directly before the \starttabellen. A quick look at the source showed me
that I didn't take this into account.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* tables: templates en page splitting
@ 1998-07-03 18:34 Berend de Boer
0 siblings, 0 replies; 3+ messages in thread
From: Berend de Boer @ 1998-07-03 18:34 UTC (permalink / raw)
Hai All,
How can I setup table templates with table headers?
The manual is inaccurate in this respect (it says you can do a
\def\mytemplate{\starttable[]}, but this gives errors in
\starttabel[mytemplate] ).
In the sources I saw the \definetabletemplate. This works for setting up
your column definitions. I also like to add customer headers.
Also my tables don't seem to split. I use \starttabellen. Are there some
rules? Like minimum of rows, or something else?
Groetjes,
Berend.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-07-07 7:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-05 13:24 tables: templates en page splitting Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
1998-07-07 7:19 Hans Hagen
1998-07-03 18:34 Berend de Boer
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).