* TeXlive 2012 and letter module
@ 2012-07-28 17:53 Martin 'golodhrim' Scholz
2012-07-29 10:39 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Martin 'golodhrim' Scholz @ 2012-07-28 17:53 UTC (permalink / raw)
To: ntg-context
Hi followers of ConTeXt,
does something in the lettermodule in the texlive version and the
minimal version of ConTeXt has changed, as both no longer recognize the
\useletterextension[addrentry,label]
\useaddressfile[addrfile]
lines and complain about an unknown command, if yes, what would be the
way to fix this, or is this functionallity finally droped?
Greetings
Martin 'golodhrim' Scholz
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TeXlive 2012 and letter module
2012-07-28 17:53 TeXlive 2012 and letter module Martin 'golodhrim' Scholz
@ 2012-07-29 10:39 ` Wolfgang Schuster
2012-07-29 11:10 ` Martin Scholz
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2012-07-29 10:39 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Martin 'golodhrim' Scholz
Am 28.07.2012 um 19:53 schrieb Martin 'golodhrim' Scholz <scholz.m82@googlemail.com>:
> Hi followers of ConTeXt,
>
> does something in the lettermodule in the texlive version and the
> minimal version of ConTeXt has changed, as both no longer recognize the
>
> \useletterextension[addrentry,label]
> \useaddressfile[addrfile]
>
> lines and complain about an unknown command, if yes, what would be the
> way to fix this, or is this functionallity finally droped?
I haven’t added this function to the new version because I don’t need it.
When you really need it I can add it but context itself has a similar function with the \setvariables and \getvariable which takes only a few more lines than \addressentry does.
Below you can see how the example from the KOMA-Script manuals looks with \setvariables (you’re free to use different keys) but it’s no problem to write a simple \addressentry wrapper around this and provide it with the letter module when you want to share your data with LaTeX.
<example source="scrguide.pdf">
\usemodule[letter]
\setvariables
[addressentry:frodo]
[lastname={Beutlin},
firstname={Frodo},
address={Der Bühl\\ Beutelsend/Hobbingen im Auenland},
1={Bilbo Beutlin},
2={Rauchen von Pfeifenkraut},
3={der Ringträger},
4={Bilbos Erbe}]
\setvariables
[addressentry:sam]
[lastname={Gamdschie},
firstname={Samweis},
address={Beutelhaldenweg 3\\Hobbingen im Auenland},
1={Rosie Kattun},
2={Knullen},
3={des Ringträgers treuester Gefährte}]
\setvariables
[addressentry:tom]
[lastname={Bombadil},
firstname={Tom},
address={Im Alten Wald},
1={Goldbeere},
2={trällern von Nonsensliedern},
3={Meister von Wald, Wasser und Berg}]
\startletter
[toname={\getvariable{addressentry:tom}{firstname}~\getvariable{addressentry:tom}{lastname}},
toaddress={\getvariable{addressentry:tom}{address}},
opening={Lieber \getvariable{addressentry:tom}{firstname} \getvariable{addressentry:tom}{lastname},},
closing={„O Frühling und Sommerzeit und danach wieder Frühling!\\O Wind auf dem Wasserfall und Lachen des Laubes!“}]
oder \getvariable{addressentry:tom}{3}, wie Dich Deine geliebte \getvariable{addressentry:tom}{1} nennt. Kannst Du Dich noch an einen Herrn \getvariable{addressentry:frodo}{lastname}, genauer gesagt \getvariable{addressentry:frodo}{firstname}~\getvariable{addressentry:frodo}{lastname}, denn es gab ja auch noch den Herrn \getvariable{addressentry:frodo}{1}, erinnern. Er war \getvariable{addressentry:frodo}{3} im dritten Zeitalter und \getvariable{addressentry:frodo}{3}. Begleitet wurde er von \getvariable{addressentry:sam}{firstname}~\getvariable{addressentry:sam}{lastname}, \getvariable{addressentry:sam}{3}.
Beider Vorlieben waren sehr weltlich. Der \getvariable{addressentry:frodo}{firstname} genoss das \getvariable{addressentry:frodo}{2}, sein Gefährte schätzte eine gute Mahlzeit mit \getvariable{addressentry:sam}{2}.
Weißt du noch? Mithrandir hat Dir bestimmt viel von ihnen erzählt.
\stopletter
</example>
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TeXlive 2012 and letter module
2012-07-29 10:39 ` Wolfgang Schuster
@ 2012-07-29 11:10 ` Martin Scholz
2012-09-22 14:57 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Martin Scholz @ 2012-07-29 11:10 UTC (permalink / raw)
To: Wolfgang Schuster
Cc: mailing list for ConTeXt users, Martin 'golodhrim' Scholz
[-- Attachment #1.1: Type: text/plain, Size: 3880 bytes --]
Thx Wolfgang,
this makes sense, as I still had your old examples online and build my
letters after that I was just wondering if I did something wrong or missed
something in using it, but that way it is more flexible and with an
/input{addrfile}
in the below way one should also be able to still use a kind of the old way
having a separated addressfile but with a more flexible layout.
Again million thx for clearing it
Greetings
Martin 'golodhrim' Scholz
On Sun, Jul 29, 2012 at 12:39 PM, Wolfgang Schuster <
wolfgang.schuster@gmail.com> wrote:
>
> Am 28.07.2012 um 19:53 schrieb Martin 'golodhrim' Scholz <
> scholz.m82@googlemail.com>:
>
> > Hi followers of ConTeXt,
> >
> > does something in the lettermodule in the texlive version and the
> > minimal version of ConTeXt has changed, as both no longer recognize the
> >
> > \useletterextension[addrentry,label]
> > \useaddressfile[addrfile]
> >
> > lines and complain about an unknown command, if yes, what would be the
> > way to fix this, or is this functionallity finally droped?
>
> I haven’t added this function to the new version because I don’t need it.
>
> When you really need it I can add it but context itself has a similar
> function with the \setvariables and \getvariable which takes only a few
> more lines than \addressentry does.
>
> Below you can see how the example from the KOMA-Script manuals looks with
> \setvariables (you’re free to use different keys) but it’s no problem to
> write a simple \addressentry wrapper around this and provide it with the
> letter module when you want to share your data with LaTeX.
>
> <example source="scrguide.pdf">
> \usemodule[letter]
>
> \setvariables
> [addressentry:frodo]
> [lastname={Beutlin},
> firstname={Frodo},
> address={Der Bühl\\ Beutelsend/Hobbingen im Auenland},
> 1={Bilbo Beutlin},
> 2={Rauchen von Pfeifenkraut},
> 3={der Ringträger},
> 4={Bilbos Erbe}]
>
> \setvariables
> [addressentry:sam]
> [lastname={Gamdschie},
> firstname={Samweis},
> address={Beutelhaldenweg 3\\Hobbingen im Auenland},
> 1={Rosie Kattun},
> 2={Knullen},
> 3={des Ringträgers treuester Gefährte}]
>
> \setvariables
> [addressentry:tom]
> [lastname={Bombadil},
> firstname={Tom},
> address={Im Alten Wald},
> 1={Goldbeere},
> 2={trällern von Nonsensliedern},
> 3={Meister von Wald, Wasser und Berg}]
>
> \startletter
>
> [toname={\getvariable{addressentry:tom}{firstname}~\getvariable{addressentry:tom}{lastname}},
> toaddress={\getvariable{addressentry:tom}{address}},
> opening={Lieber \getvariable{addressentry:tom}{firstname}
> \getvariable{addressentry:tom}{lastname},},
> closing={„O Frühling und Sommerzeit und danach wieder Frühling!\\O Wind
> auf dem Wasserfall und Lachen des Laubes!“}]
>
> oder \getvariable{addressentry:tom}{3}, wie Dich Deine geliebte
> \getvariable{addressentry:tom}{1} nennt. Kannst Du Dich noch an einen Herrn
> \getvariable{addressentry:frodo}{lastname}, genauer gesagt
> \getvariable{addressentry:frodo}{firstname}~\getvariable{addressentry:frodo}{lastname},
> denn es gab ja auch noch den Herrn \getvariable{addressentry:frodo}{1},
> erinnern. Er war \getvariable{addressentry:frodo}{3} im dritten Zeitalter
> und \getvariable{addressentry:frodo}{3}. Begleitet wurde er von
> \getvariable{addressentry:sam}{firstname}~\getvariable{addressentry:sam}{lastname},
> \getvariable{addressentry:sam}{3}.
>
> Beider Vorlieben waren sehr weltlich. Der
> \getvariable{addressentry:frodo}{firstname} genoss das
> \getvariable{addressentry:frodo}{2}, sein Gefährte schätzte eine gute
> Mahlzeit mit \getvariable{addressentry:sam}{2}.
>
> Weißt du noch? Mithrandir hat Dir bestimmt viel von ihnen erzählt.
>
> \stopletter
> </example>
>
> Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 4574 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: TeXlive 2012 and letter module
2012-07-29 11:10 ` Martin Scholz
@ 2012-09-22 14:57 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-09-22 14:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Martin 'golodhrim' Scholz
Am 29.07.2012 um 13:10 schrieb Martin Scholz <scholz.m82@gmail.com>:
> Thx Wolfgang,
>
> this makes sense, as I still had your old examples online and build my letters after that I was just wondering if I did something wrong or missed something in using it, but that way it is more flexible and with an
>
> /input{addrfile}
>
> in the below way one should also be able to still use a kind of the old way having a separated addressfile but with a more flexible layout.
>
> Again million thx for clearing it
The new version of the module has now a built in system for address entries, named “addressentry”.
With the command \defineaddressentry you can create a new entry and with the command \addressentry you can access them. Instead of specifying each entry by name you can also set a default name with the addressentry key for \startletter/\setupletter which is now used when omit the first argument of \addressentry.
\usemodule[letter]
\setupletteroptions
[ bodyfont=calluna,
whitespace=line]
\defineaddressentry
[frodo]
[lastname={Beutlin},
firstname={Frodo},
address={Der Bühl\\Beutelsend/Hobbingen im Auenland},
1={Bilbo Beutlin},
2={Rauchen von Pfeifenkraut},
3={der Ringträger},
4={Bilbos Erbe}]
\defineaddressentry
[sam]
[lastname={Gamdschie},
firstname={Samweis},
address={Beutelhaldenweg 3\\Hobbingen im Auenland},
1={Rosie Kattun},
2={Knullen},
3={des Ringträgers treuester Gefährte}]
\defineaddressentry
[tom]
[lastname={Bombadil},
firstname={Tom},
address={Im Alten Wald},
1={Goldbeere},
2={trällern von Nonsensliedern},
3={Meister von Wald, Wasser und Berg}]
\setupaddressentry
[name={\addressentry[firstname]~\addressentry[lastname]}]
\startletter
[addressentry=tom,
toname={\addressentry[name]},
toaddress={\addressentry[address]},
opening={Lieber \addressentry[name],},
closing={„O Frühling und Sommerzeit und danach wieder Frühling!\\O Wind auf dem Wasserfall und Lachen des Laubes!“}]
oder \addressentry[tom][3], wie Dich Deine geliebte \addressentry[tom][1] nennt. Kannst Du Dich noch an einen Herrn \addressentry[frodo][lastname], genauer gesagt \addressentry[frodo][firstname]~\addressentry[frodo][lastname], denn es gab ja auch noch den Herrn \addressentry[frodo][1], erinnern. Er war \addressentry[frodo][3] im dritten Zeitalter und \addressentry[frodo][3]. Begleitet wurde er von \addressentry[sam][firstname]~\addressentry[sam][lastname], \addressentry[sam][3].
Beider Vorlieben waren sehr weltlich. Der \addressentry[frodo][firstname] genoss das \addressentry[frodo][2], sein Gefährte schätzte eine gute Mahlzeit mit \addressentry[sam][2].
Weißt du noch? Mithrandir hat Dir bestimmt viel von ihnen erzählt.
\stopletter
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-22 14:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-28 17:53 TeXlive 2012 and letter module Martin 'golodhrim' Scholz
2012-07-29 10:39 ` Wolfgang Schuster
2012-07-29 11:10 ` Martin Scholz
2012-09-22 14:57 ` Wolfgang Schuster
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).