From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: tables: templates en page splitting Date: Sun, 05 Jul 1998 15:24:32 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <359F7E90.24F1B9B1@wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035390913 20718 80.91.224.250 (23 Oct 2002 16:35:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:35:13 +0000 (UTC) Cc: "'ntg-context@ntg.nl'" Original-To: Berend de Boer Xref: main.gmane.org gmane.comp.tex.context:54 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:54 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 -----------------------------------------------------------------