From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9120 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Textmerg and Context Date: Sat, 31 Aug 2002 12:13:05 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020831120953.03516cf0@remote-1> References: <200208301822.32770.john@wexfordpress.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399473 790 80.91.224.250 (23 Oct 2002 18:57:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:57:53 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: John Culleton In-Reply-To: <200208301822.32770.john@wexfordpress.com> Xref: main.gmane.org gmane.comp.tex.context:9120 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9120 At 06:22 PM 8/30/2002 -0400, John Culleton wrote: >I am working with the textmerg macro (in plain tex mode) which is used >to send form letters to a mailing list. I added a letterhead routine >pirated from the letterformat macro in the TeXBook. > >Just for fun I ran my plain tex source through texexec without change. >The following interesting things occurred. > >1. The bloody thing worked, without any Context specific code at all. >2. It didn't understand \nopagenumbers (and complained about it), >hence a page number appears at the top of each page. \ifx\nopagenumbers\undefined \def\nopagenumbers{\setuppagenumbering[state=stop]} \fi >3. A horizontal line, part of the letterhead, wrapped around about >1/8 inch. \setuplayout ... >4. The date routine (taken from letterformat. tex) got the day and the >year right but gave me January instead of August for the month. then just hook it into \currentdate (nb: \normalday \normalyear \normalmonth are also aviable) >5. \parskip=\baselineskip didn't work for some reason. (They are >both TeX primitives so it should work :-| ) well, not if they are redefined, like \def\parskip{\toks0=} just say: \setupwhitespace[line] >6. The default typeface is a bit bigger. \setupbodyfont[10pt] == plain tex >Obviously this is abuse, not use, of Context. but it demonstrated that >functioning plain tex code will run through the system and produce >output, however imperfect. Since a mail merge might be useful to the >Context world as well I will debug this horror and make it function >properly. Hans ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------