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: different first page for multiple letters in one file
Am 10.10.2009 um 01:48 schrieb Michael Green: I have one file containing several letters that I process using Wolfgang's letter module. I have a special background for the first page of a letter. I define and set three layers: PCLogo, PCDept, and PCAddress. Here is a representative example: \definelayer [PCLogo] [width=\paperwidth, height=\paperheight, preset=lefttop, y=20pt, state=start] Then I make these layers backgrounds like so: \setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}] The result I *get* is that the first letter in the file gets the background on its first page as normal. But the subsequent letters do not. Their first pages are plain. The result I *want* is for each letter to have the background on its first page, like the first letter in the file gets. It's the normal behavior of layers to forget their content after the first usage but there are mechanism to store it and reuse the saved settings multiple times. \usemodule[letter] \definelayer[PC][width=\paperwidth,height=\paperheight] \startsetups PC \setlayer[PC][y=20pt]{...} \setlayer[PC][x=..,y=..]{...} \stopsetups \setupletterstyle[lettermain][setups=PC,background=PC] ... % more settings \starttext \startletter ... \stopletter ... % more letters \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] Is it possible to put references format depending of mainlanguage? and other things
Hi, Xan wrote: >>/ For the small bits of text inside the reference list, you have to create />>/ a copy of the relevant bibl-xxx file with the two-letter language code />>/ attached to the name, edit that file to your liking, then do: />>/ />>/\setuppublications[alternative=apa-ca] % for example. />>/ />/ I refer to that. For not having apa-ca, apa-es, apa-fr, etc I think you />/ could rewrite bib module for having localization in automatic way. If />/ \mainlanguage = es, then number = "número" or something similar in TeX />/ way Sorry but I don't know TeX so much for doing that in my own. But I />/ think it's simply for you ;-) / There are two reasons why this is not done (yet?): 1. The microtypography of such textual labels is not the same in all languages/countries: at least some require a change in the actual ordering (prefix vs. postfix labels) 2. (and this is more important) Laziness from me. Not a good reason, I know, but that's how it is. This is a BAD new. I think it's important. It could be marked the difference (in the bibliographyc world) about ConTeXt and other systems. Unfortonately I have not enough knowledge for doing that so I depend of you ;-) Please, reconsider it. I think it will be a day of work for you (at least with preliminary version - not right-to-left languages). In a long time, please put in your todo list the implementation of babelbib [http://texcatalogue.sarovar.org/entries/babelbib.html] in ConTeXt Thanks a lot, Xan. Best wishes, Taco ___ 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: different first page for multiple letters in one file
On Oct 10, 2009, at 3:00 AM, Wolfgang Schuster wrote: Am 10.10.2009 um 01:48 schrieb Michael Green: I have one file containing several letters that I process using Wolfgang's letter module. I have a special background for the first page of a letter. I define and set three layers: PCLogo, PCDept, and PCAddress. Here is a representative example: \definelayer [PCLogo] [width=\paperwidth, height=\paperheight, preset=lefttop, y=20pt, state=start] Then I make these layers backgrounds like so: \setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}] The result I *get* is that the first letter in the file gets the background on its first page as normal. But the subsequent letters do not. Their first pages are plain. The result I *want* is for each letter to have the background on its first page, like the first letter in the file gets. How can I achieve that? Are your graphics for stationary or logos and headers etc. Wolfgang I'm trying to emulate my college's stationery. The layers I made include one graphic and two boxes of text. We use the graphic and two text boxes on the first page of a letter. The other pages use plain sheets of paper. You also showed me how to get the effect I want in a separate message. This solution worked perfectly. Thank you very much! The solution: \usemodule[letter] \definelayer[PC][width=\paperwidth,height=\paperheight] \startsetups PC \setlayer[PC][y=20pt]{...} \setlayer[PC][x=..,y=..]{...} \stopsetups \setupletterstyle[lettermain][setups=PC,background=PC] ... % more settings \starttext \startletter ... \stopletter ... % more letters \stoptext As I understand it, \setupletterstyle[lettermain][setups=PC,…] means that those setups are repeated with every letter. Hence, the desired effect. Thanks again! Michael___ 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] \completecontent does not show preface chapter
Hi, I put \completecontent just after preface chapter and nothing is listed. How can I get it? You could see all the code in this repo: http://github.com/somenxavi/latex-vs-context/blob/master/versus.context Thanks in advance, Xan. ___ 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] \completecontent does not show preface chapter
Am 10.10.2009 um 18:35 schrieb Xan: Hi, I put \completecontent just after preface chapter and nothing is listed. How can I get it? \completecontent[criterium=previous] 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] \itemize[continue] problem
Hello list, The following example from manual works fine with mk II but fails with mkIV in recent minimals \starttext \startitemize[1,packed] \head supported image formats in \PDFTEX \par \startitemize[a] \item png \item eps \item pdf \stopitemize \head non supported image formats in \PDFTEX \par \startitemize[continue] \item jpg \item gif \item tif \stopitemize \stopitemize \stoptext Piotr -- http://okle.pl ___ 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 ___