Re: [NTG-context] letter module, backaddress placement
> Actually it was not the gap that bothered me. You are right, DIN 676 B says > 45mm. But this seems to be useless as all window envelopes (that I possess) > have their window at 50mm. It defeats the purpose of the backaddress field, > which is hidden by the DIN layout. Shouldn't they be able to read it in the > Post office in case the addressee is wrong? i measured one envelope DIN Lang +Top | | | 50mm | | + | | 45mm Window | + | | 15mm | +Bottom That fits perfect with Koma scrltr2. I have not (yet) tried it in Context, but i will soon. Perhaps we fold the paper different? kind regards, -- Jonas Stein ___ 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 ___
Re: [NTG-context] letter module, backaddress placement
On Oct 28, 2010, at 21:11 , Wolfgang Schuster wrote: > > Am 28.10.2010 um 19:04 schrieb Florian Wobbe: > >> Dear Wolfgang, >> >> the default vertical placement of the backaddress is to high in dinb.nls. > > The position of the backaddress os correct but i think you don’t like the > large gap between the backaddress and the address. The gap is there because > it’s specified in the german din layout where the address field has nine > lines with the first three lines reserved for dispatch information, a easy > way to get rid of this space is to disable the dispatch field with > > \setupletterstyle[dispatch=no] Nice to know! Actually it was not the gap that bothered me. You are right, DIN 676 B says 45mm. But this seems to be useless as all window envelopes (that I possess) have their window at 50mm. It defeats the purpose of the backaddress field, which is hidden by the DIN layout. Shouldn't they be able to read it in the Post office in case the addressee is wrong? Puzzled, Florian ___ 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 ___
Re: [NTG-context] letter module, backaddress placement
Am 28.10.2010 um 19:04 schrieb Florian Wobbe: > Dear Wolfgang, > > the default vertical placement of the backaddress is to high in dinb.nls. The position of the backaddress os correct but i think you don’t like the large gap between the backaddress and the address. The gap is there because it’s specified in the german din layout where the address field has nine lines with the first three lines reserved for dispatch information, a easy way to get rid of this space is to disable the dispatch field with \setupletterstyle[dispatch=no] 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 ___
[NTG-context] letter module, backaddress placement
Dear Wolfgang, the default vertical placement of the backaddress is to high in dinb.nls. When I change the offset from \c!voffset=\dimexpr\letterstylevalue{\v!address\v!layer}\c!voffset-\letterstylevalue{\v!backaddress\v!frame}\c!height\relax] to \c!voffset=\dimexpr\letterstylevalue{\v!address\v!layer}\c!voffset+\letterstylevalue{\v!backaddress\v!frame}\c!height\relax] (addition instead of subtraction) everything is fine. Best wishes, Florian ___ 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 ___
Re: [NTG-context] Letter Module: backaddress
Hello Wolfgang, thanks again! Greetings, Andreas Am 10.10.2009 um 09:13 schrieb Wolfgang Schuster: Am 09.10.2009 um 10:11 schrieb Andreas Harder: Now one have to care of the width (I think there is no maxwidth- option for frame setups?), so I tried to set the backgroundaddress- style to style={\ifdim\framedwidth<85mm \tfx \else \tfxx \fi}. But the problem is, that \framedwidth measures with the default font size … Or do you know a solution? ;) \usemodule[letter] \setupletterstyle[backaddress=yes] \defineletterelement[backaddress][size] {\setbox\scratchbox\hbox{\tfx\letterelement[backaddress][yes]}% \ifdim\wd\scratchbox<\framedwidth \framed[frame=off,bottomframe=on,width=fit]{\tfx\letterelement [backaddress][yes]}% \else \framed[frame=off,bottomframe=on,width=fit]{\tfxx\letterelement [backaddress][yes]}% \fi} \setupletterstyle[backaddress][alternative=size] \setupletter [fromname={Max Mustermann}, fromaddress={Musterstr. 12\\123456 Musterstadt}] \setupletter [toname={Empfänger}, toaddress={Postfach 123456\\60498 Frankfurt am Main}] \starttext \startletter [opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Grüßen}] \input tufte \stopletter \setupletter [fromname={Klaus}] \startletter [opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Grüßen}] \input tufte \stopletter \stoptext 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 ___ ___ 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 ___
Re: [NTG-context] Letter Module: backaddress
Am 09.10.2009 um 10:11 schrieb Andreas Harder: Now one have to care of the width (I think there is no maxwidth- option for frame setups?), so I tried to set the backgroundaddress- style to style={\ifdim\framedwidth<85mm \tfx \else \tfxx \fi}. But the problem is, that \framedwidth measures with the default font size … Or do you know a solution? ;) \usemodule[letter] \setupletterstyle[backaddress=yes] \defineletterelement[backaddress][size] {\setbox\scratchbox\hbox{\tfx\letterelement[backaddress][yes]}% \ifdim\wd\scratchbox<\framedwidth \framed[frame=off,bottomframe=on,width=fit]{\tfx\letterelement [backaddress][yes]}% \else \framed[frame=off,bottomframe=on,width=fit]{\tfxx\letterelement [backaddress][yes]}% \fi} \setupletterstyle[backaddress][alternative=size] \setupletter [fromname={Max Mustermann}, fromaddress={Musterstr. 12\\123456 Musterstadt}] \setupletter [toname={Empfänger}, toaddress={Postfach 123456\\60498 Frankfurt am Main}] \starttext \startletter [opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Grüßen}] \input tufte \stopletter \setupletter [fromname={Klaus}] \startletter [opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Grüßen}] \input tufte \stopletter \stoptext 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 ___
Re: [NTG-context] Letter Module: backaddress
Am 09.10.2009 um 10:11 schrieb Andreas Harder: When I think about the default setup this would make more sense: \setupletterstyle[backaddress=no] \setupletterstyle[backaddress][alternative=auto] WHat do you think? I think it would be more intuitive that way. I will change this then in the next release, you could then enable the backaddress with \setupletterstyle[backaddres=yes] One more question: it would be nice if the rule under the back- address would have the same length an the back-addres. Is there a convenient way? I tried something with \textbackgrounds (example below) but without success. \setupletterstyle [backaddress] [frame] [width=fit] Thank you! I tried to set width=fit, but without the frame-option … Now one have to care of the width (I think there is no maxwidth- option for frame setups?), autowidth=force so I tried to set the backgroundaddress-style to style={\ifdim \framedwidth<85mm \tfx \else \tfxx \fi}. But the problem is, that \framedwidth measures with the default font size … Or do you know a solution? ;) Let me think about this (no time at the moment). 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 ___
Re: [NTG-context] Letter Module: backaddress
Am 09.10.2009 um 06:45 schrieb Wolfgang Schuster: When I think about the default setup this would make more sense: \setupletterstyle[backaddress=no] \setupletterstyle[backaddress][alternative=auto] WHat do you think? I think it would be more intuitive that way. One more question: it would be nice if the rule under the back- address would have the same length an the back-addres. Is there a convenient way? I tried something with \textbackgrounds (example below) but without success. \setupletterstyle [backaddress] [frame] [width=fit] Thank you! I tried to set width=fit, but without the frame-option … Now one have to care of the width (I think there is no maxwidth-option for frame setups?), so I tried to set the backgroundaddress-style to style={\ifdim\framedwidth<85mm \tfx \else \tfxx \fi}. But the problem is, that \framedwidth measures with the default font size … Or do you know a solution? ;) Bit by bit I get an idea of how to customize the letter-module settings. Andreas___ 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 ___
Re: [NTG-context] Letter Module: backaddress
Am 09.10.2009 um 01:24 schrieb Andreas Harder: Hello Wolfgang, thank you for your explanations! When I think about the default setup this would make more sense: \setupletterstyle[backaddress=no] \setupletterstyle[backaddress][alternative=auto] WHat do you think? One more question: it would be nice if the rule under the back- address would have the same length an the back-addres. Is there a convenient way? I tried something with \textbackgrounds (example below) but without success. \setupletterstyle [backaddress] [frame] [width=fit] 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 ___
Re: [NTG-context] Letter Module: backaddress
Hello Wolfgang, thank you for your explanations! One more question: it would be nice if the rule under the back-address would have the same length an the back-addres. Is there a convenient way? I tried something with \textbackgrounds (example below) but without success. % from the wiki: \startuseMPgraphic{underline} \iftracepositions show_multi_pars \else draw_multi_pars \fi ; path p ; p := boundingbox currentpicture ; currentpicture := currentpicture shifted (0,-StrutDepth/3) ; setbounds currentpicture to p ; \stopuseMPgraphic \definetextbackground [underline] [location=text,alternative=1,background=underline,frame=off] \setupletterstyle [backaddress] [alternative=yes, before={\starttextbackground[underline]}, after=\stoptextbackground] Andreas ___ 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 ___
Re: [NTG-context] Letter Module: backaddress
Am 08.10.2009 um 16:01 schrieb Andreas Harder: Hi, now that the foldmarks work … how to set the backaddress? Another thing to document, I already forgot who it works. \setupletterstyle [option] [backaddress=yes] This setting is not necessary because most elements are enable by default, you could also drop the first bracket pair for global parameters. \setupletterstyle [backaddress] [bottomframe=on] \setupletterstyle [backaddress] [alternative=yes, % default: no bottomframe=on] For alternative you can select between: - no : no content for the backaddress - yes : use 'fromname' and 'fromaddress' - auto : check if there is text in the 'backaddress' key, if not then use 'fromname' and 'fromaddress' The separator between each element in the backaddress can be changed with \setupletterstyle [backaddress] [separator=...] the default value is ', ' (comma + space). 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 ___
[NTG-context] Letter Module: backaddress
Hi, now that the foldmarks work … how to set the backaddress? \usemodule[letter] \setupletterstyle [option] [backaddress=yes] \setupletterstyle [backaddress] [bottomframe=on] \setupletter [fromname={Max Mustermann}, fromaddress={Musterstr. 12\\123456 Musterstadt}] \setupletter [toname={Empfänger}, toaddress={Postfach 123456\\60498 Frankfurt am Main}] \starttext \startletter [opening={Sehr geehrte Damen und Herren,}, closing={Mit freundlichen Grüßen}] \input tufte \stopletter \stoptext Regards, Andreas ___ 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 ___