[NTG-context] APS bib: literals and small error in "pages" field
Hi, Two things here: 1. There is an extra . on the end of lines 732 and 734 of publ-imp-aps.mkvi which causes references to be rendered like "p.. 417" and "pp.. 417--418". 2. Suppose I have a literal such as @literal{company, text = {Company Name (n.d.) {\it Webpage name}. Retrieved 22 February, 2022, from https://www.example.com} } how can I cite this without the (company) appearing in the bibliography list? For reference I'm using \usebtxdefinitions[aps] Jack ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Double-sided documents with MetaFun's Field[Text][Text]
On Monday, February 7, 2022 7:49:27 AM IST śrīrāma wrote: > […] > shifted (InnerMarginWidth,BottomHeight+FooterHeight); > […] > %%% EOF > […] > So, it seems that the margin widths and other distance are updated for each > odd, even page > […] This too seems to be wrong. It should be OuterMarginWidth but it is only correctly positioned for InnerMarginWidth, indicating therefore that the distances were not updated (?). Sreeram ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Double-sided documents with MetaFun's Field[Text][Text]
Dear list, I have a double-sided document in which I want to draw certain page backgrounds on the right (odd) and left (even) pages. Here is an example %%% SOF \setuppagenumbering[alternative=doublesided] \setuplayout [backspace=4cm, leftmargin=4cm, cutspace=2cm, rightmargin=2cm, leftmargindistance=0cm, rightmargindistance=0cm, header=2cm, footer=2cm, topspace=1cm, bottomspace=1cm, top=1cm, bottom=1cm, width=middle, height=fit] \startuseMPgraphic{page} StartPage; draw Area[Text][Text] shifted (InnerMarginWidth,BottomHeight+FooterHeight); draw Field[Text][Text] withcolor blue; StopPage; \stopuseMPgraphic \defineoverlay[page][\useMPgraphic{page}] \setupbackgrounds[page][background=page] \starttext \dorecurse{10}{\input knuth \page} \stoptext %%% EOF In the resulting PDF the Field[Text][Text] path is not positioned (/computed?) correctly, while the manually positioned Area[Text][Text] path is as expected. So, it seems that the margin widths and other distance are updated for each odd, even page but Field[Text][Text] is still wrong? The Field[Text][Text] path appears on every page as though it is on an odd (right) page. Have I missed something? Thanks, śrīrāma (Sreeram) ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] issue field in bibliography
Hi, I have questions related with a journal named "Documentation photographque". Each issue is devoted to another theme. How should I declare this theme in bibliography fields when quoting articles? It is quite important to get it, because the main article is always named « Le point sur… » (I don't know exactly how to translate it in English. Something like "an overview of…") so quoting it makes only sense if the issue is named, at best after the title or the number. I thought issue may do it. Am I right? Or would be comment a better place? Best regards, Damien Thiriet ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] issue field in bibliography
On 3/29/21 10:45 AM, Damien Thiriet wrote: I have questions related with a journal named "Documentation photographque". Each issue is devoted to another theme. How should I declare this theme in bibliography fields when quoting articles? It is quite important to get it, because the main article is always named « Le point sur… » (I don't know exactly how to translate it in English. Something like "an overview of…") so quoting it makes only sense if the issue is named, at best after the title or the number. I thought issue may do it. Am I right? Or would be comment a better place? Are you asking about the ConTeXt implementation you want to implement or about the actual bibliographic representation you want on the page? If the former, we need more information: what style are you using for the list, what citation style? Show us some code, make a MWE. In both cases, we need an example of what your bibliographic entry should look like. Right now, we can only guess. Thomas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On Thu, Nov 22, 2018 at 4:15 PM Ulrike Fischer wrote: > Am Thu, 22 Nov 2018 14:46:57 +0100 schrieb luigi scarso: > > >> > >> A palette entry index value of 0x is a special case indicating > >> that the text foreground color (defined by a higher-level client) > >> should be used and shall not be treated as actual index into CPAL > >> ColorRecord array. > >> > >> > > > > " the text foreground color (defined by a higher-level client) > > should be used" doesn't mean "you MUST take the current color > > text" or even "you MUST use black" In fact "defined by a > > higher-level client" means that I could define a palette such > > that each glyph marked with 0x has its own color based on my > > palette --- not necessarily the *same* color. > > Sounds as if there is some room for interpretation ;-). But assume > that I want in my example the 0x to be interpretated as "the > current text color", so the currently blue glyphs should be black, > and if I add \color[red] before the text they should be red. Can and > if yes how this be setup? (Both in context and in generic) > no, at this moment is fixed, but we are discussing just now how to implement this. -- luigi ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
Am Thu, 22 Nov 2018 14:46:57 +0100 schrieb luigi scarso: >> >> A palette entry index value of 0x is a special case indicating >> that the text foreground color (defined by a higher-level client) >> should be used and shall not be treated as actual index into CPAL >> ColorRecord array. >> >> > " the text foreground color (defined by a higher-level client) > should be used" doesn't mean "you MUST take the current color > text" or even "you MUST use black" In fact "defined by a > higher-level client" means that I could define a palette such > that each glyph marked with 0x has its own color based on my > palette --- not necessarily the *same* color. Sounds as if there is some room for interpretation ;-). But assume that I want in my example the 0x to be interpretated as "the current text color", so the currently blue glyphs should be black, and if I add \color[red] before the text they should be red. Can and if yes how this be setup? (Both in context and in generic) -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On 11/22/2018 2:12 PM, Ulrike Fischer wrote: A palette entry index value of 0x is a special case indicating that the text foreground color (defined by a higher-level client) should be used and shall not be treated as actual index into CPAL ColorRecord array. unrelated ... 0x is intercepted and dealt with elsewhere ... default relates to what we like as default (which is an arbitrary choice from the palette but as said: that can be an option) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On Thu, Nov 22, 2018 at 2:13 PM Ulrike Fischer wrote: > Am Thu, 22 Nov 2018 13:50:08 +0100 schrieb Hans Hagen: > > >> When I use this definitions I still get partly blue glyphs with this > >> preamble. Don't you get them? > > > well, i don't know what to expect > > Khaled mentioned this link which shows how (harfbuzz-based) browsers > like firefox interpret the font > https://www.amirifont.org/fatiha-colored.html > > Also the spec > https://docs.microsoft.com/en-us/typography/opentype/spec/colr#layer-record > says > > > A palette entry index value of 0x is a special case indicating > that the text foreground color (defined by a higher-level client) > should be used and shall not be treated as actual index into CPAL > ColorRecord array. > > > sure, in font-dsp.lua 2953 -- The special value 0x is foreground (but we index from 1). It 2954 -- more looks like indices into a palette so 'class' is a better name 2955 -- than 'palette'. " the text foreground color (defined by a higher-level client) should be used" doesn't mean "you MUST take the current color text" or even "you MUST use black" In fact "defined by a higher-level client" means that I could define a palette such that each glyph marked with 0x has its own color based on my palette --- not necessarily the *same* color. (this is the meaning in font-ocl.lua of 247 local default = colorvalues[#colorvalues] -- or 1 or ... maybe make it an option ) So..in this situation black makes sense as blue -- I guess that 0x is mapped as "cuirrent text color" in harfbuzz-browsers, so, sure, it has a bit more functionality. -- luigi ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
Am Thu, 22 Nov 2018 13:50:08 +0100 schrieb Hans Hagen: >> When I use this definitions I still get partly blue glyphs with this >> preamble. Don't you get them? > well, i don't know what to expect Khaled mentioned this link which shows how (harfbuzz-based) browsers like firefox interpret the font https://www.amirifont.org/fatiha-colored.html Also the spec https://docs.microsoft.com/en-us/typography/opentype/spec/colr#layer-record says A palette entry index value of 0x is a special case indicating that the text foreground color (defined by a higher-level client) should be used and shall not be treated as actual index into CPAL ColorRecord array. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On 11/21/2018 9:04 PM, Ulrike Fischer wrote: Am Wed, 21 Nov 2018 20:37:29 +0100 schrieb luigi scarso: \definefontfeature[quran][mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, ccmp=yes,locl=yes,calt=yes, liga=yes,clig=yes,dlig=yes,rlig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes, colr=yes] \definefont[quran][AmiriQuranColored*quran @ 18pt] I have just copied-and- pasted an example around, but at least the "black-and-white" typography match. When I use this definitions I still get partly blue glyphs with this preamble. Don't you get them? well, i don't know what to expect ... anyway: \definefontfeature[quran][arabic][script=arab,colr=yes] helps to get better arabic, also use \righttoleft instead of the dir commands; the ^^ can be avoided with \Uchar"FDFD in font-ocl you can change this local default = false -- colorvalues[#colorvalues] -- or 1 or ... maybe make it an option so, no default (i used the default as in emoji it was better that way and those were the only fonts i had) .. when i have time i'll make it an option Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
Am Wed, 21 Nov 2018 20:37:29 +0100 schrieb luigi scarso: > \definefontfeature[quran][mode=node,language=dflt,script=arab, > init=yes,medi=yes,fina=yes,isol=yes, >ccmp=yes,locl=yes,calt=yes, >liga=yes,clig=yes,dlig=yes,rlig=yes, >mark=yes,mkmk=yes,kern=yes,curs=yes, > colr=yes] > \definefont[quran][AmiriQuranColored*quran @ 18pt] > > I have just copied-and- pasted an example around, but > at least the "black-and-white" typography match. When I use this definitions I still get partly blue glyphs with this preamble. Don't you get them? -- Ulrike Fischer https://www.troubleshooting-tex.de/ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On Wed, Nov 21, 2018 at 7:04 PM Ulrike Fischer wrote: > Am Wed, 21 Nov 2018 18:46:44 +0100 schrieb Hans Hagen: > > > I'm not sure what yoy mwan with 0x as that's intercepted > > With this example (font from > https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf) > > a part of the glyphs are in blue. Khaled claims that this is wrong, > that the blue should be black, and the output look like this > https://i.stack.imgur.com/gpoO7.jpg > > (sorry about the ^^, it is a translation from a plain example): > > \starttext > \definefontfeature[quran][script=arab,colr=yes] > \definefont[quran][AmiriQuranColored*quran @ 20pt] > > > \catcode`\^=7 > \pardir TRT\textdir TRT > \quran > \baselineskip=2.6em > \parindent=0pt > \leftskip=0pt plus 1fil > \rightskip=0pt plus -1fil > \parfillskip=0pt plus 2fil > \def\aya#1{{\textdir TLT 06dd#1}} > fdfd~\aya{١}\par > ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِینَ~\aya{٢} ٱلرَّحۡمَٰنِ > ٱلرَّحِیمِ~\aya{٣} مَٰلِكِ یَوۡمِ ٱلدِّینِ~\aya{٤} إِیَّاكَ نَعۡبُدُ > وَإِیَّاكَ نَسۡتَعِینُ~\aya{٥} ٱهۡدِنَا ٱلصِّرَٰطَ > ٱلۡمُسۡتَقِیمَ~\aya{٦} صِرَٰطَ ٱلَّذِینَ أَنۡعَمۡتَ عَلَیۡهِمۡ > غَیۡرِ ٱلۡمَغۡضُوبِ عَلَیۡهِمۡ وَلَا ٱلضَّاۤلِّینَ~\aya{٧}\par > \stoptext > \definefontfeature[quran][mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, ccmp=yes,locl=yes,calt=yes, liga=yes,clig=yes,dlig=yes,rlig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes, colr=yes] \definefont[quran][AmiriQuranColored*quran @ 18pt] I have just copied-and- pasted an example around, but at least the "black-and-white" typography match. -- luigi ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
Am Wed, 21 Nov 2018 18:46:44 +0100 schrieb Hans Hagen: > I'm not sure what yoy mwan with 0x as that's intercepted With this example (font from https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf) a part of the glyphs are in blue. Khaled claims that this is wrong, that the blue should be black, and the output look like this https://i.stack.imgur.com/gpoO7.jpg (sorry about the ^^, it is a translation from a plain example): \starttext \definefontfeature[quran][script=arab,colr=yes] \definefont[quran][AmiriQuranColored*quran @ 20pt] \catcode`\^=7 \pardir TRT\textdir TRT \quran \baselineskip=2.6em \parindent=0pt \leftskip=0pt plus 1fil \rightskip=0pt plus -1fil \parfillskip=0pt plus 2fil \def\aya#1{{\textdir TLT 06dd#1}} fdfd~\aya{١}\par ٱلۡحَمۡدُ لِلَّهِ رَبِّ ٱلۡعَٰلَمِینَ~\aya{٢} ٱلرَّحۡمَٰنِ ٱلرَّحِیمِ~\aya{٣} مَٰلِكِ یَوۡمِ ٱلدِّینِ~\aya{٤} إِیَّاكَ نَعۡبُدُ وَإِیَّاكَ نَسۡتَعِینُ~\aya{٥} ٱهۡدِنَا ٱلصِّرَٰطَ ٱلۡمُسۡتَقِیمَ~\aya{٦} صِرَٰطَ ٱلَّذِینَ أَنۡعَمۡتَ عَلَیۡهِمۡ غَیۡرِ ٱلۡمَغۡضُوبِ عَلَیۡهِمۡ وَلَا ٱلضَّاۤلِّینَ~\aya{٧}\par \stoptext -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
On 11/21/2018 1:37 PM, Ulrike Fischer wrote: Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer: Khaled wrote that "is that [the code] uses the last palette color A bit too much deleted. It should say "it is a bug that ..." in context use the context interface (which uses a different implementation of the function you call) \starttext \definefontfeature[seguiemj-cl][default][colr=yes,ccmp=yes,dist=yes] \definefontsynonym[emoji][seguiemj*seguiemj-cl] \definecolor[emoji-red] [r=.4] \definecolor[emoji-gray][s=1,t=.5,a=1] \definefontcolorpalette [emoji-r] [emoji-red,emoji-gray] \definefontfeature[seguiemj-r][ccmp=yes,dist=yes,colr=emoji-r] \definefont[MyEmojiR][seguiemj*seguiemj-r @ 100pt] \startTEXpage[offset=10pt] \MyEmojiR\resolvedemoji{triangular ruler} \stopTEXpage \stoptext I'm not sure what yoy mwan with 0x as that's intercepted .. the choice for the last color as default is just that, a choice, could be the first one or none (or configureable if needed) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
Am Wed, 21 Nov 2018 13:01:47 +0100 schrieb Ulrike Fischer: > Khaled wrote that "is that [the code] uses the last palette color A bit too much deleted. It should say "it is a bug that ..." -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')
I tried to register a demo colorpalette: \starttext \directlua{fonts.handlers.otf.registerpalette("demo", { { g=1 }, %accents { b=1 }, %06dd { r=0.5, g=0.5, b=0.5 }, %unused? { g = 0.5, b=0, r=1 }, } )} blub \stoptext and got the error font-ocl.lua:76: attempt to call a nil value (field 'register') (I wanted to test the coloring of https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf, Khaled wrote that "is that [the code] uses the last palette color for layers using paletteIndex 0x (special value that means use text color)." and that local default = colorvalues[#colorvalues] font-ocl.lua is faulty) -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] issue with signature field
On 05/24/2017 11:57 AM, luigi scarso wrote: > On Sun, May 21, 2017 at 9:17 PM, Pablo Rodriguez wrote: >> Dear list, >> >> some time ago, Hans implemented signature fields: >> >> \setupinteraction[state=start] >> \starttext >> \definefield[x][signature] >> \field[x] >> \stoptext >> >> I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the >> latest version released for Linux. > > Alternatives are a reader for android (quite ok, of course you need> decent > android device) Many thanks for your reply, Luigi. I’m afraid I might be an indecent user, because I only have real computers (no mobile devices). > or under linux Wine + latest Reader for windows (crossing the fingers) In that case, I’d rather use Windows at work. But many thanks for your suggestions, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] issue with signature field
On 05/24/2017 11:00 AM, Hans Hagen wrote: > On 5/21/2017 9:17 PM, Pablo Rodriguez wrote: >> \setupinteraction[state=start] >> \starttext >> \definefield[x][signature] >> \field[x] >> \stoptext >> >> I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the >> latest version released for Linux. >> >> Acrobat Reader 9.5.5 is able to sign this document: >> https://bugs.ghostscript.com/attachment.cgi?id=11678 (and >> https://bugs.ghostscript.com/attachment.cgi?id=11707). >> >> I guess it may not be the cause, but which is the way to force the >> document to be written in PDF version 1.6? >> I only have an old acrobat x pro and reader dc and both open the > document. I never used signature fields so I have no clue what to expect > anyway. Many thanks for your reply, Hans. If you click inside the signature field, a dialog will pop up. You may use a signature (such as http://acrobat.ousia.tk/JohnDoe.pfx). The password is "123456". After sending my original message, I analyzed the contents of the file that Acrobat for Linux is able to sign. The issue seems to be (or I think it is) different default settings. But I need to investigate this further. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] issue with signature field
On Sun, May 21, 2017 at 9:17 PM, Pablo Rodriguez wrote: > Dear list, > > some time ago, Hans implemented signature fields: > > \setupinteraction[state=start] > \starttext > \definefield[x][signature] > \field[x] > \stoptext > > I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the > latest version released for Linux. Alternatives are a reader for android (quite ok, of course you need a decent android device) or under linux Wine + latest Reader for windows (crossing the fingers) -- luigi ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] issue with signature field
On 5/21/2017 9:17 PM, Pablo Rodriguez wrote: Dear list, some time ago, Hans implemented signature fields: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the latest version released for Linux. Acrobat Reader 9.5.5 is able to sign this document: https://bugs.ghostscript.com/attachment.cgi?id=11678 (and https://bugs.ghostscript.com/attachment.cgi?id=11707). I guess it may not be the cause, but which is the way to force the document to be written in PDF version 1.6? I only have an old acrobat x pro and reader dc and both open the document. I never used signature fields so I have no clue what to expect anyway. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] issue with signature field
Dear list, some time ago, Hans implemented signature fields: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the latest version released for Linux. Acrobat Reader 9.5.5 is able to sign this document: https://bugs.ghostscript.com/attachment.cgi?id=11678 (and https://bugs.ghostscript.com/attachment.cgi?id=11707). I guess it may not be the cause, but which is the way to force the document to be written in PDF version 1.6? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] btx/xml tree - entry with missing field
thanks a lot hans! > Am 22.12.2016 um 18:30 schrieb Hans Hagen : > > On 12/22/2016 6:06 PM, Michael Eidenbenz wrote: >> Hello >> >> I use the xml interface to list all publications that dont match a >> search criteria: >> >> /field[@name='keywords' >>and not (contains(text(),'alpha'))] >> >> but there are entries where the keywords field is missing. >> how can I include them (here "test-3") in the output? >> >> Thanks Michael >> >> -- >> >> \startbuffer[bib] >> >> @article{test-1, >> title= {Article One}, >> author = {A. Foo and X. Bar}, >> year = {2001}, >> keywords = {alpha}, >> } >> >> @book{test-2, >> title= {Book Two}, >> author = {B. Foo}, >> year = {2002}, >> keywords = {beta}, >> } >> >> @whatever{test-3, >> title= {Book Three}, >> author = {C. Foo}, >> year = {2003}, >> } >> >> \stopbuffer >> >> \usebtxdataset [database] [bib.buffer] >> \convertbtxdatasettoxml [database] >> >> \startxmlsetups btx:tag >> \hbox{\xmlatt{#1}{tag}} >> \stopxmlsetups >> >> \startxmlsetups btx:demo >> \xmlfilter {#1} { >> /bibtex >> /* >> /field[@name='keywords' >>and not (contains(text(),'alpha'))] >> /.. >> /command(btx:tag) >> } >> \stopxmlsetups >> >> \starttext >> \xmlsetup{btx:database}{btx:demo} >> \stoptext > > \startxmlsetups btx:demo > \xmlfilter {#1} {/bibtex/*/command(btx:demo:action)} > \stopxmlsetups > > \startxmlsetups btx:demo:action >\xmldoifelse {#1} {/field[@name='keywords']} { >\xmlfilter {#1} { > /field[@name='keywords' >and not contains(text(),'alpha')] > /.. > /command(btx:tag) >} >} { >\xmlsetup{#1}{btx:tag} > } > \stopxmlsetups > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] btx/xml tree - entry with missing field
On 12/22/2016 6:06 PM, Michael Eidenbenz wrote: Hello I use the xml interface to list all publications that dont match a search criteria: /field[@name='keywords' and not (contains(text(),'alpha'))] but there are entries where the keywords field is missing. how can I include them (here "test-3") in the output? Thanks Michael -- \startbuffer[bib] @article{test-1, title= {Article One}, author = {A. Foo and X. Bar}, year = {2001}, keywords = {alpha}, } @book{test-2, title= {Book Two}, author = {B. Foo}, year = {2002}, keywords = {beta}, } @whatever{test-3, title= {Book Three}, author = {C. Foo}, year = {2003}, } \stopbuffer \usebtxdataset [database] [bib.buffer] \convertbtxdatasettoxml [database] \startxmlsetups btx:tag \hbox{\xmlatt{#1}{tag}} \stopxmlsetups \startxmlsetups btx:demo \xmlfilter {#1} { /bibtex /* /field[@name='keywords' and not (contains(text(),'alpha'))] /.. /command(btx:tag) } \stopxmlsetups \starttext \xmlsetup{btx:database}{btx:demo} \stoptext \startxmlsetups btx:demo \xmlfilter {#1} {/bibtex/*/command(btx:demo:action)} \stopxmlsetups \startxmlsetups btx:demo:action \xmldoifelse {#1} {/field[@name='keywords']} { \xmlfilter {#1} { /field[@name='keywords' and not contains(text(),'alpha')] /.. /command(btx:tag) } } { \xmlsetup{#1}{btx:tag} } \stopxmlsetups - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] btx/xml tree - entry with missing field
Hello I use the xml interface to list all publications that dont match a search criteria: /field[@name='keywords' and not (contains(text(),'alpha'))] but there are entries where the keywords field is missing. how can I include them (here "test-3") in the output? Thanks Michael -- \startbuffer[bib] @article{test-1, title= {Article One}, author = {A. Foo and X. Bar}, year = {2001}, keywords = {alpha}, } @book{test-2, title= {Book Two}, author = {B. Foo}, year = {2002}, keywords = {beta}, } @whatever{test-3, title= {Book Three}, author = {C. Foo}, year = {2003}, } \stopbuffer \usebtxdataset [database] [bib.buffer] \convertbtxdatasettoxml [database] \startxmlsetups btx:tag \hbox{\xmlatt{#1}{tag}} \stopxmlsetups \startxmlsetups btx:demo \xmlfilter {#1} { /bibtex /* /field[@name='keywords' and not (contains(text(),'alpha'))] /.. /command(btx:tag) } \stopxmlsetups \starttext \xmlsetup{btx:database}{btx:demo} \stoptext Michael Eidenbenz / Senior Researcher eidenb...@arch.ethz.ch <mailto:eidenb...@arch.ethz.ch> Phone +41 44 632 33 46 Chair of Architecture and Building Process ETH Zurich / Building HIB / Floor E / Room 33 Stefano-Franscini-Platz 1 / CH-8093 Zurich www.bauprozess.arch.ethz.ch <http://www.bauprozess.arch.ethz.ch/> / ITA Institute of Technology in Architecture Faculty of Architecture / ETH Zurich www.ita.arch.ethz.ch <http://www.ita.arch.ethz.ch/> ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] short field no longer accepts control sequences
On Sun, 01 Feb 2015 17:56:31 -0700, Hans Hagen wrote: On 2/1/2015 4:27 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear Cabal, Things like the following used to work, now give an error: s=\hbox{}Corbin81] This is not mission-critical in my case, I can live without it at least for now, but it did used to work. May be worth investigating, and I can fix that ... as long as I don't have to wonder/worry too much what that hbox is supposed to do. Lol... Actually, the issue arose in the context of aliases, e.g. s=\CORBIN81 Since no \cs's work here, I just threw in something empty to illustrate. Anyway, would be nice to have if it's an easy fix, and thanks!! Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] short field no longer accepts control sequences
On 2/1/2015 4:27 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear Cabal, Things like the following used to work, now give an error: s=\hbox{}Corbin81] This is not mission-critical in my case, I can live without it at least for now, but it did used to work. May be worth investigating, and I can fix that ... as long as I don't have to wonder/worry too much what that hbox is supposed to do. 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] short field no longer accepts control sequences
Dear Cabal, Things like the following used to work, now give an error: \starttext \setuppublications[alternative=apa] \startpublication[k=corbin81, t=book, a=Corbin, y=1981, s=\hbox{}Corbin81] \author[]{Henry}[H.]{}{Corbin} \title{The Concept of Comparative Philosophy} \pubname{Golgonooza Press} \city{Ipswich, United Kingdom} \pubyear{1981} \stoppublication \placepublications [criterium=all] % inherits from \setuppublications % \completepublications[criterium=cite] % only works with criterium=all \stoptext : [\directlua]:1: invalid escape sequence near '\h' 1 \starttext 2 \setuppublications[alternative=apa] 3 4 \startpublication[k=corbin81, 5 t=book, 6 a=Corbin, 7 y=1981, 8 >>s=\hbox{}Corbin81] 9 \author[]{Henry}[H.]{}{Corbin} 10 \title{The Concept of Comparative Philosophy} 11 \pubname{Golgonooza Press} 12 \city{Ipswich, United Kingdom} 13 \pubyear{1981} 14 \stoppublication 15 16 \placepublications [criterium=all] % inherits from \setuppublications 17 % \completepublications[criterium=cite] % only works with criterium=all 18 \stoptext This is not mission-critical in my case, I can live without it at least for now, but it did used to work. May be worth investigating, and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 test-bib-short.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] Resizing multi-line fill-in field
On 7/1/2014 12:37 PM, Michael Guravage wrote: I am re-posting a previous question. Is it possible to increase the height of a multi-line fill-in field when the cumulative height of the lines typed into it exceeds the field's initial height? Here's an example where the field's initial height in 10em. \usemodule[fields] \setupinteraction[state=start] \setupfield [TextSetup] [width=\textwidth, height=10em, background=screen, backgroundscreen=.97, frame=off] \definefield [Block] [text] [TextSetup] [] [What's on your mind?] \starttext \field [Block] [type here] \stoptext I have a situation where the amount of text typed into various fields will vary, but it is inappropriate to reserve a large block of space for each field. Any suggestions would be greatly appreciated. You mean that the field in the pdf adapts itself? Maybe with some javascript magic but then it still doesn't adapt the following layout. you can set n= to a large value to permits more than the standard 1000 chars - 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] Resizing multi-line fill-in field
I am re-posting a previous question. Is it possible to increase the height of a multi-line fill-in field when the cumulative height of the lines typed into it exceeds the field's initial height? Here's an example where the field's initial height in 10em. \usemodule[fields] \setupinteraction[state=start] \setupfield [TextSetup] [width=\textwidth, height=10em, background=screen, backgroundscreen=.97, frame=off] \definefield [Block] [text] [TextSetup] [] [What's on your mind?] \starttext \field [Block] [type here] \stoptext I have a situation where the amount of text typed into various fields will vary, but it is inappropriate to reserve a large block of space for each field. Any suggestions would be greatly appreciated. -- With kind regards, Michael Guravage ___ 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] Widget and mandatory Rect field?
> 17 0 obj > << > /Type /Annot > /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 > 0 rg 0 0 0 RG) /MK << /CA () >> /F 4 > /Rect [0 14.4275 59.7758 26.3827] > >> > endobj > 18 0 obj > << > /Type /Annot > /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 > 0 rg 0 0 0 RG) /MK << /CA () >> /F 4 > /Rect [0 0 59.7758 11.9552] > >> > endobj > > which look like Annot's with Rect's to me. There is a parent field I was puzzled by this too, but apparently its the parent where the error message is thrown out (rightly or falsely). > Are you saying that Evince does forms (and Javascript as it's > associated) or is it checking something that is not interpreted anyway? > Officially a viewer should ignore annots that it cannot handle. Evince does forms by now, at least to some extent, without JavaScript of course. I've tested this: http://help.adobe.com/en_US/Acrobat/9.0/Samples/interactiveform_enabled.pdf which gives me a "Unimplemented annotation: POPPLER_ANNOT_LINE, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase." So there must be some checking. > Anyhow, in context we've always had such widgets implemented using a > parent / child model and it's the child that matters for rendering (and > it definitely has a Rect as it's an Annot) while the parent is just a > dictionary and not an annot (one can argue that the Subtype key is not > needed there but - at least in the past - it had to be there.) Sounds fair enough, and I'm not complaining :). > So, unless I'm sure what (and if something) is wrong I'll do nothing. > (Acrobat preflights the document all right and some widgets types are > too instable to mess with too much anyway.) That's fine, and as long as its working I don't really care. > Hans Cheers Adam ___ 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] Widget and mandatory Rect field?
On 18-4-2011 7:31, Reviczky, Adam wrote: Hi I have a PDF with widgets and everything's fine with it, and I'm testing it by opening it with Adobe Reader. Now I had a look again with other viewers and when I open it with evince (poppler based), then it gives me some strange errors like this: "Error: Annotation rectangle is wrong type" Though it opens it fine and no problems at all. there can also be a puzzling FormFieldButton::setState called on a readOnly field I googled a bit and found a bug report on this: https://bugs.freedesktop.org/show_bug.cgi?id=29954 There it is said that its ConTeXt's fault, as "It has a Widget annotation without the mandatory Rect field". Is it really so? I couldn't find any threads on this on the list. \nopdfcompression \setupinteraction[state=start] \definefieldbody[email][type=line] \starttext \startTEXpage \fieldbody[email] \par \fieldbody[email] \stopTEXpage \stoptext gives 17 0 obj << /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK << /CA () >> /F 4 /Rect [0 14.4275 59.7758 26.3827] >> endobj 18 0 obj << /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK << /CA () >> /F 4 /Rect [0 0 59.7758 11.9552] >> endobj which look like Annot's with Rect's to me. There is a parent field 16 0 obj << /Q 0 /Subtype /Widget /T /F 4 /Kids 15 0 R /V /DV /Ff 0 /MaxLen 1024 /FT /Tx /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) >> endobj but it's not an annot (just a container for shared data). (Actually children can have different rectangles so it would not make sense to share one). Can someone confirm this, can this be even fixed? Are you saying that Evince does forms (and Javascript as it's associated) or is it checking something that is not interpreted anyway? Officially a viewer should ignore annots that it cannot handle. Anyhow, in context we've always had such widgets implemented using a parent / child model and it's the child that matters for rendering (and it definitely has a Rect as it's an Annot) while the parent is just a dictionary and not an annot (one can argue that the Subtype key is not needed there but - at least in the past - it had to be there.) BTW, I'm currently playing with the luatex epdf interface (under construction and being cleaned up for 0.70) and I noticed the same message. Interesting is that there are such widget tests in popler but at the same time more important tests (arrays getting out of bounds leading to crashes) are not there. But Hartmut is working on getting that all fixed in the luatex variant (interface) eventually. The mentioned message probably have to be intercepted as well and be fed into the regular message system. So, unless I'm sure what (and if something) is wrong I'll do nothing. (Acrobat preflights the document all right and some widgets types are too instable to mess with too much anyway.) 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] Widget and mandatory Rect field?
Hi I have a PDF with widgets and everything's fine with it, and I'm testing it by opening it with Adobe Reader. Now I had a look again with other viewers and when I open it with evince (poppler based), then it gives me some strange errors like this: "Error: Annotation rectangle is wrong type" Though it opens it fine and no problems at all. I googled a bit and found a bug report on this: https://bugs.freedesktop.org/show_bug.cgi?id=29954 There it is said that its ConTeXt's fault, as "It has a Widget annotation without the mandatory Rect field". Is it really so? I couldn't find any threads on this on the list. Can someone confirm this, can this be even fixed? Adam PS: As there's an attached PDF on the bug report, but with mkii, I'm attaching a minimal mkiv PDF (widget.pdf), if that helps. made with: %%% \setupinteraction[state=start] \setuppagenumbering[location=] \starttext \definefieldbody[email][type=line] \fieldbody[email] \stoptext %%% widget.pdf Description: widget.pdf ___ 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] Third field of useURL
2011/3/5 Philipp Gesang > On 2011-03-05 <19:33:45>, Cecil Westerhof wrote: > > At http://wiki.contextgarden.net/Reference/en/useURL there is a > description > > of useURL. I am using it for HTTP and e-mail referencing. But I do not > > understand where the third parameter is used for, > > There’s a minimal explanation added by Taco a while ago to [1]. > Appears to be legacy syntax by now. > Thanks, that made things more clear. -- Cecil Westerhof ___ 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] Third field of useURL
On 2011-03-05 <19:33:45>, Cecil Westerhof wrote: > At http://wiki.contextgarden.net/Reference/en/useURL there is a description > of useURL. I am using it for HTTP and e-mail referencing. But I do not > understand where the third parameter is used for, Good evening, Cecil There’s a minimal explanation added by Taco a while ago to [1]. Appears to be legacy syntax by now. Regards, Philipp [1] http://wiki.contextgarden.net/url#Overview > > -- > Cecil Westerhof > ___ > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpwPQxJYdImX.pgp Description: PGP signature ___ 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] Third field of useURL
At http://wiki.contextgarden.net/Reference/en/useURL there is a description of useURL. I am using it for HTTP and e-mail referencing. But I do not understand where the third parameter is used for, -- Cecil Westerhof ___ 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] field alignment bug in latest beta
Hi, The alignment doesn't apply anymore to the first field (widget) in the latest beta. Here's the minimal example: % begin of example \starttext \setupfield [ShortLine] [label,frame,horizontal] [offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80] [height=18pt,width=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl] \startalignment[middle] \field [Email] [your email] \par \field [Email] [your email] \stopalignment \stoptext % end of example works with: beta 2011-01-24 (see attached pdf) doesn't work with: beta 2011-01-25 (see attached pdf) Best wishes, Adam beta20110124.pdf Description: beta20110124.pdf beta20110125.pdf Description: beta20110125.pdf ___ 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] mtx-context.lua:1161: attempt to call field 'join' (a nil value)
Hello, context --purgeall gives this error: ...ex/texmf-context/scripts/context/lua/mtx-context.lua:1161: attempt to call field 'join' (a nil value) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] strc-not.lua:87: attempt to index field '?' (a nil value)
On 26-7-2010 11:33, Peter Münster wrote: Hello, Perhaps I don't use localfootnotes the right way? Example: \starttext blub\footnote{blub} bla \startlocalfootnotes blub\footnote{blub} \placelocalfootnotes \stoplocalfootnotes \stoptext fixed in next upload - 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] strc-not.lua:87: attempt to index field '?' (a nil value)
Hello, Perhaps I don't use localfootnotes the right way? Example: \starttext blub\footnote{blub} bla \startlocalfootnotes blub\footnote{blub} \placelocalfootnotes \stoplocalfootnotes \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] LuaTeX error: attempt to index field '?' (a nil value)
latest minimals: $ context contextman ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-not.lua:87: attempt to index field '?' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/strc-not.lua:87: in function 'listindex' ...text/tex/texmf-context/tex/context/base/strc-not.lua:253: in function 'setsymbolpage' :1: in main chunk. I have not been able to identify what code is triggering this; My other projects compile without errors using this version of the minimals. Alan ___ 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] spac-ver.lua:580: attempt to index field 'spec'
Peter Münster wrote: Hello, With this test-file: \starttext \blank[force] bla \stoptext I get the following error: error: ...text/tex/texmf-context/tex/context/base/spac-ver.lua:580: attempt to index field 'spec' (a nil value) Workaround: \starttext \strut\blank bla \stoptext or \blank[force,10pt] Cheers, Peter -- - 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 - ___ 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] "Invalid field" in Mark IV
Aditya Mahajan wrote: On Wed, 13 May 2009, Flavien Lambert wrote: In the following example, it is the ";" that leads to the error \def\vect#1{% \overrightarrow{#1} } \starttext $({\rm O};\vect{e_{x}})$ \stoptext If you suppress it, it works fine. (???) Taco, the error also occurs with cambria. So, by your definition, it is an engine error. It isn't, it is caused by the lua postprocessing of math lists that does not deal with choice nodes properly. Hans should fix the lua code, but meanwhile I do have an 'almost' engine-level solution: \def\mathchoice#1#2#3#4% {\ifcase\mathstyle#1\or#1\or#2\or#2\or#3\or#3\or#4\or\#4\fi} 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] "Invalid field" in Mark IV
Flavien Lambert wrote: In the following example, it is the ";" that leads to the error \def\vect#1{% \overrightarrow{#1} } \starttext $({\rm O};\vect{e_{x}})$ \stoptext math-noa.lua: if nc == "po" then local last_noad = next_noad.next if last_noad and last_noad.id == math_noad and last_noad.subtype == noad_ord then patch around line 265 - 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 - ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] "Invalid field" in Mark IV
On Wed, 13 May 2009, Flavien Lambert wrote: In the following example, it is the ";" that leads to the error \def\vect#1{% \overrightarrow{#1} } \starttext $({\rm O};\vect{e_{x}})$ \stoptext If you suppress it, it works fine. (???) Taco, the error also occurs with cambria. So, by your definition, it is an engine error. Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] "Invalid field" in Mark IV
In the following example, it is the ";" that leads to the error \def\vect#1{% \overrightarrow{#1} } \starttext $({\rm O};\vect{e_{x}})$ \stoptext If you suppress it, it works fine. (???) 2009/5/13 Aditya Mahajan > On Wed, 13 May 2009, Flavien Lambert wrote: > > Dear all, I didn't use ConTeXt for some time and, so, have just >> re-installed >> the minimals tonight. When running on some of my files, Mark II does its >> job >> well but Mark IV tells me >> >> error: Invalid field id nucleus for node type choice (0) >> . >> l.133 ... M décrit l'axe $({\rm O};\vect{e_{x}})$ >> avec une vitesse >> $\dot{x}... >> >> I have absolutely no idea what it is trying to say to me... >> If related, the macro is defined by >> \def\vect#1{% >> \overrightarrow{#1} >> } >> > > Can you create a minimum example. This runs fine here > > \def\vect#1{% > \overrightarrow{#1}} > > \starttext > $\vect{e_{x}}$ > \stoptext > > Using ConTeXt ver: 2009.05.12 22:35 MKIV > > Aditya > > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > > -- Flavien. "Quantum objects are completely crazy but, at least, they are all crazy in the same way." R.P. Feynman. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] "Invalid field" in Mark IV
On Wed, 13 May 2009, Flavien Lambert wrote: Dear all, I didn't use ConTeXt for some time and, so, have just re-installed the minimals tonight. When running on some of my files, Mark II does its job well but Mark IV tells me error: Invalid field id nucleus for node type choice (0) . l.133 ... M décrit l'axe $({\rm O};\vect{e_{x}})$ avec une vitesse $\dot{x}... I have absolutely no idea what it is trying to say to me... If related, the macro is defined by \def\vect#1{% \overrightarrow{#1} } Can you create a minimum example. This runs fine here \def\vect#1{% \overrightarrow{#1}} \starttext $\vect{e_{x}}$ \stoptext Using ConTeXt ver: 2009.05.12 22:35 MKIV Aditya___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] "Invalid field" in Mark IV
Dear all, I didn't use ConTeXt for some time and, so, have just re-installed the minimals tonight. When running on some of my files, Mark II does its job well but Mark IV tells me error: Invalid field id nucleus for node type choice (0) . l.133 ... M décrit l'axe $({\rm O};\vect{e_{x}})$ avec une vitesse $\dot{x}... I have absolutely no idea what it is trying to say to me... If related, the macro is defined by \def\vect#1{% \overrightarrow{#1} } Regards, -- Flavien. "Quantum objects are completely crazy but, at least, they are all crazy in the same way." R.P. Feynman. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter: address field
On Tue, Jul 8, 2008 at 3:29 PM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > On Tue, Jul 8, 2008 at 2:49 PM, Oliver Buerschaper > <[EMAIL PROTECTED]> wrote: >> Dear Wolfgang, >> >> is it possible to centre the text block in the address field >> vertically? At the moment the address is typeset with a constant >> vertical offset (measured from the top) which causes lengthy address >> data to look slightly off balance … > > Try the following settings. The names can change. > > \setupletterstyle > [address][dispatch] > [height=0pt] > > \setupletterstyle > [address][content] > [location=normal, > align={right,lohi}, > height=\vsize] I put a new version online and names changed, the setups is now: \setupletterstyle [dispatch] [height=0pt] or \setupletterstyle [option] [dispatch=no] and \setupletterstyle [addressee] [location=normal, align={right,lohi}, height=\vsize] Regards 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter: address field
On Tue, Jul 8, 2008 at 2:49 PM, Oliver Buerschaper <[EMAIL PROTECTED]> wrote: > Dear Wolfgang, > > is it possible to centre the text block in the address field > vertically? At the moment the address is typeset with a constant > vertical offset (measured from the top) which causes lengthy address > data to look slightly off balance … Try the following settings. The names can change. \setupletterstyle [address][dispatch] [height=0pt] \setupletterstyle [address][content] [location=normal, align={right,lohi}, height=\vsize] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Letter: address field
Dear Wolfgang, is it possible to centre the text block in the address field vertically? At the moment the address is typeset with a constant vertical offset (measured from the top) which causes lengthy address data to look slightly off balance … Thanks, Oliver ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Interactive slides---hidden field on every page
Michal Kvasnička schrieb: > Good morning or whatever you have now in Europe. > > It seems that my mail have come to the list, so I dare to repost it: > sometimes the only way to get an answer :) > I'm preparing my slides. Every slide is divided to three parts > (backgrounds): text, header, and bottom. I've got the navigation buttons > in the bottom. Now I'd like to add one more button that would open a > field on the current page---a field containing the list of content. I'd > like it to go to the \Topic I want to discuss and disappear. > > I tried this: > > \definefield[Content][check][HelpSetup][content][content] > \setupfields[reset] > \setupfield[HelpSetup] > [width=fit,height=fit,frame=off,option={readonly,hidden}] % > \definesymbol[content][\SomeContentText] > \def\SomeContentText{% > \startframedtext > [width=\textwidth, height=fit, frame=on, > background=color, backgroundcolor=tmava,framecolor=svetla]% > \placecontent} > \stopframedtext > } > % > \setupbackgrounds > [text] > [%backgroundoffset=10pt,%.5cm, >background={contentmenu,nextpage}] > % > \defineoverlay > [ContentOnOff] > > [{\goto{\framed[width=\overlaywidth,height=\overlayheight,frame=off]{\hss}}% > > [JS(Toggle_Hide{Content})]}]%\overlaybutton{JS(Toggle_Hide{Content})}] > % > \startinteractionmenu[bottom] > \setupinteraction > [color=svetla, > contrastcolor=black] > \hbox to 600pt{% > \raise0.4em\hbox{% > \framed[width=3em, height=0.7em, frame=off, > background={PageCounter,ContentOnOff}]{}} > \hss > \interactionbuttons[frame=off, width=8em] > [firstpage, > previouspage,nextpage, > lastpage, > PreviousJump,NextJump]% > \hbox to 1cm{\hss}% > \hbox to 44mm{% > \interactionbuttons[frame=off][CloseDocument]\hss}% > } > H Michel, if possible try to post a (not)running minimal example, so that people can directly test with the source. It's too time consuming to 'make it run' first. > However, it doesn't work: > > 1. The list of content is placed only on one page, not at all of them as > I would like. > \setupbackgrounds[state=repeat] > 2. The field supposed to show/hide it isn't clickable---it isn't > interactive, and does nothing. > \setupinteraction[state=start] > 3. I use \Topic and \Subject as heads, and I don't know how to put them > to the list of content. > a search for 'combinedlist' in the mail archive gives http://archive.contextgarden.net/message/20061020.082024.ded01b67.en.html > Can you possibly help me to solve this problem? > Not tested (just guessing), *maybe* HTH, Peter > Sincerely yours > Michal Kvasnicka > > > > > > > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Interactive slides---hidden field on every page
Good morning or whatever you have now in Europe. It seems that my mail have come to the list, so I dare to repost it: I'm preparing my slides. Every slide is divided to three parts (backgrounds): text, header, and bottom. I've got the navigation buttons in the bottom. Now I'd like to add one more button that would open a field on the current page---a field containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content][\SomeContentText] \def\SomeContentText{% \startframedtext [width=\textwidth, height=fit, frame=on, background=color, backgroundcolor=tmava,framecolor=svetla]% \placecontent} \stopframedtext } % \setupbackgrounds [text] [%backgroundoffset=10pt,%.5cm, background={contentmenu,nextpage}] % \defineoverlay [ContentOnOff] [{\goto{\framed[width=\overlaywidth,height=\overlayheight,frame=off]{\hss}}% [JS(Toggle_Hide{Content})]}]%\overlaybutton{JS(Toggle_Hide{Content})}] % \startinteractionmenu[bottom] \setupinteraction [color=svetla, contrastcolor=black] \hbox to 600pt{% \raise0.4em\hbox{% \framed[width=3em, height=0.7em, frame=off, background={PageCounter,ContentOnOff}]{}} \hss \interactionbuttons[frame=off, width=8em] [firstpage, previouspage,nextpage, lastpage, PreviousJump,NextJump]% \hbox to 1cm{\hss}% \hbox to 44mm{% \interactionbuttons[frame=off][CloseDocument]\hss}% } However, it doesn't work: 1. The list of content is placed only on one page, not at all of them as I would like. 2. The field supposed to show/hide it isn't clickable---it isn't interactive, and does nothing. 3. I use \Topic and \Subject as heads, and I don't know how to put them to the list of content. Can you possibly help me to solve this problem? Sincerely yours Michal Kvasnicka ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Interactive slides---hidden field on every page
Good morning or whatever you have now in Europe. I'm preparing my slides. Every slide is divided to three parts (backgrounds): text, header, and bottom. I've got the navigation buttons in the bottom. Now I'd like to add one more button that would open a field on the current page---a field containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content][\SomeContentText] \def\SomeContentText{% \startframedtext [width=\textwidth, height=fit, frame=on, background=color, backgroundcolor=tmava,framecolor=svetla]% \placecontent} \stopframedtext } % \setupbackgrounds [text] [%backgroundoffset=10pt,%.5cm, background={contentmenu,nextpage}] % \defineoverlay [ContentOnOff] [{\goto{\framed[width=\overlaywidth,height=\overlayheight,frame=off]{\hss}}% [JS(Toggle_Hide{Content})]}]%\overlaybutton{JS(Toggle_Hide{Content})}] % \startinteractionmenu[bottom] \setupinteraction [color=svetla, contrastcolor=black] \hbox to 600pt{% \raise0.4em\hbox{% \framed[width=3em, height=0.7em, frame=off, background={PageCounter,ContentOnOff}]{}} \hss \interactionbuttons[frame=off, width=8em] [firstpage, previouspage,nextpage, lastpage, PreviousJump,NextJump]% \hbox to 1cm{\hss}% \hbox to 44mm{% \interactionbuttons[frame=off][CloseDocument]\hss}% } However, it doesn't work: 1. The list of content is placed only on one page, not at all of them as I would like. 2. The field supposed to show/hide it isn't clickable---it isn't interactive, and does nothing. 3. I use \Topic and \Subject as heads, and I don't know how to put them to the list of content. Can you possibly help me to solve this problem? Sincerely yours Michal Kvasnicka ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] using of field failed when arrange subpages
Thank you any way. I hope it won't be a problem one day. On 4/17/07, Hans Hagen <[EMAIL PROTECTED]> wrote: Zhichu Chen wrote: > Hi, > > I've tried Hans' example introduced at mwidget-p.pdf , it's perfect. > But when > I was trying some subpage arrangements, it just failed. How could it > happen? > I guess either shiping out subpages forget the fields or something has > covered over them. Here's a small example (by the way, I don't > actually know > the meanings of the arguments of \dosetuparrangement, I'm very > appreciated > if someone could explain the macro to me.): > such features don't work well with arrangements 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 -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using of field failed when arrange subpages
Zhichu Chen wrote: > Hi, > > I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. > But when > I was trying some subpage arrangements, it just failed. How could it > happen? > I guess either shiping out subpages forget the fields or something has > covered over them. Here's a small example (by the way, I don't > actually know > the meanings of the arguments of \dosetuparrangement, I'm very > appreciated > if someone could explain the macro to me.): > such features don't work well with arrangements 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] using of field failed when arrange subpages
Hi everybody, I figured out that it is not because the fields are not treated nor they are overlapped by other materials. Only the JavaScript failed to excute the " Toggle_Hide" function. When I deleted hidden from \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] the fields are shown and fail to hide now. I think it can be a bug. I'm still looking for a solution but I'm new to ConTeXt. I hope you can help me with it. Any suggestion will be OK. On 4/16/07, Zhichu Chen <[EMAIL PROTECTED]> wrote: Hi, I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But when I was trying some subpage arrangements, it just failed. How could it happen? I guess either shiping out subpages forget the fields or something has covered over them. Here's a small example (by the way, I don't actually know the meanings of the arguments of \dosetuparrangement, I'm very appreciated if someone could explain the macro to me.): = \setupinteraction [state=start] \installpagearrangement TEMP {\dosetuparrangement{1}{1}{1}{0}{0}% \pusharrangedpageTEMP\poparrangedpagesAonly\relax} \def\pusharrangedpageTEMP#1% {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA \poparrangedpages \fi} \def\poparrangedpagesAonly {\ifnum\arrangedpageN>\zerocount \dontcomplain \paperwidth\arrangedpageX\paperwidth \paperheight\arrangedpageY\paperheight \outputarrangedbox\arrangedpageA \doglobal\newcounter\arrangedpageN \fi} \definepapersize [Column] [width=40pt, height=400pt, offset=0pt] \definepapersize [Scroll] [width=540pt, height=400pt, offset=0pt] \setuppapersize[Column][Scroll] \setuparranging[TEMP,background] \setuplayout [margin=0pt, width=fit, height=middle, leftmargin=0pt, rightmargin=0pt, leftedge=0pt, rightedge=0pt, header=0pt, footer=0pt, bottom=0pt, top=0pt, backspace=0pt, topspace=0pt, bottomspace=0pt, horoffset=0pt, veroffset=0pt, headerdistance=0pt, footerdistance=0pt, topdistance=0pt, bottomdistance=0pt] \pdfoptionpdfminorversion=6 \title{What?} \starttext \newcounter\abc \doglobal\increment\abc \setupfields [reset] \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background=color,backgroundcolor=white,framecolor=red] {Some texts}} \inright{\fitfield[\currenthelp]} Click \goto{here}[JS(Toggle_Hide{\currenthelp})] to see. \dorecurse{10}{\input knuth\endgraf} \stoptext = -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] using of field failed when arrange subpages
Hi, I've tried Hans' example introduced at mwidget-p.pdf, it's perfect. But when I was trying some subpage arrangements, it just failed. How could it happen? I guess either shiping out subpages forget the fields or something has covered over them. Here's a small example (by the way, I don't actually know the meanings of the arguments of \dosetuparrangement, I'm very appreciated if someone could explain the macro to me.): = \setupinteraction [state=start] \installpagearrangement TEMP {\dosetuparrangement{1}{1}{1}{0}{0}% \pusharrangedpageTEMP\poparrangedpagesAonly\relax} \def\pusharrangedpageTEMP#1% {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}0{11}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{9}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{7}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{5}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{3}0\arrangedpageA \or \handlearrangedpageXandY{#1}0{1}0\arrangedpageA \poparrangedpages \fi} \def\poparrangedpagesAonly {\ifnum\arrangedpageN>\zerocount \dontcomplain \paperwidth\arrangedpageX\paperwidth \paperheight\arrangedpageY\paperheight \outputarrangedbox\arrangedpageA \doglobal\newcounter\arrangedpageN \fi} \definepapersize [Column] [width=40pt, height=400pt, offset=0pt] \definepapersize [Scroll] [width=540pt, height=400pt, offset=0pt] \setuppapersize[Column][Scroll] \setuparranging[TEMP,background] \setuplayout [margin=0pt, width=fit, height=middle, leftmargin=0pt, rightmargin=0pt, leftedge=0pt, rightedge=0pt, header=0pt, footer=0pt, bottom=0pt, top=0pt, backspace=0pt, topspace=0pt, bottomspace=0pt, horoffset=0pt, veroffset=0pt, headerdistance=0pt, footerdistance=0pt, topdistance=0pt, bottomdistance=0pt] \pdfoptionpdfminorversion=6 \title{What?} \starttext \newcounter\abc \doglobal\increment\abc \setupfields [reset] \setupfield [HelpSetup] [width=1.2em,height=fit,frame=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background=color,backgroundcolor=white,framecolor=red] {Some texts}} \inright{\fitfield[\currenthelp]} Click \goto{here}[JS(Toggle_Hide{\currenthelp})] to see. \dorecurse{10}{\input knuth\endgraf} \stoptext = -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Question about field
I wish to understand how to make nested fields (is it's possible, of course), or better, how to make a tree of field. \clonefield seem to be some work, maybe it's a good place to start. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 'german' indention in radio field - [FINAL]
Thank you, Hans! From now on I'll test my "minmal" examples on contextgarden, before sending them. Greetings, Peter Hans Hagen wrote: Peter Rolf wrote: Hi there! After a new installation of Texlife my radio field example (4.10.) works (now?). But if you simply add \mainlanguage[de] the first button is indented again. Hmmm, it seems that my first example was too minimal. I've also tried [en] and [dk]; no problems. You need to change this in enco-fde,tex (i.e. remove the comment since it introduces a space) \startencoding[pdfdoc] \startlanguagespecifics[\s!de]% hm, a % is needed \defineactivecharacter " {\"} \stoplanguagespecifics \stopencoding ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 'german' indention in radio field
Peter Rolf wrote: Hi there! After a new installation of Texlife my radio field example (4.10.) works (now?). But if you simply add \mainlanguage[de] the first button is indented again. Hmmm, it seems that my first example was too minimal. I've also tried [en] and [dk]; no problems. You need to change this in enco-fde,tex (i.e. remove the comment since it introduces a space) \startencoding[pdfdoc] \startlanguagespecifics[\s!de]% hm, a % is needed \defineactivecharacter " {\"} \stoplanguagespecifics \stopencoding - 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] first element in radio field
Moin! First of all thanx to Hans and Willi for testing. It seems that I have to update my (pdf)etex to a newer version. No bug: lucky Hans, unlucky me ;) Willi Egger wrote: Hi Peter I tried your example wit the alpha version: This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2) ... ConTeXt ver: 2004.10.1 fmt: 2004.10.2 int: english mes: english Indentation as mentioned in your mail I can not see. -- however there are three things I do not really understand: 1. Though the frames are turned off for the unselected buttons, there are left and righthand lines along the buttonboxes. a result of \showmakeup (struts?) 2. When pointing on the first botton it turns correctly into the gray area but with changing the text into "InAreaX", but this text can not be selected in order to have it remaining. the names are not well choosen the prefix "X" in the button name means, that this button is inactive (X-ing off); only one button can be active in a radio field 3 When clicking on the second button the contents of the first butten changes into the value "NormalX" ... May be I do not get the idea of the radio-button ... maybe this is not a good example for learning radio fields :) Willi Hans Hagen wrote: Peter Rolf wrote: Hello all! This is my first attempt with fields, so I am not sure if this is a bug in context or my fault :) Anyway, the first element of my radio field is indented, while the following elements are ok. This is the case in horizontal and vertical arrangment. I added a minimal example... ConTeXt ver: 2004.10.1 fmt: 2004.10.3 int: english mes: german systems: pdfTeX version 111 -> please update systems: eTeX version 201 -> too old (bugs) it looks ok here, do others have the same problem? (\showmakeup may not be that handy in such cases) > \noindent > \vbox{% > \field[Button1] > \field[Button2] > \field[Button3] > } may better be: \noindent \vbox{\forgetall } . Greetings, Peter ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] first element in radio field
Hi Peter I tried your example wit the alpha version: This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2) ... ConTeXt ver: 2004.10.1 fmt: 2004.10.2 int: english mes: english Indentation as mentioned in your mail I can not see. -- however there are three things I do not really understand: 1. Though the frames are turned off for the unselected buttons, there are left and righthand lines along the buttonboxes. 2. When pointing on the first botton it turns correctly into the gray area but with changing the text into "InAreaX", but this text can not be selected in order to have it remaining. 3 When clicking on the second button the contents of the first butten changes into the value "NormalX" ... May be I do not get the idea of the radio-button ... Willi Hans Hagen wrote: Peter Rolf wrote: Hello all! This is my first attempt with fields, so I am not sure if this is a bug in context or my fault :) Anyway, the first element of my radio field is indented, while the following elements are ok. This is the case in horizontal and vertical arrangment. I added a minimal example... ConTeXt ver: 2004.10.1 fmt: 2004.10.3 int: english mes: german systems: pdfTeX version 111 -> please update systems: eTeX version 201 -> too old (bugs) it looks ok here, do others have the same problem? (\showmakeup may not be that handy in such cases) > \noindent > \vbox{% > \field[Button1] > \field[Button2] > \field[Button3] > } may better be: \noindent \vbox{\forgetall } Greetings, Peter % interface=en output=pdftex \setupcolors[state=start] \setupinteraction[state=start] \starttext \showmakeup \def\Buttonheight{8mm} \def\Buttonwidth{40mm} \def\ButtonUnselected#1{\framed[frame=off,strut=no,offset=overlay,align={right,lohi}, width=\Buttonwidth,height=\Buttonheight] {\xii#1}} \def\ButtonSelected#1{\framed[strut=no,offset=overlay,width=\Buttonwidth,height=\Buttonheight, align={right,lohi},background=color,backgroundcolor=lightgray,frame=on] {\xii#1}} \definesymbol[TbuttonA] [{\ButtonUnselected{Normal}}] \definesymbol[TbuttonB] [{\ButtonSelected{InArea}}] \definesymbol[TbuttonC] [{\ButtonSelected{LMbutton}}] \definesymbol[TbuttonX] [{\ButtonUnselected{NormalX}}] \definesymbol[TbuttonY] [{\ButtonSelected{InAreaX}}] \definesymbol[TbuttonZ] [{\ButtonSelected{LMbuttonX}}] \setupfield[button] [width=40mm, height=8mm, align=right, distance=0mm, fieldoffset=0bp, offset=none, strut=no, depth=0pt, frame=off, leftframe=on, rightframe=on, ] \setupfield[radiofield][vertical] % same for horizontal+\hbox [align=right, distance=0mm, offset=none, strut=no, fieldoffset=0mm, frame=on, empty=yes, option=empty, ] \definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1] \definesubfield[Button1] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \definesubfield[Button2] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \definesubfield[Button3] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \noindent \vbox{% \field[Button1] \field[Button2] \field[Button3] } \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] first element in radio field
Peter Rolf wrote: Hello all! This is my first attempt with fields, so I am not sure if this is a bug in context or my fault :) Anyway, the first element of my radio field is indented, while the following elements are ok. This is the case in horizontal and vertical arrangment. I added a minimal example... ConTeXt ver: 2004.10.1 fmt: 2004.10.3 int: english mes: german systems: pdfTeX version 111 -> please update systems: eTeX version 201 -> too old (bugs) it looks ok here, do others have the same problem? (\showmakeup may not be that handy in such cases) > \noindent > \vbox{% > \field[Button1] > \field[Button2] > \field[Button3] > } may better be: \noindent \vbox{\forgetall } Greetings, Peter % interface=en output=pdftex \setupcolors[state=start] \setupinteraction[state=start] \starttext \showmakeup \def\Buttonheight{8mm} \def\Buttonwidth{40mm} \def\ButtonUnselected#1{\framed[frame=off,strut=no,offset=overlay,align={right,lohi}, width=\Buttonwidth,height=\Buttonheight] {\xii#1}} \def\ButtonSelected#1{\framed[strut=no,offset=overlay,width=\Buttonwidth,height=\Buttonheight, align={right,lohi},background=color,backgroundcolor=lightgray,frame=on] {\xii#1}} \definesymbol[TbuttonA] [{\ButtonUnselected{Normal}}] \definesymbol[TbuttonB] [{\ButtonSelected{InArea}}] \definesymbol[TbuttonC] [{\ButtonSelected{LMbutton}}] \definesymbol[TbuttonX] [{\ButtonUnselected{NormalX}}] \definesymbol[TbuttonY] [{\ButtonSelected{InAreaX}}] \definesymbol[TbuttonZ] [{\ButtonSelected{LMbuttonX}}] \setupfield[button] [width=40mm, height=8mm, align=right, distance=0mm, fieldoffset=0bp, offset=none, strut=no, depth=0pt, frame=off, leftframe=on, rightframe=on, ] \setupfield[radiofield][vertical] % same for horizontal+\hbox [align=right, distance=0mm, offset=none, strut=no, fieldoffset=0mm, frame=on, empty=yes, option=empty, ] \definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1] \definesubfield[Button1] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \definesubfield[Button2] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \definesubfield[Button3] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \noindent \vbox{% \field[Button1] \field[Button2] \field[Button3] } \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context -- - 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 - test.pdf Description: Adobe PDF document ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] first element in radio field
Hello all! This is my first attempt with fields, so I am not sure if this is a bug in context or my fault :) Anyway, the first element of my radio field is indented, while the following elements are ok. This is the case in horizontal and vertical arrangment. I added a minimal example... ConTeXt ver: 2004.10.1 fmt: 2004.10.3 int: english mes: german systems: pdfTeX version 111 -> please update systems: eTeX version 201 -> too old (bugs) Greetings, Peter % interface=en output=pdftex \setupcolors[state=start] \setupinteraction[state=start] \starttext \showmakeup \def\Buttonheight{8mm} \def\Buttonwidth{40mm} \def\ButtonUnselected#1{\framed[frame=off,strut=no,offset=overlay,align={right,lohi}, width=\Buttonwidth,height=\Buttonheight] {\xii#1}} \def\ButtonSelected#1{\framed[strut=no,offset=overlay,width=\Buttonwidth,height=\Buttonheight, align={right,lohi},background=color,backgroundcolor=lightgray,frame=on] {\xii#1}} \definesymbol[TbuttonA] [{\ButtonUnselected{Normal}}] \definesymbol[TbuttonB] [{\ButtonSelected{InArea}}] \definesymbol[TbuttonC] [{\ButtonSelected{LMbutton}}] \definesymbol[TbuttonX] [{\ButtonUnselected{NormalX}}] \definesymbol[TbuttonY] [{\ButtonSelected{InAreaX}}] \definesymbol[TbuttonZ] [{\ButtonSelected{LMbuttonX}}] \setupfield[button] [width=40mm, height=8mm, align=right, distance=0mm, fieldoffset=0bp, offset=none, strut=no, depth=0pt, frame=off, leftframe=on, rightframe=on, ] \setupfield[radiofield][vertical] % same for horizontal+\hbox [align=right, distance=0mm, offset=none, strut=no, fieldoffset=0mm, frame=on, empty=yes, option=empty, ] \definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1] \definesubfield[Button1] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \definesubfield[Button2] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \definesubfield[Button3] [button] [{TbuttonA,TbuttonB,TbuttonC},{TbuttonX,TbuttonY,TbuttonZ}] \noindent \vbox{% \field[Button1] \field[Button2] \field[Button3] } \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Stumped on Field
<[EMAIL PROTECTED]> writes: > In s-mag-01.tex, I am completely baffled by: > > \startusableMPgraphic{text} > StartPage ; > for i=Header,Text,Footer: >for j=LeftEdge,LeftMargin,Text,RightMargin,RightEdge: > draw Field[i][j] withpen pencircle scaled 0.5pt; >endfor; > endfor; > StopPage; > setbounds currentpicture to Field[Text][Text] ; > \stopusableMPgraphic Besides the already mentioned metafun manual, there is (on this topic) a small illustration at http://levana.de/context/layout/page.pdf Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Stumped on Field
All, In s-mag-01.tex, I am completely baffled by: \startusableMPgraphic{text} StartPage ; for i=Header,Text,Footer: for j=LeftEdge,LeftMargin,Text,RightMargin,RightEdge: draw Field[i][j] withpen pencircle scaled 0.5pt; endfor; endfor; StopPage; setbounds currentpicture to Field[Text][Text] ; \stopusableMPgraphic I can find no references of Field anywhere, not in s-mag-01, nor in any files in my texmf tree, nor in documentation, ... Huh? Anyone have a clue? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Stumped on Field
Seb, Good reference. I'll explore this tomorrow. Thanks. At 09:00 AM 8/5/03 +0200, you wrote: >[EMAIL PROTECTED] wrote: > >>All, >> >>In s-mag-01.tex, I am completely baffled by: >> >>\startusableMPgraphic{text} >> StartPage ; >> for i=Header,Text,Footer: >> for j=LeftEdge,LeftMargin,Text,RightMargin,RightEdge: >>draw Field[i][j] withpen pencircle scaled 0.5pt; >> endfor; >> endfor; >> StopPage; >> setbounds currentpicture to Field[Text][Text] ; >>\stopusableMPgraphic >> >>I can find no references of Field anywhere, not in s-mag-01, nor in any >>files in my texmf tree, nor in documentation, ... >> >>Huh? >> >Hi, >See metapost\context\base\mp-page.mp >and the manuel metafun-s.pdf, pages 282 and following > > Seb. > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Stumped on Field
[EMAIL PROTECTED] wrote: All, In s-mag-01.tex, I am completely baffled by: \startusableMPgraphic{text} StartPage ; for i=Header,Text,Footer: for j=LeftEdge,LeftMargin,Text,RightMargin,RightEdge: draw Field[i][j] withpen pencircle scaled 0.5pt; endfor; endfor; StopPage; setbounds currentpicture to Field[Text][Text] ; \stopusableMPgraphic I can find no references of Field anywhere, not in s-mag-01, nor in any files in my texmf tree, nor in documentation, ... Huh? Hi, See metapost\context\base\mp-page.mp and the manuel metafun-s.pdf, pages 282 and following Seb. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context