[NTG-context] serial letters

Henning Hraban Ramm texml at fiee.net
Wed Apr 10 09:08:50 CEST 2019


Am 2019-04-09 um 21:38 schrieb Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:

> Henning Hraban Ramm schrieb am 08.04.2019 um 15:26:
>> How would you approach serial letters, e.g. to all members of a club?
>> (Actually I need to send out donation receipts.)
>> 
>> I’d like to use the letter module, since my usual letter design is using it.
>> 
>> I can export the addresses to CSV, JSON, Lua tables or whatever or transfer them to a SQLite db.
>> Would it make more sense to read them in Lua and combine this data with a buffer, or to write a single tex file for every letter?
>> I know how to do the latter, but I’d like to learn a more ConTeXt-ish way.
>> Would it make sense to use the bibliographies module?
> 
> You can use the letter module when you drop the normal letter-environment which is to limited in this case because it uses the buffer mechanism to store the content.
> 
> To have more control over the content for the opening etc. you can switch to the setups alternative (even the content can be set in this way instead of the default buffer) and set all texts with a setups-block.
> 
> The letter itself can be flushed with the \placeletter command, below is a simple example where I flush the letter after each variables setting but you should be able to do the same with a lua table or csv file.

Thank you very much! I’ll try to come up with a solution (and document it).

Grüßlinge, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list