![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 28.07.2012 um 19:53 schrieb Martin 'golodhrim' Scholz
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