From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Textmerg and Context
Date: Sat, 31 Aug 2002 12:13:05 +0200 [thread overview]
Message-ID: <5.1.0.14.1.20020831120953.03516cf0@remote-1> (raw)
In-Reply-To: <200208301822.32770.john@wexfordpress.com>
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
-------------------------------------------------------------------------
prev parent reply other threads:[~2002-08-31 10:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-30 22:22 John Culleton
2002-08-31 10:13 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.1.20020831120953.03516cf0@remote-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).