Re: [NTG-context] Margin text in doublesided documents
Am 04.04.2011 um 23:56 schrieb C.: Hello, in my doublesided document \inmargin texts are always on the left side of the body text. \inmargin is configures to be always in the left margin, you can use \inothermargin to put the text in the opposite margin or use \inoutermargin to put the text always in the outer margin or you can configure \inmargin to be always in the outer margin \setupmargindata[inmargin][location=outer,align=inner] Also, is \setupinmargindata equivalent to the old \setupinmargin? I could not find any documentation about it. Because the command is new and nobody documented it so far. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] No indent after a flowchart
Am 05.04.2011 um 01:26 schrieb Cecil Westerhof: I am using indent, but do not want indent in the first paragraph. A paragraph after a flowchart is always the first paragraph. Is there a way to have no indent in that paragraph? I could put a \myblank between the flowchart and the paragraph. But that is not a very neat solution. untested: \definefloat[flowchart][default=force,indentnext=no] %\setupcaption[flowchart][number=none] \starttext ... \placeflowchart{}{\FLOWchart[...]} ... \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] No indent after a flowchart
2011/4/5 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 05.04.2011 um 01:26 schrieb Cecil Westerhof: I am using indent, but do not want indent in the first paragraph. A paragraph after a flowchart is always the first paragraph. Is there a way to have no indent in that paragraph? I could put a \myblank between the flowchart and the paragraph. But that is not a very neat solution. untested: \definefloat[flowchart][default=force,indentnext=no] %\setupcaption[flowchart][number=none] \starttext ... \placeflowchart{}{\FLOWchart[...]} ... \stoptext Works, thanks. One more thing. Should after a pagebreak there also be no indent? After one of my flowcharts I had: \myblank \pagebreak But I would expect that the first paragraph on a page would not have an indent. But that could be the wrong expectation. -- 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] Using forms and saving values
Am 05.04.2011 03:19, schrieb Cecil Westerhof: 2011/4/4 Wolfgang Schuster schuster.wolfg...@googlemail.com mailto:schuster.wolfg...@googlemail.com http://www.pragma-ade.com/show-man-22.htm I tried the first example from fill-in fields: \starttext A few years back, \TEX\ could only produce \fillinfield [dvi]{\DVI} output, but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly produce \fillinfield [pdf] {\PDF}! Nice eh? Actually, while the first field module was prototyped in \ACROBAT, the current implementation was debugged in \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield [ConTeXt] {\CONTEXT} is rather advanced and complete and all kind of fields are supported. One can hook in appearances, and validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields can be cloned and copied, where the latter saves some space. By using \fillinfield {objects} when suited, this module saves space anyway. \stoptext But I get: mtx-context | run 1: luatex --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --backend=pdf ./test This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (test.tex ConTeXt ver: 2011.03.27 14:48 MKIV fmt: 2011.3.27 int: english/english system cont-new.mkiv loaded (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test at line 1 ! Undefined control sequence. system tex error on line 4 in file test.tex: Undefined control sequence ... \def\DVI{DVI} \def\PDF{PDF} \def\ACROBAT{Acrobat} \def\JAVASCRIPT{Javascript} 1 \starttext 2 3 A few years back, \TEX\ could only produce 4 \fillinfield [dvi]{\DVI} output, 5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly produce \fillinfield [pdf] {\PDF}! 6 Nice eh? Actually, while the first field module was prototyped 7 in \ACROBAT, the current implementation was debugged in 8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield 9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all 10 kind of fields are supported. One can hook in appearances, and 11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields 12 can be cloned and copied, where the latter saves some space. By 13 using \fillinfield {objects} when suited, this module saves 14 space anyway. l.4 \fillinfield [dvi]{\DVI} output, What is happening here? I guess Hans has removed some obsolete definitions :-) Best wishes, Peter -- 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 ___ ___ 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] Using forms and saving values
2011/4/5 Peter Rolf indi...@gmx.net \starttext A few years back, \TEX\ could only produce \fillinfield [dvi]{\DVI} output, but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly produce \fillinfield [pdf] {\PDF}! Nice eh? Actually, while the first field module was prototyped in \ACROBAT, the current implementation was debugged in \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield [ConTeXt] {\CONTEXT} is rather advanced and complete and all kind of fields are supported. One can hook in appearances, and validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields can be cloned and copied, where the latter saves some space. By using \fillinfield {objects} when suited, this module saves space anyway. \stoptext But I get: mtx-context | run 1: luatex --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --backend=pdf ./test This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (test.tex ConTeXt ver: 2011.03.27 14:48 MKIV fmt: 2011.3.27 int: english/english system cont-new.mkiv loaded (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test at line 1 ! Undefined control sequence. system tex error on line 4 in file test.tex: Undefined control sequence ... I tried the first example from fill-in fields: \def\DVI{DVI} \def\PDF{PDF} \def\ACROBAT{Acrobat} \def\JAVASCRIPT{Javascript} 1 \starttext 2 3 A few years back, \TEX\ could only produce 4 \fillinfield [dvi]{\DVI} output, 5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly produce \fillinfield [pdf] {\PDF}! 6 Nice eh? Actually, while the first field module was prototyped 7 in \ACROBAT, the current implementation was debugged in 8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield 9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all 10 kind of fields are supported. One can hook in appearances, and 11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields 12 can be cloned and copied, where the latter saves some space. By 13 using \fillinfield {objects} when suited, this module saves 14 space anyway. l.4 \fillinfield [dvi]{\DVI} output, What is happening here? I guess Hans has removed some obsolete definitions :-) Does not make a difference. I have the same problem. -- 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] Using forms and saving values
Am 05.04.2011 12:31, schrieb Cecil Westerhof: 2011/4/5 Peter Rolf indi...@gmx.net mailto:indi...@gmx.net \starttext A few years back, \TEX\ could only produce \fillinfield [dvi]{\DVI} output, but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly produce \fillinfield [pdf] {\PDF}! Nice eh? Actually, while the first field module was prototyped in \ACROBAT, the current implementation was debugged in \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield [ConTeXt] {\CONTEXT} is rather advanced and complete and all kind of fields are supported. One can hook in appearances, and validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields can be cloned and copied, where the latter saves some space. By using \fillinfield {objects} when suited, this module saves space anyway. \stoptext But I get: mtx-context | run 1: luatex --fmt=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en --lua=/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui --backend=pdf ./test This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (test.tex ConTeXt ver: 2011.03.27 14:48 MKIV fmt: 2011.3.27 int: english/english system cont-new.mkiv loaded (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system test.top loaded (test.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded system begin file test at line 1 ! Undefined control sequence. system tex error on line 4 in file test.tex: Undefined control sequence ... I tried the first example from fill-in fields: \def\DVI{DVI} \def\PDF{PDF} \def\ACROBAT{Acrobat} \def\JAVASCRIPT{Javascript} 1 \starttext 2 3 A few years back, \TEX\ could only produce 4 \fillinfield [dvi]{\DVI} output, 5 but nowadays, thanks to \fillinfield {Han The Thanh}, we can also directly produce \fillinfield [pdf] {\PDF}! 6 Nice eh? Actually, while the first field module was prototyped 7 in \ACROBAT, the current implementation was debugged in 8 \fillinfield [pdfTeX] {\PDFTEX}. Field support in \fillinfield 9 [ConTeXt] {\CONTEXT} is rather advanced and complete and all 10 kind of fields are supported. One can hook in appearances, and 11 validation \fillinfield [JavaScripts] {\JAVASCRIPT}’s. Fields 12 can be cloned and copied, where the latter saves some space. By 13 using \fillinfield {objects} when suited, this module saves 14 space anyway. l.4 \fillinfield [dvi]{\DVI} output, What is happening here? I guess Hans has removed some obsolete definitions :-) Does not make a difference. I have the same problem. strange. the error here is caused by the undefined '\DVI' macro (outdated context from 26.01.2011). loading the right module (preferred) or using a separate definition should solve this. is your fault caused by an undefined '\fillinfield' then? you can test it by replacing the '\DVI' macro with the text 'DVI'. -- 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 ___ ___ 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 /
[NTG-context] Sectionmark
Hello, what is the name of the command to typeset the symbol SectionMark, Paragraph, SectionSign or how is is called correctly? The symbol which looks like: _ / \ \__ / \ || \__/ \ \_/ (Typeset by \textsection in LaTeX.) Kind regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Margin text in doublesided documents
Hello, in my doublesided document \inmargin texts are always on the left side of the body text. \inmargin is configures to be always in the left margin, you can use \inothermargin to put the text in the opposite margin or use \inoutermargin to put the text always in the outer margin or you can configure \inmargin to be always in the outer margin \inothermargin gives Undefined control sequence \inoutermargin works great! \setupmargindata[inmargin][location=outer,align=inner] Hm, tried that. The margin text did move to the outer margin, but it was aligned to the paper boarder, not to the body text. (i.e. it was set ragged left/flush right on an odd page) Also, is \setupinmargindata equivalent to the old \setupinmargin? I could not find any documentation about it. Because the command is new and nobody documented it so far. I see. Thank you for your reply and have a nice day. Christian ___ 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] Sectionmark
Am 05.04.2011 um 13:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, what is the name of the command to typeset the symbol SectionMark, Paragraph, SectionSign or how is is called correctly? The symbol which looks like: \starttext § \sectionmark \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin text in doublesided documents
Am 05.04.2011 um 13:23 schrieb C.: \setupmargindata[inmargin][location=outer,align=inner] Hm, tried that. The margin text did move to the outer margin, but it was aligned to the paper boarder, not to the body text. (i.e. it was set ragged left/flush right on an odd page) \setupmarginframed[inmargin][align=inner] It would really help when you provide a minimal example because it’s very annoying to write always one by myself. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sectionmark
Am 05.04.2011 13:22, schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, what is the name of the command to typeset the symbol SectionMark, Paragraph, SectionSign or how is is called correctly? The symbol which looks like: _ / \ \__ / \ || \__/ \ \_/ \sectionmark ? § (167, 0x00A7) in mkiv there should be no need to use a macro. you can type it in (more or less) directly. i use babelmap on windows to get the correct char/code. http://www.babelstone.co.uk/Software/BabelMap.html there are probably similar programs for other os... (Typeset by \textsection in LaTeX.) Kind regards, Lukas ___ 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] Sectionmark
Yes, \sectionmark is it. Thank you. Lukas _ / \ \__ / \ || \__/ \ \_/ \sectionmark ? ___ 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] Using forms and saving values
2011/4/5 Peter Rolf indi...@gmx.net strange. the error here is caused by the undefined '\DVI' macro (outdated context from 26.01.2011). loading the right module (preferred) or using a separate definition should solve this. is your fault caused by an undefined '\fillinfield' then? you can test it by replacing the '\DVI' macro with the text 'DVI'. Does still not work: 9 \fillinfield [dvi]{DVI} output, Or do you mean that \fillinfield is not defined. Which module should I use for this then? -- 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] Using forms and saving values
Am 05.04.2011 14:06, schrieb Cecil Westerhof: 2011/4/5 Peter Rolf indi...@gmx.net mailto:indi...@gmx.net strange. the error here is caused by the undefined '\DVI' macro (outdated context from 26.01.2011). loading the right module (preferred) or using a separate definition should solve this. is your fault caused by an undefined '\fillinfield' then? you can test it by replacing the '\DVI' macro with the text 'DVI'. Does still not work: 9 \fillinfield [dvi]{DVI} output, Or do you mean that \fillinfield is not defined. Which module should I use for this then? yes, '\fillinfield' is not defined somehow. but the needed module 'scrn-fld.mkiv' should be loaded automatically in 'context.mkiv'. can you locate the file with mtxrun.exe --locate scrn-fld.mkiv -- 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 ___ ___ 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] Wiki discussion: Fwd: Ctx wiki
2011/4/1 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: - Why there is %5C in the links above? Any way how to avoid this? Most likely because \ is technically not a valid character in URLs (I didn't check the RFC) and so is hex encoded as %5C. Best Martin ___ 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] Using forms and saving values
Am 05.04.2011 15:10, schrieb Hans Hagen: On 5-4-2011 2:41, Peter Rolf wrote: mtxrun.exe --locate scrn-fld.mkiv it's a mkvi module (subtle difference) sorry, wrong command line how about luatools --find-file scrn-fld.mkiv - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
2011/4/5 Peter Rolf indi...@gmx.net Am 05.04.2011 14:06, schrieb Cecil Westerhof: 2011/4/5 Peter Rolf indi...@gmx.net mailto:indi...@gmx.net strange. the error here is caused by the undefined '\DVI' macro (outdated context from 26.01.2011). loading the right module (preferred) or using a separate definition should solve this. is your fault caused by an undefined '\fillinfield' then? you can test it by replacing the '\DVI' macro with the text 'DVI'. Does still not work: 9 \fillinfield [dvi]{DVI} output, Or do you mean that \fillinfield is not defined. Which module should I use for this then? yes, '\fillinfield' is not defined somehow. but the needed module 'scrn-fld.mkiv' should be loaded automatically in 'context.mkiv'. can you locate the file with mtxrun.exe --locate scrn-fld.mkiv No, because I use Linux. I tried: find ~/ConTeXt -name scrn-fld.mkiv But this did find nothing. I also tried: find ~/ConTeXt -name '*fld*' This gives: /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.lua /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-fld.mkii /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.mkii /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/lpdf-fld.lua /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/java-imp-fld.mkiv /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.mkvi Maybe the last one is wrong? .mkvi instead of .mkiv. It starts with: %D \module %D [ file=scrn-fld, %Dversion=1997.05.18, %D title=\CONTEXT\ Screen Macros, %D subtitle=Fields, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \ Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. % There is still some leftover code from mkii, where we need to % be sparse with hash entries and so have a somewhat complex % setup mechanism. % interaction checking \writestatus{loading}{ConTeXt Screen Macros / Fields} \unprotect \registerctxluafile{scrn-fld}{1.001} %D In \MKII\ we had to cheat a bit with setups in order not to run %D out of memory with thousands of fields, which we happen to need at %D that time. In \MKIV\ we can store some data at the \LUA\ end and %D use a somewhat slower but quite okay inheritance mechanism. For %D this reason we now have split definitions, although the old method %D is still somewhat supported. The clone and copy commands are %D somewhat obsolete for several reasons: we can now use inheritance %D and autocloning has been supported for a while. In most cases %D cloning (especially with check boxes) the acrobat browser is not %D stable enough with respect to appearance handling. So I'll look what happens if I rename it. -- 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] Using forms and saving values
2011/4/5 Peter Rolf indi...@gmx.net Am 05.04.2011 15:10, schrieb Hans Hagen: On 5-4-2011 2:41, Peter Rolf wrote: mtxrun.exe --locate scrn-fld.mkiv it's a mkvi module (subtle difference) sorry, wrong command line how about luatools --find-file scrn-fld.mkiv Nothing. But maybe it should be .mkvi instead of .mkiv? That is found. -- 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] Using forms and saving values
Am 05.04.2011 um 15:39 schrieb Cecil Westerhof: /home/cecil/ConTeXt/tex/texmf-context/tex/context/base/scrn-fld.mkvi Maybe the last one is wrong? .mkvi instead of .mkiv. No, “mkvi” is a valid file extension for MkIV. The difference between a mkiv and a mkvi file is that you can use named parameters, e.g. \def\command#1#2{#1 : #2} can be written in a mkvi file as \def\command#first#second{#first : #second} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
Cecil Westerhof cldwester...@gmail.com writes: I tried the first example from fill-in fields: \starttext \usemodule[fields, abr-pseudocaps] \setupinteraction[state=start] \starttext -- Peter ___ 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] Using forms and saving values
2011/4/5 Peter Münster pmli...@free.fr Cecil Westerhof cldwester...@gmail.com writes: I tried the first example from fill-in fields: \starttext \usemodule[fields, abr-pseudocaps] \setupinteraction[state=start] \starttext That works. Now try to understand it. http://www.pragma-ade.com/show-man-22.htm should be changed then. -- 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] Using forms and saving values
Am 05.04.2011 15:42, schrieb Cecil Westerhof: 2011/4/5 Peter Rolf indi...@gmx.net mailto:indi...@gmx.net Am 05.04.2011 15:10, schrieb Hans Hagen: On 5-4-2011 2:41, Peter Rolf wrote: mtxrun.exe --locate scrn-fld.mkiv it's a mkvi module (subtle difference) sorry, wrong command line how about luatools --find-file scrn-fld.mkiv Nothing. But maybe it should be .mkvi instead of .mkiv? That is found. are you one of the pretesters for the upcoming MKVI? otherwise rename the file ;-) -- 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 ___ ___ 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] Using forms and saving values
On Tue, 5 Apr 2011, Cecil Westerhof wrote: 2011/4/5 Peter Münster pmli...@free.fr Cecil Westerhof cldwester...@gmail.com writes: I tried the first example from fill-in fields: \starttext \usemodule[fields, abr-pseudocaps] \setupinteraction[state=start] \starttext That works. Now try to understand it. http://www.pragma-ade.com/show-man-22.htm should be changed then. You should also include this info on the wiki. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
2011/4/5 Aditya Mahajan adit...@umich.edu You should also include this info on the wiki. I changed the page about the page about \fillinfield. Does not look very good, but better something as nothing. By the way: registering was a little bothersome. I needed to answer three validation questions. -- 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] Margin text in doublesided documents
I will remember to include a minimal example from now on. Here is the current: \setuplayout[location=doublesided] \setuppagenumbering[location=right,alternative=doublesided] \setupmargindata[inmargin][location=outer,align=inner] % almost correct. on odd pages wrong alignment % \setupmarginframed[inmargin][align=inner] % wrong side on odd pages, also wrong alignment \starttext \chapter{Chapter Knuth testing} \section{Section Knuth testing} \input knuth \inmargin{test}\input knuth\page \section{Section Knuth testing 2} bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla. \dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein Test.\dorecurse{5}{\input knuth}\inmargin{bla} \stoptext Note: \inoutermargin on page 3 behaves correctly, though it seems to have a different default style (why bold, anyway?). As for now, I'm using \inoutermargin . -Ursprüngliche Nachricht- Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] Gesendet: Dienstag, 5. April 2011 13:36 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Margin text in doublesided documents Am 05.04.2011 um 13:23 schrieb C.: \setupmargindata[inmargin][location=outer,align=inner] Hm, tried that. The margin text did move to the outer margin, but it was aligned to the paper boarder, not to the body text. (i.e. it was set ragged left/flush right on an odd page) \setupmarginframed[inmargin][align=inner] It would really help when you provide a minimal example because its very annoying to write always one by myself. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin text in doublesided documents
Whoops! Sent too early, this is the updated minimal example: \setuplayout[location=doublesided] \setuppagenumbering[location=right,alternative=doublesided] \setupmargindata[inmargin][location=outer,align=inner] % almost correct. on odd pages wrong alignment % \setupmarginframed[inmargin][align=inner] % wrong side on odd pages, also wrong alignment \starttext \chapter{Chapter Knuth testing} \section{Section Knuth testing} \input knuth \inmargin{test}\input knuth\page \section{Section Knuth testing 2} bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla. \dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein Test.\inoutermargin{this is OK}\dorecurse{5}{\input knuth}\inmargin{bla} \stoptext -Ursprüngliche Nachricht- Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] Gesendet: Dienstag, 5. April 2011 13:36 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Margin text in doublesided documents Am 05.04.2011 um 13:23 schrieb C.: \setupmargindata[inmargin][location=outer,align=inner] Hm, tried that. The margin text did move to the outer margin, but it was aligned to the paper boarder, not to the body text. (i.e. it was set ragged left/flush right on an odd page) \setupmarginframed[inmargin][align=inner] It would really help when you provide a minimal example because its very annoying to write always one by myself. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin text in doublesided documents
Am 05.04.2011 um 17:09 schrieb C.: Whoops! Sent too early, this is the updated minimal example: Works for me, the margin text is always at the outer margin and the text aligned to the body text. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
Am 05.04.2011 um 15:54 schrieb Peter Rolf: are you one of the pretesters for the upcoming MKVI? otherwise rename the file ;-) Have you read my mail about mkvi? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] (Ctx)Lua, diacritics string.upper()
Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper() gives PřEHLEDNá whilst the desired result is PŘEHLEDNÁ. Is there a way how to solve this? (Maybe another function than Lua's string.upper().) Kind regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] (Ctx)Lua, diacritics string.upper()
Am 05.04.2011 um 18:28 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper() gives PřEHLEDNá whilst the desired result is PŘEHLEDNÁ. Is there a way how to solve this? (Maybe another function than Lua's string.upper().) context.WORD(…) Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (Ctx)Lua, diacritics string.upper()
... Well, the situation is that the .cld creates an extra file where the converted (uppercased) string should be written. So I don't need to pass the string to Ctx to convert it and typeset, but to convert it first and to flush it to another file. Lukas On Tue, 05 Apr 2011 18:30:34 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.04.2011 um 18:28 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Hello, is there a possibility to use Ctx Lua to convert strings containing diacritics to upper/lower case? I have a .cld file, UTF-8, and (Přehledná):upper() gives PřEHLEDNá whilst the desired result is PŘEHLEDNÁ. Is there a way how to solve this? (Maybe another function than Lua's string.upper().) context.WORD(…) Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Using forms and saving values
Wolfgang Schuster schuster.wolfg...@googlemail.com writes: No, “mkvi” is a valid file extension for MkIV. The difference between a mkiv and a mkvi file is that you can use named parameters, e.g. Hello, Why mkvi and not mkv ? -- Peter ___ 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] (Ctx)Lua, diacritics string.upper()
Am 05.04.2011 um 18:34 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: ... Well, the situation is that the .cld creates an extra file where the converted (uppercased) string should be written. So I don't need to pass the string to Ctx to convert it and typeset, but to convert it first and to flush it to another file. \starttext \ctxsprint{Přehledná} \ctxsprint{utf.upper(Přehledná)} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
Am 05.04.2011 um 18:49 schrieb Peter Münster: Wolfgang Schuster schuster.wolfg...@googlemail.com writes: No, “mkvi” is a valid file extension for MkIV. The difference between a mkiv and a mkvi file is that you can use named parameters, e.g. Hello, Why mkvi and not mkv ? I guess because mkvi has four letters like mkii and mkiv but mkv ha only three. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin text in doublesided documents
What version(s)? -Ursprüngliche Nachricht- Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] Gesendet: Dienstag, 5. April 2011 17:26 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Margin text in doublesided documents Am 05.04.2011 um 17:09 schrieb C.: Whoops! Sent too early, this is the updated minimal example: Works for me, the margin text is always at the outer margin and the text aligned to the body text. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin text in doublesided documents
Am 05.04.2011 um 18:56 schrieb C.: What version(s)? mtx-context | current version: 2011.04.03 22:32 and mtx-context | current version: 2011.04.05 16:47 Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
2011/4/5 Peter Münster pmli...@free.fr: Why mkvi and not mkv ? Maybe Hans doesn't like Ritchie Blackmore :-) http://en.wikipedia.org/wiki/List_of_Deep_Purple_band_members Best Martin ___ 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] Using forms and saving values
On Tue, 5 Apr 2011, Wolfgang Schuster wrote: Am 05.04.2011 um 18:49 schrieb Peter Münster: Wolfgang Schuster schuster.wolfg...@googlemail.com writes: No, “mkvi” is a valid file extension for MkIV. The difference between a mkiv and a mkvi file is that you can use named parameters, e.g. Hello, Why mkvi and not mkv ? I guess because mkvi has four letters like mkii and mkiv but mkv ha only three. So the next versions will be mkix, mkxi, mkxv, mkxx, mkxl, mkli, mklv, and mkxc. It is gonig to get confusing real soon :) BTW, does anyone has a minimal example on how to use mkvi syntax. I tried a few examples, but the best that I could do was using one of the mtx-* scripts to convert mkvi to tex (And that conversion does not work for \starttextdefinition ... \stoptexdefinition). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using forms and saving values
Am 05.04.2011 um 20:23 schrieb Aditya Mahajan: BTW, does anyone has a minimal example on how to use mkvi syntax. I tried a few examples, but the best that I could do was using one of the mtx-* scripts to convert mkvi to tex (And that conversion does not work for \starttextdefinition ... \stoptexdefinition). http://www.ntg.nl/pipermail/ntg-context/2010/054629.html example % macros=mkvi \def\one#one#two{#one : #two} \def\two{\dosingleempty\dofoo} \def\dofoo[#optional]#mandatory% {\iffirstargument #optional\else Hello \fi #mandatory} \starttext \one{A}{B} \foo{\ConTeXt!} \foo[Hi]{\ConTeXt!} \stoptext /example Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin text in doublesided documents
Aha! It's this combination that makes it work: \setupmargindata[inmargin][location=outer,align=inner] % align=inner has no effect here?! \setupmarginframed[inmargin][align=inner] % but when I add this it works and aligns to the body text Thanks for your help, I'm all set now. -Ursprüngliche Nachricht- Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] Gesendet: Dienstag, 5. April 2011 19:00 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Margin text in doublesided documents Am 05.04.2011 um 18:56 schrieb C.: What version(s)? mtx-context | current version: 2011.04.03 22:32 and mtx-context | current version: 2011.04.05 16:47 Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] dashed underbar
Dear all, I'm looking for a solution for dashed underlining. Hacking around I've come quite close, with the only problem that when the underlining begins at the start of a paragraph there gets an empty (grid) line inserted before it. See: \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \setupbackgrounds [page] [background={backgraphics}] \setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex, gridcolor=black,fillcolor=white,linecolor=white] \newcount\dashulinecounter \dashulinecounter=1 \definestartstop[dashuline][before={\dostartdashuline},after={\dostopdashuline}] \def\dostartdashuline{% \startpositionoverlay{backgraphics}% \setMPpositiongraphic{b:uline:\the\dashulinecounter}{mpos:par}{self=uline:\the\dashulinecounter}% \stoppositionoverlay \fpos{uline:\the\dashulinecounter}% } \def\dostopdashuline{% \tpos{uline:\the\dashulinecounter}% \advance\dashulinecounter by 1% } \starttext No Line \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \par \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \stoptext I'm sure some of you know a simpler and more elegant solution that maybe allows even dotted underlining?! Or does anyone have a hint how to get rid of the empty line? Cheers, Daniel ___ 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] dashed underbar
Am 05.04.2011 um 22:07 schrieb Daniel Schopper: Dear all, I'm looking for a solution for dashed underlining. Hacking around I've come quite close, with the only problem that when the underlining begins at the start of a paragraph there gets an empty (grid) line inserted before it. See: \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \setupbackgrounds [page] [background={backgraphics}] \setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex, gridcolor=black,fillcolor=white,linecolor=white] \newcount\dashulinecounter \dashulinecounter=1 \definestartstop[dashuline][before={\dostartdashuline},after={\dostopdashuline}] \def\dostartdashuline{% \startpositionoverlay{backgraphics}% \setMPpositiongraphic{b:uline:\the\dashulinecounter}{mpos:par}{self=uline:\the\dashulinecounter}% \stoppositionoverlay \fpos{uline:\the\dashulinecounter}% } \def\dostopdashuline{% \tpos{uline:\the\dashulinecounter}% \advance\dashulinecounter by 1% } \starttext No Line \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \par \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \stoptext I'm sure some of you know a simpler and more elegant solution that maybe allows even dotted underlining?! Or does anyone have a hint how to get rid of the empty line? \definetextbackground [dashed] [ location=text, framecolor=black, alternative=1, voffset=-\strutdp, background=, frame=off, dash=1] \starttext \startdashed\input ward \stopdashed \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Footnotes set in columns have no line break
Hello, I want my footnotes in columns, but there is apparently no line breaking going on (text from the first column is overlapping the second and so on). Example: \setupfootnotes[n=2] \starttext \dorecurse{6}{\input hawking\footnote{Nevertheless, if the exponential growth continued, there would be ten.}} \stoptext This DOES give the desired output in the online context thingy (i.e MkII), but not my win32 minimals installation with MkIV. ConTeXt ver: 2011.04.03 22:32 MKIV ___ 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] dashed underbar
Well, that was really simple… Any chance to get this working also with dots? (Where could I find more on those features? I guess anch-pgr.mkiv which seems quite complicated…) Thanks a lot! Am 05.04.11 22:29, schrieb Wolfgang Schuster: \definetextbackground [dashed] [ location=text, framecolor=black, alternative=1, voffset=-\strutdp, background=, frame=off, dash=1] \starttext \startdashed\input ward \stopdashed \stoptext ___ 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] Footnotes: Individual number styles
Sorry to bother again, but how do I change the style of the footnote number that is IN THE TEXT. Not the ones under the line, I can manipulate those with numbercommand. Let's just say I want a normal serif body text, but the footnote numbers are sans serif (or red, if you will) To clarify: This is the main² text. The little two after main wants to be painted red. Here comes more text... __ ² This two down here does not want to be red. Is this possible? ___ 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] Footnotes: Individual number styles
Hi C, On 2011-04-06 01:58:33, C. wrote: Sorry to bother again, but how do I change the style of the footnote number that is IN THE TEXT. Not the ones under the line, I can manipulate those with numbercommand. Let's just say I want a normal serif body text, but the footnote numbers are sans serif (or red, if you will) To clarify: This is the main² text. The little two after main wants to be painted red. Here comes more text... __ ² This two down here does not want to be red. Is this possible? at least I can try: ··8· \setupfootnotes[ textcommand=\low, textstyle=\bi, textcolor=red, ] \starttext What is the air speed velocity of an unladen\footnote{African or European.} swallow? \stoptext \endinput ··8· Good night, Philipp ___ 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 pgpJEWajcEH3F.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 ___