From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3649 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: own lists in table Date: Fri, 22 Dec 2000 08:30:30 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001222083030.0153dd80@pop.wxs.nl> References: <20001221203455.A17557@lsc.hu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394374 18945 80.91.224.250 (23 Oct 2002 17:32:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:32:54 +0000 (UTC) Cc: ConTeXt list Original-To: Balazs Nagy In-Reply-To: <20001221203455.A17557@lsc.hu> Xref: main.gmane.org gmane.comp.tex.context:3649 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3649 At 08:34 PM 12/21/00 +0100, Balazs Nagy wrote: >Hi, > >I'd like to create a list in the format > >\subsubsubsection{List of } > >\head\KF{}{}{} > > > >\head\KF... > >then put into a table like > >\bTR\bTD \eTD\bTD \eTD\bTD \eTD\bTD \eTD\eTR > >I made a macro called \KF which prints the list, but I don't know how can I >reuse the data in other format. You cannot use existing mechanisms due to grouping. Try something \def\ToMyList#1#2#3#4% {\immediate\write\MyList{\noexpand\processmylist{#1}{#2}{#3}{#4}}} \newwrite\MyList \immediate\openout \MyList=list.xxx \starttext \ToMyList{a}{b}{c}{d} \ToMyList{a}{b}{c}{d} \ToMyList{a}{b}{c}{d} \immediate\closeout\MyList \def\processmylist#1#2#3#4% {\bTR\bTD#1\eTD\bTD#2\eTD\bTD#3\eTD\bTD#4\eTD\eTR} \bTABLE \bTR\bTD1\eTD\bTD2\eTD\bTD3\eTD\bTD4\eTD\eTR \readfile{list.xxx}{}{} \eTABLE \def\processmylist#1#2#3#4% {\hbox{[#1][#2][#3][#4]}\par} \readfile{list.xxx}{}{} \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 -------------------------------------------------------------------------