[NTG-context] Module t-letter: Headers, Footers And Back Address
Hello everyone, an issue arised while writing a letter with the third party module t-letter (http://modules.contextgarden.net/letter). I've read the official documentation (Correspondence with ConTeXt) but I found no solution to: a) Setup a header/footer for the first page and configure a different one for the following pages. Page 46 of the documentation describes the setup of the specific (letter) layers. With the state parameter it's possible to enable (= start), disable (= stop) the header or start it on the second page and the following (= next), but if I configure the header for the first page with \setupletterstyle[head] [ state=start, alternative=left, fromrule=top, ] and then for the following pages \setupletterstyle[head] [ state=next, ... ] only the second setup is typeset. From this it follows that the first setup is just overwritten. The header on the first page should only contain a name and than a thin line (a \hairline similar to the built-in variable fromrule). The header on the following pages should contain variable things and than also a thin line. Unfortunately I found no possibility to get this done. b) I would like to define a back address which should be typeset above the addressee. Page 44 of the documentation illustrates amongst other layers the back address layer, but there is no way to activate and configure this layer. I've tried it with \setupletter[backaddress][...] and \setuplayer[backaddress][...]. Maybe someone have a tip. Thank you and have a nice week. Benedikt ps: A small (commented) letter template is attached below (as tex file). letter.tex Description: TeX document ___ 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] Module t-letter: Headers, Footers And Back Address
Am 03.09.2010 um 02:13 schrieb benedikt k: Hello everyone, an issue arised while writing a letter with the third party module t-letter (http://modules.contextgarden.net/letter). I've read the official documentation (Correspondence with ConTeXt) but I found no solution to: a) Setup a header/footer for the first page and configure a different one for the following pages. Page 46 of the documentation describes the setup of the specific (letter) layers. With the state parameter it's possible to enable (= start), disable (= stop) the header or start it on the second page and the following (= next), but if I configure the header for the first page with \setupletterstyle[head] [ state=start, alternative=left, fromrule=top, ] and then for the following pages \setupletterstyle[head] [ state=next, ... ] only the second setup is typeset. From this it follows that the first setup is just overwritten. This is the usual behavior of all setup commands in context, later settings overwrite earlier ones. To set different header you can use 'head' for the first page and 'nexthead' for the following pages. The header on the first page should only contain a name and than a thin line (a \hairline similar to the built-in variable fromrule). The header on the following pages should contain variable things and than also a thin line. Unfortunately I found no possibility to get this done. \defineletterelement[head][benedikt] {\lettervalue{fromname} \hairline} \defineletterelement[nexthead][benedikt] {... \hairline} \setupletterstyle[head,nexthead][alternative=benedikt] b) I would like to define a back address which should be typeset above the addressee. Page 44 of the documentation illustrates amongst other layers the back address layer, but there is no way to activate and configure this layer. I've tried it with \setupletter[backaddress][...] and \setuplayer[backaddress][...]. Enable it with \setupletterstyle[backaddress=yes], it's disabled by default. 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] TABLE border width for row
Am 02.09.2010 um 22:47 schrieb Jan Pohanka: Hello, is it possible to increase border width of single row (or column) without affecting inner (between cell) borders using TABLE macro? On the wiki, there is a solution for wider border around whole table using additional \framed, would work something similar for single row? You can metapost to draw another border behind the cell. \startuniqueMPgraphic{row:left} draw leftboundary OverlayBox withpen pensquare scaled 2pt ; draw topboundaryOverlayBox withpen pensquare scaled 2pt ; draw bottomboundary OverlayBox withpen pensquare scaled 2pt ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \startuniqueMPgraphic{row:middle} draw topboundaryOverlayBox withpen pensquare scaled 2pt ; draw bottomboundary OverlayBox withpen pensquare scaled 2pt ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \startuniqueMPgraphic{row:right} draw rightboundary OverlayBox withpen pensquare scaled 2pt ; draw topboundaryOverlayBox withpen pensquare scaled 2pt ; draw bottomboundary OverlayBox withpen pensquare scaled 2pt ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[row:left] [\uniqueMPgraphic{row:left}] \defineoverlay[row:middle][\uniqueMPgraphic{row:middle}] \defineoverlay[row:right] [\uniqueMPgraphic{row:right}] \starttext \setupTABLE[row] [2][background=row:middle] \setupTABLE[first][2][background=row:left] \setupTABLE[last] [2][background=row:right] \bTABLE \bTR \bTD 1 \eTD\bTD 2 \eTD\bTD 3 \eTD \eTR \bTR \bTD 4 \eTD\bTD 5 \eTD\bTD 6 \eTD \eTR \bTR \bTD 7 \eTD\bTD 8 \eTD\bTD 9 \eTD \eTR \eTABLE \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 ___
[NTG-context] beta
Hi, I uploaded a beta. There have been quite some changes in the lua code, not so much in terms of functionality but in organization (a first step to a more formal api). So, if you use calls to functions in mkiv, you might need to check it. There have been some extensions but those will become available when the next luatex release happens. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] subpagenumbering
Hi, mkiv gives a wrong value (x+1) for the total number of subpages \setupheadertexts[\subpagenumber\ – \nofsubpages] \setupsubpagenumber[way=bytext,state=start] \starttext \dorecurse{3} {\dorecurse{10}{\input knuth\par} \page\resetsubpagenumber} \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 ___
[NTG-context] Presentation Styles: `texexec --pdf --mode=demo s-pre-xx` still valid?
Dear ConTeXt folks, to test presentation styles the Wiki [1] lists the following command to execute. texexec --pdf --mode=demo s-pre-xx Unfortunately that does not work on my Debian Sid/unstable system (TeXLive 2009). I reported it to the Debian BTS [2]. $ texexec --pdf --mode=demo /usr/share/texmf/tex/context/base/s-pre-00 MTXrun | kpse fallback with progname 'context' initialized in 0.02 seconds TeXExec | processing document '/usr/share/texmf/tex/context/base/s-pre-00' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file s-pre-00.top TeXExec | using randomseed 1037 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) restricted \write18 enabled. (/usr/share/texmf/web2c/natural.tcx) entering extended mode (/usr/share/texmf/tex/context/base/s-pre-00.tex ConTeXt ver: 2009.11.26 16:28 MKII fmt: 2010.8.28 int: english/english system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/share/texmf/tex/context/base/cont-new.mkii)) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/etc/texmf/tex/context/user/cont-sys.rme (/usr/share/texmf/tex/context/base/type-tmf.tex (/usr/share/texmf/tex/context/base/type-tmf.mkii)) (/usr/share/texmf/tex/context/base/type-siz.tex (/usr/share/texmf/tex/context/base/type-siz.mkii)) (/usr/share/texmf/tex/context/base/type-one.tex (/usr/share/texmf/tex/context/base/type-one.mkii))) system : s-pre-00.top loaded (./s-pre-00.top) bodyfont: 12pt rm is loaded language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2 us- ec:ec-3-2:3 de-texnansi:texnansi-4-3:3 de-ec:ec-5-3:3 da-ec:ec-6-2:2 sv-ec:ec-7-2:2 gb-ec:ec-8-2:2 fr-texnansi:texnansi-9-2:2 fr-ec:ec-1 0-2:2 es-ec:ec-11-2:2 ca-ec:ec-12-2:2 it-texnansi:texnansi-13-2:2 it- ec:ec-14-2:2 la-ec:ec-15-2:2 pt-texnansi:texnansi-16-2:2 pt-ec:ec-17 -2:2 ro-ec:ec-18-2:2 pl-pl0:pl0-19-2:2 pl-ec:ec-20-2:2 pl-qx:qx-21- 2:2 cs-il2:il2-22-2:2 cs-ec:ec-23-2:2 sk-il2:il2-24-2:2 sk-ec:ec-25 -2:2 hr-ec:ec-26-2:2 sl-ec:ec-27-2:2 tr-ec:ec-28-2:2 agr-agr:agr-30 -2:2 fi-ec:ec-31-2:2 hu-ec:ec-32-2:2 ru-t2a:t2a-34-2:2 uk-t2a:t2a-3 5-3:3 loaded specials: dvips loaded systems : system commands are enabled language: language en is active specials: loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.mkii specials: loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.mkii))) systems : invalid \starttext...\stoptext structure systems : end file s-pre-00 at line 0 system : cont-err loaded (/usr/share/texmf/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) No pages of output. Transcript written on s-pre-00.log. TeXUtil | parsing file s-pre-00.tui TeXUtil | check loading of file 's-pre-00', begin/end problem TeXUtil | shortcuts : 0 TeXUtil | expansions: 0 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 8 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 0.252728 $ LANG=C ls -l s-pre-00.pdf ls: cannot access s-pre-00.pdf: No such file or directory I think, the main reason seems to be the following line. systems : invalid \starttext...\stoptext structure Do you know if this command should still be working. It might be something changed because the Wiki page was last edited in May 2007. Thanks, Paul [1] http://wiki.contextgarden.net/Presentation_Styles [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595347 signature.asc Description: This is a digitally signed message part ___ 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] Presentation Styles: `texexec --pdf --mode=demo s-pre-xx` still valid?
Am 03.09.2010 um 11:57 schrieb Paul Menzel: Dear ConTeXt folks, to test presentation styles the Wiki [1] lists the following command to execute. texexec --pdf --mode=demo s-pre-xx Unfortunately that does not work on my Debian Sid/unstable system (TeXLive 2009). I reported it to the Debian BTS [2]. Try another style, 's-pre-00' is only a environment which defines helper commands and is used in other styles. 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] [solved] Presentation Styles: `texexec --pdf --mode=demo s-pre-xx` still valid?
Am Freitag, den 03.09.2010, 12:04 +0200 schrieb Wolfgang Schuster: Am 03.09.2010 um 11:57 schrieb Paul Menzel: to test presentation styles the Wiki [1] lists the following command to execute. texexec --pdf --mode=demo s-pre-xx Unfortunately that does not work on my Debian Sid/unstable system (TeXLive 2009). I reported it to the Debian BTS [2]. Try another style, 's-pre-00' is only a environment which defines helper commands and is used in other styles. Thank you for the quick reply. That indeed worked. I updated the Wiki accordingly and closed the report in the Debian BTS. Thank you and sorry for the noise, Paul [3] http://wiki.contextgarden.net/index.php?title=Presentation_Stylesoldid=11941 signature.asc Description: This is a digitally signed message part ___ 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] ConTeXt Minimals: `luatools --selfupdate` does not work.
Dear ConTeXt folks, I installed ConTeXt minimals and tried to run luatools --selfupdate as documented in the Wiki [1]. It looks like, the option is not supported anymore, since the output looks like a list of supported options. Am I right about this? $ luatools --selfupdate MTXrun | TDS Runner Tool 1.26 | ConTeXt TDS Management Tool 1.35 (aka luatools) MTXrun | MTXrun | --generategenerate file database MTXrun | --variables show configuration variables MTXrun | --expansions show expanded variables MTXrun | --configurations show configuration order MTXrun | --expand-braces expand complex variable MTXrun | --expand-path expand variable (resolve paths) MTXrun | --expand-var expand variable (resolve references) MTXrun | --show-path show path expansion of ... MTXrun | --var-value report value of variable MTXrun | --find-file report file location MTXrun | --find-path report path of file MTXrun | --make or --ini make luatex format MTXrun | --run or --fmt= run luatex format MTXrun | --luafile=str lua inifile (default is progname.lua) MTXrun | --lualibs=listlibraries to assemble (optional when --compile) MTXrun | --compile assemble and compile lua inifile MTXrun | --verbose give a bit more info MTXrun | --all show all found files MTXrun | --sortsort cached data MTXrun | --format=str filter cf format specification (default 'tex', use 'any' for any match) MTXrun | --engine=str target engine MTXrun | --progname=strformat or backend MTXrun | --pattern=str filter variables MTXrun | --trackers=list enable given trackers MTXrun | MTXrun | More information about ConTeXt and the tools that come with it can be found at: MTXrun | MTXrun | maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context MTXrun | webpage : http://www.pragma-ade.nl / http://tex.aanhet.net MTXrun | wiki : http://contextgarden.net Thanks, Paul [1] http://wiki.contextgarden.net/ConTeXt_Minimals signature.asc Description: This is a digitally signed message part ___ 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] beta
On 3 sept. 2010, at 11:25, Hans Hagen wrote: Hi, I uploaded a beta. There have been quite some changes in the lua code, not so much in terms of functionality but in organization (a first step to a more formal api). So, if you use calls to functions in mkiv, you might need to check it. There have been some extensions but those will become available when the next luatex release happens. Hans Dear Hans, dear Mojca, In order to test the new release, I just updated to the new beta through the minimals, but after that I get still the same ConTeXt version, that is ConTeXt version 2010.08.20 00:00 LuaTeX version 62, LuaTeX revision 0, (LuaTeX date stamp 2010081520). Since we had such a weird behavior sometime ago, I wonder whether something is going wrong with the updating procedure. This said, I am very happy with the version I have… I wanted just to let you know about a possible issue: there is no complain at all! With my best regards: OK ___ 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] ConTeXt Minimals: `luatools --selfupdate` does not work.
On 3-9-2010 3:28, Paul Menzel wrote: Dear ConTeXt folks, I installed ConTeXt minimals and tried to run luatools --selfupdate as documented in the Wiki [1]. It looks like, the option is not supported anymore, since the output looks like a list of supported options. Am I right about this? this is because luatools is now a shortcut to mtxrun --script base so you only need to selfupdate mtxrun ... originally luatools was meant as a generic stub for making luatex formats etc but as I don't expect it to be used outside context it's sort of gone as independent script as mtxrun can do most of the same (what's left ended up in mtx-base) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] New beta: protrusion and expansion
Hi Hans, it seems that protrusion and expansion do not work with the latest beta. Here is a test file: \definefontfeature [default] [default] [mode=node,protrusion=quality,expansion=quality] \setupalign[hz,hanging] \starttext \showframe \input tufte \stoptext Greeting 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] ConTeXt Minimals: `luatools --selfupdate` does not work.
Am Freitag, den 03.09.2010, 16:48 +0200 schrieb Hans Hagen: On 3-9-2010 3:28, Paul Menzel wrote: I installed ConTeXt minimals and tried to run luatools --selfupdate as documented in the Wiki [1]. It looks like, the option is not supported anymore, since the output looks like a list of supported options. Am I right about this? this is because luatools is now a shortcut to mtxrun --script base so you only need to selfupdate mtxrun ... originally luatools was meant as a generic stub for making luatex formats etc but as I don't expect it to be used outside context it's sort of gone as independent script as mtxrun can do most of the same (what's left ended up in mtx-base) Understood. I updated the Wiki page accordingly [2]. Thanks, Paul PS: `luatools --generate` still does something. Is it deprecated and superseded by a `mtxrun` command? [2] http://wiki.contextgarden.net/index.php?title=ConTeXt_Minimalsoldid=11942 signature.asc Description: This is a digitally signed message part ___ 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] ConTeXt Minimals: `luatools --selfupdate` does not work.
On 3-9-2010 5:16, Paul Menzel wrote: Am Freitag, den 03.09.2010, 16:48 +0200 schrieb Hans Hagen: On 3-9-2010 3:28, Paul Menzel wrote: I installed ConTeXt minimals and tried to run luatools --selfupdate as documented in the Wiki [1]. It looks like, the option is not supported anymore, since the output looks like a list of supported options. Am I right about this? this is because luatools is now a shortcut to mtxrun --script base so you only need to selfupdate mtxrun ... originally luatools was meant as a generic stub for making luatex formats etc but as I don't expect it to be used outside context it's sort of gone as independent script as mtxrun can do most of the same (what's left ended up in mtx-base) Understood. I updated the Wiki page accordingly [2]. Thanks, Paul PS: `luatools --generate` still does something. Is it deprecated and superseded by a `mtxrun` command? no, luatools (or mtxrun --script base) sort of does what kpsewhich does and as such it also generates a file database so luatools will stay as shortcut Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] New beta: protrusion and expansion
On 3-9-2010 5:10, Andreas Harder wrote: Hi Hans, it seems that protrusion and expansion do not work with the latest beta. Here is a test file: fixed in next beta ... typo in table name - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___