Re: [NTG-context] Support for FormCalc ?
On 4/10/06, Hans Hagen [EMAIL PROTECTED] wrote: luigi scarso wrote: I have downloaded http://partners.adobe.com/public/developer/en/xml/formcalc_2.0.pdf If I have understand it FormCalc seem to be a simple script language Seem that Acrobat 7.0 can do this, but I'm not sure; asap I try to make an example. i played with xfa stuff some time ago; it boils down to sending an xml file to acrobat with a ref to a pdf file and additional form data; so maybe the form calc code stays outside the pdf file in a parallel file I have put a simple example under http://www.logosrl.it/context/test/tex.pdf It was done with Designer; it is var Quantity=100 (I wasn't able to make uncompress vers. for pdf 1.6, so I downgraded to 1.5) It seem that xml data are embedded into pdf. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Support for FormCalc ?
luigi scarso wrote: On 4/10/06, Hans Hagen [EMAIL PROTECTED] wrote: luigi scarso wrote: I have downloaded http://partners.adobe.com/public/developer/en/xml/formcalc_2.0.pdf If I have understand it FormCalc seem to be a simple script language Seem that Acrobat 7.0 can do this, but I'm not sure; asap I try to make an example. i played with xfa stuff some time ago; it boils down to sending an xml file to acrobat with a ref to a pdf file and additional form data; so maybe the form calc code stays outside the pdf file in a parallel file I have put a simple example under http://www.logosrl.it/context/test/tex.pdf It was done with Designer; it is var Quantity=100 (I wasn't able to make uncompress vers. for pdf 1.6, so I downgraded to 1.5) It seem that xml data are embedded into pdf. as far as i can see it boils down to embedding a bunch of xml snippets (none of which is valid xml in itself) and add an /XFA entry to the Acroform dictionary in the Catalog; no big deal; the plugin reassembles the embedded files to something valid xml and then does something with it, probably depending on the javascript; (looks like a real mess of mixing javascript and another language; i wonder why they didn't use javascript for everything; maybe the xml hype stroke 'm) So, here's something rather preliminary to play with ... (use / in filenames) \unprotect \def\startembed {\bgroup \catcode`\%=\other \dodoubleargument\dostartembed} \long\def\dostartembed[#1][#2]#3% let's gobble the next space, else {\dodostartembed[#1][#2]#3} % we get a space before ?xml \long\def\dodostartembed[#1][#2]#3\stopembed {\immediate\pdfobj stream attr {/Type /EmbeddedFile} {#3}% \edef\temp{\executeifdefined{embedded:#1}{ }}% \setxvalue{embedded:#1}{\temp (#2) \the\pdflastobj\space0 R }% \egroup} \def\embeddednames#1% {\executeifdefined{embedded:#1}{}} \def\flushFDFnames {\ifbuildFDFdictionary \ifx\FDFcollection\empty\else \ifbuildFDFencodingvector \doPDFdictionaryobject class FDF name local:encodingvector data \FDFencodingvector \fi \defineFDFfonts \doPDFarrayobject class FDF name local:fields data \FDFcollection \doPDFarrayobject class FDF name local:xfa data {\embeddednames{xfa}}% \doPDFgetobjectreference{FDF}{local:fields}\PDFobjectreferenceA \doPDFgetobjectreference{FDF}{local:xfa}\PDFobjectreferenceB % The /NeedAppearances is pretty important because % otherwise Acrobat 5 blows up on cloned radio widgets \doPDFdictionaryobject class FDF name local:acroform data {/Fields \PDFobjectreferenceA\space /XFA \PDFobjectreferenceB\space /NeedAppearances true \doFDFiffieldset\PDFcalculationset{/CO [\doFDFgetfieldset\PDFcalculationset]} /DR /Font \FDFfonts /DA (/Helv 10 Tf 0 g)}% \doPDFgetobjectreference{FDF}{local:acroform}\PDFobjectreference \doPDFaddtocatalog {/AcroForm \PDFobjectreference}% \global\let\FDFcollection\empty \global\let\flushFDFnames\relax \fi \fi} \protect \startembed[xfa][preamble] ?xml version=1.0 encoding=UTF-8? xdp:xdp xmlns:xdp=http://ns.adobe.com/xdp/; \stopembed \startembed[xfa][config] config xmlns=http://www.xfa.org/schema/xci/1.0/; xmlns:xfa=http://www.xfa.org/schema/xci/1.0/;tracearea level=1 name=font/area/traceagent name=designer!-- [0..n] --destinationpdf/destinationpdf!-- [0..n] --fontInfo/fontInfo/pdf/agentpresent!-- [0..n] --pdf!-- [0..n] --fontInfoembed1/embed/fontInfoversion1.5/versioncreatorAdobe Designer 7.0/creatorproducerAdobe Designer 7.0/producerscriptModelXFA/scriptModelinteractive1/interactivetagged1/taggedcompressionlevel6/levelcompressLogicalStructure1/compressLogicalStructure/compression/pdfxdppackets*/packets/xdpcommonlogtomemory/tomodeoverwrite/mode/logtemplatebaseC:/Documents and Settings/luigi/Desktop//base/template/commondestinationpdf/destinationoutputtouri/touriC:/Documents and Settings/luigi/Desktop/test6.pdf/uri/output/presentagent name=acrobatcommonlocale/localedataincrementalLoad/incrementalLoadadjustData/adjustDataxsluri/uri/xsloutputXSLuri/uri/outputXSL/datatemplatebaseC:/Documents and Settings/luigi/Desktop//baserelevant/relevanturi/uri/template/common/agent/config \stopembed \startembed[xfa][template] template xmlns=http://www.xfa.org/schema/xfa-template/2.1/;subform layout=tb locale=it_IT name=modulo1pageSetpageArea id=Page1 name=Pagina1contentArea h=197.3mm w=135.3mm x=0.25in y=0.25in/contentAreamedium long=210mm short=148mm stock=a5/medium/pageArea/pageSetsubform h=197.3mm w=135.3mmfield xmlns=http://www.xfa.org/schema/xfa-template/2.2/; h=38.1001mm name=Campoditesto1 w=104.775mm x=12.7mm y=25.4mmuitextEditborder?templateDesigner StyleID aped3?edge stroke=lowered/edge/bordermargin/margin/textEdit/uifont typeface=Arial/fontmargin bottomInset=1mm leftInset=1mm rightInset=1mm
Re: [NTG-context] XML and chapter specific bibliographies
Johannes Graumann wrote: Taco Hoekwater wrote: \placepublications[criterium=local] should work. Still struggling with this. Sorry, I had misunderstood \placelist's options. Make that \placepublications[criterium=chapter] at least, that works for me. I have fixed the other problem, and have already uploaded a new version to the modules section at contextgarden.net. It should automatically appear in the next context release as well. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Support for FormCalc ?
hmm, Designer does not show tufte, Acrobat7.0 yes. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Miguel Queiros wrote: Hello Peter, \start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically. So deleting them is no good idea (results in extra work for you) :) Yes, I noticed that... :) If you can make a minimal example of your buffer problems... Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors... Hi Miguel. I have attached a working example (sorry for the crippled output; seems, my emacs is not configured right for utf). Greets, Peter Thanks for your help! Miguel Queirós \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. % It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the % % \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]} This is what I call 'creative usage' of a feature :) Better use \getbuffer for this. \setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop \page \setuppapersize[A4][A4] P�gina 3. \page P�gina 4. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context % interface=en output=pdftex % Time-stamp: Dienstag, 11 April 2006 12:14:18; test.tex % \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. \start \startlocal % only setup, no content! \setuppapersize[A4,landscape][A4,landscape] \stoplocal % here comes the content \placetable{Just an expample}{\getbuffer[teste]} \page % !! place it after stop and look what happens \stop P�gina 3. \page P�gina 4. \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: %%% End: ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] long style of a row to put in a macro
On Mon, 10 Apr 2006 14:47:17 +0200, Vit Zyka wrote: Hans Hagen wrote: olivier Turlier wrote: Hi everybody, In writing a glossary of building terms (approx. 400 entries) in a natural TABLE. For each letter, A, B, C, I want a screen background, spanning on 2 colomns, with \bf style, etc. : this leads to a rather long definition that I don't wish to copy on each new letter row, so I made a little macro to recall this setup. This system is not working yet, so i beg your help, TIA for any answer %%% \setupcolors[state=start] \starttext \def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf, frame=off,align={middle,lohi}{#1}} \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] you can say odd/even etc instead of 1,3,5 Thinking about a feature request: I very frequentely set every third (3,6,9,...) row with gray background to make wide tables well-arranged. I did it by a loop or with a script that generates data. Some 'everythird' equivalent to 'even' or 'odd' would be more strightforward. Vit Maybe I was unclear, I just want to be able to recall a certain style for certain rows : the position of the rows is not regular, as in my case, it's for emphasis for each new letter (A,B,C, etc.) of glossary terms. As this def is rather long, i just wanted to make a more readable code. So I tried to put [nc=2,background=color,backgroundcolor=screen,style=\bf,frame=off,align={right,lohi}] in \def\Rowa#1{[nc=2,..]{#1}} and call this def on new letter row by %\bTR \bTD [command=\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD[nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]B \eTD \eTR \bTR \bTD barre \eTD \bTD \'Element de structure .. \eTD \eTR \bTR \bTD barre comprimée \eTD \bTD \'Eleme .. \eTD \eTR \bTR \bTD [nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]C \eTD \eTR \bTR \bTD [command=\Rowa] C \eTD \eTR % NOT WORKING \bTR \bTD c.. \eTD \bTD ... \eTD \eTR This is obviousluy a minor request, since i've already copied this def on each row manually. Thanks again -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Support for FormCalc ?
luigi scarso wrote: hmm, Designer does not show tufte, Acrobat7.0 yes. quite cryptic, this message -) i assume that you mean that Designer is flawed with respect to pdf viewing ... no surprise ... the one time i played with it, the pdf's etc also looked like crap, so ... don't take that program as a reference Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Peter Rolf wrote: Miguel Queiros wrote: Hello Peter, \start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically. So deleting them is no good idea (results in extra work for you) :) Yes, I noticed that... :) If you can make a minimal example of your buffer problems... Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors... Hi Miguel. I have attached a working example (sorry for the crippled output; seems, my emacs is not configured right for utf). Greets, Peter Thanks for your help! Miguel Queirós \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. % It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the % % \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]} This is what I call 'creative usage' of a feature :) Better use \getbuffer for this. \setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop \page \setuppapersize[A4][A4] P�gina 3. \page P�gina 4. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context enough suffereing ... % for cont-new.tex: \unprotect \def\definepapersize {\dotripleempty\dodefinepapersize} \def\dodefinepapersize[#1][#2][#3]% {\ifsecondargument \doifsomething{#1} % to be sure {\doifassignmentelse{#2} {\getparameters [\??pp#1] % geen \c!scale, scheelt hash ruimte [\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]} {\setvalue{\??pp:1:#1}{#2}% \setvalue{\??pp:2:#1}{#3}}}% \else \getparameters[\??pp][#1]% \setuppapersize \fi} \def\dosetuppapersize[#1][#2]% {\doifassignmentelse{#1} {\setuppaper[#1]} {\doifelsenothing{#2} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:2:#1}{}]}} {\doifassignmentelse{#2} {\getparameters[\??pp\executeifdefined{\??pp:1:#1}{#1}][#2]} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:1:#2}{#2}]} \let\reinstatepapersize\relax \def\adaptpapersize {\global\let\reinstatepapersize\restorepapersize \setuppapersize} \appendtoks \reinstatepapersize \global\let\reinstatepapersize\relax \to \everyaftershipout \protect \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bug in wiki's urw garamond typescript?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, after nearly a full day of debugging I found that the urw garamond (installed with the wiki instructions and the wiki typeface) pulls textlines out of grid if on a line with some depth (a `p' or `y` for example) follows a line with a capital german umlaut: \enableregime [il9] \usetypescriptfile [type-ugm] \setuppapersize [A5][A5] \definetypeface [ugaramond] [rm] [serif] [garamond] [default] [encoding=texnansi] \setupbodyfont [ugaramond,10pt] % \setupinterlinespace [line=2.9ex] \setuplayout[grid=yes] \showgrid \starttext \startcolumns Text with some depth: g()y Übel Text with some depth: g()y Übel \input knuth \stopcolumns \stoptext results in http://www.ecology.uni-kiel.de/~kheymann/files/testugm.pdf (logfile: http://www.ecology.uni-kiel.de/~kheymann/files/testugm.log, my texfont-generated urw garamond package can be found at http://www.ecology.uni-kiel.de/~kheymann/files/garamond.tar.gz). If I increase the interlinespace to 2.9ex the problem is fixed. Did I get that right (and should I correct that in the wiki?) Yours, Karsten - -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEO7B1KLkXHxOeP2ERAtRdAKDbCns+gjvq1HdWXRfoOqroU6X4YQCgnGdK orJSTZmqvK9kh5F9pB0HW+I= =3eY5 -END PGP SIGNATURE- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Support for FormCalc ?
On 4/11/06, Hans Hagen [EMAIL PROTECTED] wrote: luigi scarso wrote: hmm, Designer does not show tufte, Acrobat7.0 yes. quite cryptic, this message -) Sorry; see http://www.logosrl.it/context/test/s.pdf If I open s.pdf with Designer only one text field is shown (with label example) and no other text :( by the way, thanks for the examples. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize (bis)
Thanks Taco to help me on this issue. I eventually use (allmost copy-paste from #context): \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] Cheers, Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] long style of a row to put in a macro
olivier Turlier wrote: On Mon, 10 Apr 2006 14:47:17 +0200, Vit Zyka wrote: Hans Hagen wrote: olivier Turlier wrote: Hi everybody, In writing a glossary of building terms (approx. 400 entries) in a natural TABLE. For each letter, A, B, C, I want a screen background, spanning on 2 colomns, with \bf style, etc. : this leads to a rather long definition that I don't wish to copy on each new letter row, so I made a little macro to recall this setup. This system is not working yet, so i beg your help, TIA for any answer %%% \setupcolors[state=start] \starttext \def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf, frame=off,align={middle,lohi}{#1}} \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] you can say odd/even etc instead of 1,3,5 Thinking about a feature request: I very frequentely set every third (3,6,9,...) row with gray background to make wide tables well-arranged. I did it by a loop or with a script that generates data. Some 'everythird' equivalent to 'even' or 'odd' would be more strightforward. Vit Maybe I was unclear, I just want to be able to recall a certain style for certain rows : the position of the rows is not regular, as in my case, it's for emphasis for each new letter (A,B,C, etc.) of glossary terms. As this def is rather long, i just wanted to make a more readable code. So I tried to put [nc=2,background=color,backgroundcolor=screen,style=\bf,frame=off,align={right,lohi}] in \def\Rowa#1{[nc=2,..]{#1}} and call this def on new letter row by %\bTR \bTD [command=\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD[nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]B \eTD \eTR \bTR \bTD barre \eTD \bTD \'Element de structure .. \eTD \eTR \bTR \bTD barre comprim�e \eTD \bTD \'Eleme .. \eTD \eTR \bTR \bTD [nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]C \eTD \eTR \bTR \bTD [command=\Rowa] C \eTD \eTR % NOT WORKING \bTR \bTD c.. \eTD \bTD ... \eTD \eTR This is obviousluy a minor request, since i've already copied this def on each row manually. \starttext \unprotect \def\defineTABLEsetup {\dodoubleargument\dodefineTABLEsetup} \def\dodefineTABLEsetup[#1][#2]% {\setvalue{\@@tbl:set:#1}{#2}} \long\def\bTDs[#1]#2\eTDs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTD} {\bTD[]#2\eTD}} \long\def\bTRs[#1]#2\eTRs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTR} {\bTR[]#2\eTR}} \protect \defineTABLEsetup [xx] [foregroundcolor=red] \setupcolors[state=start] \bTABLE \bTR \bTD oeps \eTD \bTD oeps \eTD \eTR \bTR \bTDs[xx] oeps \eTDs \bTD oeps \eTD \eTR \bTRs[xx] \bTD oeps \eTD \bTD oeps \eTD \eTRs \eTABLE \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] floats spanning columns?
Hi there, a simple one: Is it possible to span a \placetable float over multiple columns defined with \startcolumns ...\ stopcolumns? Or do I have to switch to column sets for that? Yours, Karsten -- | ~ Karsten Heymann ~ | Christian-Albrecht-Universität zu Kiel | | Fon: +49 431 880-1186 |Netzwerkteam des Ökologiezentrum| | Fax: +49 431 880-4083 | http://www.ecology.uni-kiel.de | | - Selbständiger EDV-Dienstleister im Auftrag des ÖZK - | signature.asc Description: OpenPGP digital signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and chapter specific bibliographies
Taco Hoekwater wrote: Johannes Graumann wrote: Taco Hoekwater wrote: \placepublications[criterium=local] should work. Still struggling with this. Sorry, I had misunderstood \placelist's options. Make that \placepublications[criterium=chapter] at least, that works for me. Not here. What's happening now is: the references are being sorted by chapter, but then all appended after the first chapter. So no reference listings for chapters 2-x ... strange. I have fixed the other problem, and have already uploaded a new version to the modules section at contextgarden.net. It should automatically appear in the next context release as well. Thank you. When do you think the new release will happen? Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] long style of a row to put in a macro
On Tue, 11 Apr 2006 15:56:48 +0200, Hans Hagen wrote: olivier Turlier wrote: On Mon, 10 Apr 2006 14:47:17 +0200, Vit Zyka wrote: Hans Hagen wrote: olivier Turlier wrote: Hi everybody, In writing a glossary of building terms (approx. 400 entries) in a natural TABLE. For each letter, A, B, C, I want a screen background, spanning on 2 colomns, with \bf style, etc. : this leads to a rather long definition that I don't wish to copy on each new letter row, so I made a little macro to recall this setup. This system is not working yet, so i beg your help, TIA for any answer %%% \setupcolors[state=start] \starttext \def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf, frame=off,align={middle,lohi}{#1}} \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] you can say odd/even etc instead of 1,3,5 Thinking about a feature request: I very frequentely set every third (3,6,9,...) row with gray background to make wide tables well-arranged. I did it by a loop or with a script that generates data. Some 'everythird' equivalent to 'even' or 'odd' would be more strightforward. Vit Maybe I was unclear, I just want to be able to recall a certain style for certain rows : the position of the rows is not regular, as in my case, it's for emphasis for each new letter (A,B,C, etc.) of glossary terms. As this def is rather long, i just wanted to make a more readable code. So I tried to put [nc=2,background=color,backgroundcolor=screen,style=\bf,frame=off,align={right,lohi}] in \def\Rowa#1{[nc=2,..]{#1}} and call this def on new letter row by %\bTR \bTD [command=\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD[nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]B \eTD \eTR \bTR \bTD barre \eTD \bTD \'Element de structure .. \eTD \eTR \bTR \bTD barre comprim \eTD \bTD \'Eleme .. \eTD \eTR \bTR \bTD [nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]C \eTD \eTR \bTR \bTD [command=\Rowa] C \eTD \eTR % NOT WORKING \bTR \bTD c.. \eTD \bTD ... \eTD \eTR This is obviousluy a minor request, since i've already copied this def on each row manually. \starttext \unprotect \def\defineTABLEsetup {\dodoubleargument\dodefineTABLEsetup} \def\dodefineTABLEsetup[#1][#2]% {\setvalue{\@@tbl:set:#1}{#2}} \long\def\bTDs[#1]#2\eTDs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTD} {\bTD[]#2\eTD}} \long\def\bTRs[#1]#2\eTRs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTR} {\bTR[]#2\eTR}} \protect \defineTABLEsetup [xx] [foregroundcolor=red] \setupcolors[state=start] \bTABLE \bTR \bTD oeps \eTD \bTD oeps \eTD \eTR \bTR \bTDs[xx] oeps \eTDs \bTD oeps \eTD \eTR \bTRs[xx] \bTD oeps \eTD \bTD oeps \eTD \eTRs \eTABLE \stoptext Thanks a lot, it's working like a charm. What complex code before for getting much more simple code after, in the tables ! It's that kind of stuff that makes Context attractive, even for an end user like me. \starttext \unprotect \def\defineTABLEsetup {\dodoubleargument\dodefineTABLEsetup} \def\dodefineTABLEsetup[#1][#2]% {\setvalue{\@@tbl:set:#1}{#2}} \long\def\bTDs[#1]#2\eTDs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTD} {\bTD[]#2\eTD}} \long\def\bTRs[#1]#2\eTRs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTR} {\bTR[]#2\eTR}} \protect \defineTABLEsetup [xx] [foregroundcolor=red] \setupcolors[state=start] \bTABLE \bTR \bTD oeps \eTD \bTD oeps \eTD \eTR \bTR \bTDs[xx] oeps \eTDs \bTD oeps \eTD \eTR \bTRs[xx] \bTD oeps \eTD \bTD oeps \eTD \eTRs \eTABLE \blank[2*big] \defineTABLEsetup [bb] [nc=2,background=color,backgroundcolor=blue,foregroundcolor=white,style=\bf,frame=off,align={right,lohi}] \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] % \bTRs[bb] \bTD A \eTD \eTRs % \bTR \bTD abscisse \eTD \bTD Axe horizontal d'un diagramme \eTD \eTR \bTR \bTD abside \eTD \bTD Construction en forme de demi-cercle ou de polygone, située derrière le choeur et constituant l'extrémité d'une église. \eTD \eTR \bTR \bTD action \eTD \bTD Force ou déformation imposée agissant sur une structure. \eTD \eTR % \bTRs[bb] \bTD B \eTD \eTRs % \bTR \bTD barre \eTD \bTD \'Element de structure, généralement
[NTG-context] simplify \setuppapersize call
Should \setuppapersize automatically assume the same typesetting and printing papersizes, if no optional argument is given? Then you could do \setuppapersize[letter] instead of \setuppapersize[letter][letter] Right now \setuppapersize[letter] \starttext hello \stoptext produces a mixture of letter and A4 dimensions: $ texexec --pdf a /dev/null pdfinfo a.pdf | grep 'Page size' Page size: 612 x 841.89 pts Shouldn't it be either 612x792 (letter) or 595.276 x 841.89 pts (A4)? tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2006.03.25 13:21 cont-en : ver: 2006.03.25 13:21 fmt: 2006.4.11 mes: english It might be because I once ran 'texconfig' to set the default papersize to letter? -Sanjoy ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] simplify \setuppapersize call
Sanjoy Mahajan wrote: Should \setuppapersize automatically assume the same typesetting and printing papersizes, if no optional argument is given? Then you could do \setuppapersize[letter] instead of \setuppapersize[letter][letter] maybe, but i'm hesitant to change this because it has been so from the beginning Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] nice new feature
Hi, Since i needed it right now in a project ... \starttext \input tufte \placefigure [left,none] {} {\startfloatcombination[2*2] \placefigure{alpha}{\externalfigure[cow.pdf][width=1cm]} \placefigure{beta} {\externalfigure[cow.pdf][width=2cm]} \placefigure{gamma}{\externalfigure[cow.pdf][width=3cm]} \placefigure{delta}{\externalfigure[cow.pdf][width=4cm]} \stopfloatcombination} \input tufte \stoptext This 'combining of floats' feature will be in the next beta (and was actually rather trivial to implement). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] more manuals
Hi, I uploaded enattab eppchtex esp the nattab manual needs some updating (new features) so if you run into a missing aspect ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Units and XML
Johannes Graumann wrote: Something else: How to define a custom unit (basepairs, bp) with physml/units? something \unit [Basepairs] {bp} {Base Pairs} \defineXMLsingular [Basepairs] {\handlePMLunit\Basepairs} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] floats spanning columns?
Karsten Heymann wrote: Hi there, a simple one: Is it possible to span a \placetable float over multiple columns defined with \startcolumns ...\ stopcolumns? Or do I have to switch to column sets for that? if a float is too wide it will be moved around; wide floats spanning columns and text flowing around it is not one of the strong points of normal columns Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and 'Table of Contents'
Johannes Graumann wrote: Hans Hagen wrote: I was wondering whether there is a possibility to use '(new)texexec' with THREE input files: one describing the XML/ConTeXt mappings, one taking care of document specific ConTeXt stuff (formating) and one for the XML itself? Would make the 'mappings' file more portable ... either add multiple environment entries to a ctx file or say --environment=xmlbase,xmlmore (comma separated list) Thanks! Do you have any insight into why the page numbers for sections might be showing up in the margin when calling '\completecontent[criterium=text]'? The offset of the section-page numbers in relation to the chapter ones seems to be identical to the indentation of the section entries in relation to the chapter entries ... see attachment. is this working ok in the latest release? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] simplify \setuppapersize call
maybe, but i'm hesitant to change this because it has been so from the beginning Reasonable enough. Though the mixed A4/letter dimensions with \setuppapersize[letter] is probably not what a user intends and not useful for backward compatibility. They should probably get a PDF with an a4 whateverbox (mediabox?). -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and chapter specific bibliographies
Johannes Graumann wrote: \placepublications[criterium=chapter] at least, that works for me. Not here. What's happening now is: the references are being sorted by chapter, but then all appended after the first chapter. So no reference listings for chapters 2-x ... strange. I've tested with a normal tex file, so maybe this is an xml-related problem. Can you send me the actual input (again)? Thank you. When do you think the new release will happen? Soon, but when exactly? I can't say. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Rows and lines in tables
Robert Engelhardt wrote: Hello all, I'm a new ConTeXt user (started using it a few days ago) and I do have three problems now with tables which I could not solve reading the manual and the content of the ConTeXt wiki. I've created a minimal example (see below) illustrating my problems: 1. How can create lines with different widths using the \DL command as I do with \HL[factor] oder \VL[factor]? This would, in my example, allow to align the dummyx text in the first table with the numbers x in the second table. 2. How can I create a carriage return in the text of a table cell? Neither \crlf nor \\ do work (tried it with the AAA and BBB text in the first table to get them into the same cell. 3. How can I synchronize the height of the first two lines of the first table with those of the second table, no matter if there's a line between the rows (as in the second table, a thin one as in my example or even a fat one) or not (like in the first table which visually has a big cell)? Can I create an invisible line? How do I line up the BBB with the YYY / ZZZ line? Or, another possibility, how do I control the rows independently, having the BBB in the first table very close to the AAA, perhaps even three lines of text there, and at the same time only two rows of text in the second table? What about having only one line of text in the first table, vertically centered to the corresponding two rows of the second table? === [example] === \starttext \define\bold{8} \startcombination[2*1] {\starttable[|c|] \HL[\bold] \VL[\bold] AAA \VL[\bold]\FR \VL BBB \VL\LR \HL[\bold] \VL dummy1 \VL\SR \HL \VL dummy2 \VL\SR \HL \VL dummy3 \VL\SR \HL[\bold] \VL dummy4 \VL\SR \HL \VL dummy5 \VL\SR \HL \VL dummy6 \VL\SR \HL[\bold] \VL dummy7 \VL\SR \HL \VL dummy8 \VL\SR \HL \VL dummy9 \VL\SR \HL[\bold] \stoptable}{} {\starttable[|c|cw(3cm)|] \HL[\bold] \VL[\bold] \use{2} XXX \VL[\bold]\FR \HL \VL YYY \VL[1] ZZZ \VL\LR \HL[\bold] \VL 1 \VL \VL \SR \DL\VL\DR \VL 2 \VL \VL \SR \DL\VL\DR \VL 3 \VL \VL \SR \DL\VL\DR \VL 4 \VL \VL \SR \DL\VL\DR \VL 5 \VL \VL \SR \DL\VL\DR \VL 6 \VL \VL \SR \DL\VL\DR \VL 7 \VL \VL \SR \DL\VL\DR \VL 8 \VL \VL \SR \DL\VL\DR \VL 9 \VL \VL \SR \HL[\bold] \stoptable}{} \stopcombination \stoptext === [/example] === I know, a layout with all these horizontal lines and two tables sitting next to each other is not the best one, but I'm trying to reconstruct an existing document which is designed that way. Thanks for your help! btw, redefining\bold is a bad idea, use \Bold (i.e. capitalize your personal commands) \starttext \def\DummyLine {\VL \blackrule[height=.5\linewidth,depth=.5\linewidth,width=0pt] \VL \NR} \def\DummyBoldT{\VL \blackrule[height=4\linewidth, depth=0\linewidth, width=0pt] \VL \VL \NR} \def\DummyBoldB{\VL \blackrule[height=0\linewidth, depth=3\linewidth, width=0pt] \VL \VL \NR} \define\bold{8} \startcombination[2*1] {\starttable[|c|] \HL[\bold] \VL[\bold] AAA \VL[\bold]\FR \DummyLine \VL BBB \VL\LR \HL[\bold] \VL dummy1 \VL\SR \HL \VL dummy2 \VL\SR \HL \VL dummy3 \VL\SR \HL[\bold] \VL dummy4 \VL\SR \HL \VL dummy5 \VL\SR \HL \VL dummy6 \VL\SR \HL[\bold] \VL dummy7 \VL\SR \HL \VL dummy8 \VL\SR \HL \VL dummy9 \VL\SR \HL[\bold] \stoptable}{} {\starttable[|c|cw(3cm)|] \HL[\bold] \VL[\bold] \use{2} XXX \VL[\bold]\FR \HL \VL YYY \VL[1] ZZZ \VL\LR \HL[\bold] \VL 1 \VL \VL \SR \DL\VL\DR \VL 2 \VL \VL \SR \DL\VL\DR \VL 3 \VL \VL \SR \DummyBoldT \DL\VL\DR \DummyBoldB \VL 4 \VL \VL \SR \DL\VL\DR \VL 5 \VL \VL \SR \DL\VL\DR \VL 6 \VL \VL \SR \DummyBoldT \DL\VL\DR \DummyBoldB \VL 7 \VL \VL \SR \DL\VL\DR \VL 8 \VL \VL \SR \DL\VL\DR \VL 9 \VL \VL \SR \HL[\bold] \stoptable}{} \stopcombination \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] feature request: clipping option for externalfigure
Vit Zyka wrote: Hans Hagen wrote: � wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext % no clipping possible here bla bla bla bla bla bla bla bla bla bla bla bla \externalfigure[test-img][width=0.5\textwidth] bla bla bla bla bla bla bla bla bla bla bla bla \stoptext \documentclass{article} \usepackage{graphicx} \begin{document} % here the white border is clipped away bla bla bla bla bla bla bla bla bla bla bla bla \includegraphics[clip,width=0.5\textwidth]{test-img} bla bla bla bla bla bla bla bla bla bla bla bla \end{document} Or is there already such (undocumented) feature? \clip[nx=10,ny=20,x=2,y=4]{} and alike (grep for clip) Hans Peter was asking for something different, I believe. \clip do the thing well but you have to measure a bb somewhere, e.g. in GhostView. Since \externalfigure have to know bb then an option 'clip' can do that without manual measuring. There might be even en extension: apart from 'clip' option there could also be 'bb=10 20 100 200' option for overwritting original boundingbox. Clipping a figures would be a bit more strightforward. i dunno what the intended effect is but here's an example \starttext \startuseMPgraphic{test} draw fullcircle scaled 4cm withpen pencircle scaled 1cm ; setbounds currentpicture to boundingbox fullcircle scaled 4cm ; \stopuseMPgraphic \ruledhbox{\useMPgraphic{test}} \vskip3cm \ruledhbox{\clip{\useMPgraphic{test}}} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] wrapping a long URL without added spaces
I can wrap a long URL using \hyphenatedurl, but not without getting some unwanted spaces before the numerous “/”s in the URL. I expect that I have missed something elementary, again. Still, my efforts to avoid the spaces have thus far been unsuccessful, so any help would be gratefully received. My current setup is [Campbell] [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}] [] [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/ 2002dp1.pdf}}] I also have \setupinteraction[state=start,color=blue,style=rm] Alan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and 'Table of Contents'
Hans Hagen wrote: is this working ok in the latest release? Yes Sir - was my stupidity to begin with ... had indenting set to '[medium]'. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Curious blank page
On Mon, 10 Apr 2006, Hans Hagen wrote: Aditya Mahajan wrote: On Sun, 9 Apr 2006, Hans Hagen wrote: Aditya Mahajan wrote: On Sun, 19 Mar 2006, David Arnold wrote: Why is it that the rest of the page after Answers on page 4 of the compiled pdf is blank? I have a similar problem. Attached is the (not so) minimal example that I could prepare. (This is part of my way on mathalignment). See the page break on page 2, while all the page is empty. Adding \kern\zeropoint prevents the page break. But I find such an page break very confusing. btw, you need to patch core-mat.tex : \doif = \doifsomething \doifsomething{\formulaparameter\c!margin}% so we test first {\dosetleftskipadaption{\formulaparameter\c!margin}% \edef\leftdisplaymargin{\the\leftskipadaption}}% overloaded it seems that this was never encountered This doesn't seem to work. Changing line 303 of core-mat.tex \doif = \doifsomething and regenerating formats, does not change the output of the test file. I still get the incorrect page breaking. no, this patch is not related to the pagebreak but needed anyway (you're just lucky for not running into that bug) ; the pagebreak is just the result of background going crazy (well, not being able to determine if there is enough space left) framedtext does not break across pages :( Can startbackground be persuaded to become sane? Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] feature request: clipping option for externalfigure
Hans Hagen wrote: Vit Zyka wrote: Hans Hagen wrote: � wrote: Hello, I would like to clip an external eps-figure as LaTeX does with the clip option. Please consider the attachment as an example for en eps with white border and the following LaTeX and ConTeXt code: \starttext % no clipping possible here bla bla bla bla bla bla bla bla bla bla bla bla \externalfigure[test-img][width=0.5\textwidth] bla bla bla bla bla bla bla bla bla bla bla bla \stoptext \documentclass{article} \usepackage{graphicx} \begin{document} % here the white border is clipped away bla bla bla bla bla bla bla bla bla bla bla bla \includegraphics[clip,width=0.5\textwidth]{test-img} bla bla bla bla bla bla bla bla bla bla bla bla \end{document} Or is there already such (undocumented) feature? \clip[nx=10,ny=20,x=2,y=4]{} and alike (grep for clip) Hans Peter was asking for something different, I believe. \clip do the thing well but you have to measure a bb somewhere, e.g. in GhostView. Since \externalfigure have to know bb then an option 'clip' can do that without manual measuring. There might be even en extension: apart from 'clip' option there could also be 'bb=10 20 100 200' option for overwritting original boundingbox. Clipping a figures would be a bit more strightforward. i dunno what the intended effect is but here's an example \starttext \startuseMPgraphic{test} draw fullcircle scaled 4cm withpen pencircle scaled 1cm ; setbounds currentpicture to boundingbox fullcircle scaled 4cm ; \stopuseMPgraphic \ruledhbox{\useMPgraphic{test}} \vskip3cm \ruledhbox{\clip{\useMPgraphic{test}}} \stoptext I see, I did not realize such simple usage of \clip (without options). That do exactly what was thinking about. One character of typing difference between: \clip{\externalfigure{test}} and \externalfigure[clip]{test} is not crutial:) So sorry for noise. But as far as I know, \clip works only with left|top,width|height params. Could right|bottom be added (assuming at least one from left-width-right and top-height-bottom is missing - if not width|height is ignored)? Or there is again some secret that I missed? Vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Figure caption on different page?
Hello, Is it possible to place (for page sized figures) the caption on the next/previous page? Thanks, Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context