Re: [NTG-context] Re: Is there a bug during pagination of external figures?
Patrick Gundlach wrote: \setupheadertexts[margin][{\tfc bu}][\ifnum\pageno = 1\NamedExternalLink{../../../../bu/8/8_3_refkom/1/inhalt.pdf}{last}{\symbol[PfeilNachLinks]{} §}\else\PrevOrNextPage{/PrevPage}{\symbol[PfeilNachLinks]{} §}\fi\hskip.5em\ifnum\pageno = \lastpage{§ \symbol[PfeilNachRechts]}\else\PrevOrNextPage{/NextPage}{§ \symbol[PfeilNachRechts]}\fi] why not use \goto[PreviousPage]{\symbol[...]} \goto[NextPage]{\symbol...]} or \goto [forward]{\symbol[...] \goto [backward]{...} etc (firstpage, lastpage, nextpage, previouspage, etc) 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Is there a bug during pagination of external figures?
Hi Hans, thanks for the tip, --Stefan why not use \goto[PreviousPage]{\symbol[...]} \goto[NextPage]{\symbol...]} or \goto [forward]{\symbol[...] \goto [backward]{...} etc (firstpage, lastpage, nextpage, previouspage, etc) Hans ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Is there a bug during pagination of external figures?
Hi Hans, thanks for the additional hints. The width calculation method is very instructive. Yet, I think I can not use it, because I do not know in advance what kind of text is used as item labels. Maybe a label text contains already a comma. Is there another \processXXX-Makro for example \processampersandlist that can be used (because ampersands can not appear unescaped in normal text)? --Stefan PS: I found nowhere a description of \charwd \def\determinecommalistwidth[#1]% {\scratchdimen\zeropoint \def\docommand##1% {\setbox\scratchbox\hbox{##1}% \ifdim\wd\scratchbox\scratchdimen \scratchdimen\wd\scratchbox \fi}% \processcommalist[#1]\docommand} \determinecommalistwidth[a),b),c)] \the\scratchdimen (or use \charwd cum suis) ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Is there a bug during pagination of external figures?
Stefan Wachter wrote: Hi Hans, thanks for the additional hints. The width calculation method is very instructive. Yet, I think I can not use it, because I do not know in advance what kind of text is used as item labels. Maybe a label text contains already a comma. Is there another \processXXX-Makro for example \processampersandlist that can be used (because ampersands can not appear unescaped in normal text)? --Stefan PS: I found nowhere a description of \charwd \def\determinecommalistwidth[#1]% {\scratchdimen\zeropoint \def\docommand##1% {\setbox\scratchbox\hbox{##1}% \ifdim\wd\scratchbox\scratchdimen \scratchdimen\wd\scratchbox \fi}% \processcommalist[#1]\docommand} \determinecommalistwidth[a),b),c)] \the\scratchdimen (or use \charwd cum suis) \processseparatedlist may be of help of course you can do: \determine...[{a},{b\c},{d\_e},{f,g,h}] 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Is there a bug during pagination of external figures?
Patrick Gundlach wrote: Stefan Wachter [EMAIL PROTECTED] writes: Hi Hans, I attach an example Context file and the included graphics. Unfortunately the example is by far not minimal. The file is just a few bytes, no need to mention... Just looking at the error message, I bet your problem is at: \setupheadertexts[text][{\tfc 8}{\tfb-3\_refkom}][] \setupheadertexts[margin][{\tfc bu}][\ifnum\pageno = 1\NamedExternalLink{../../../../bu/8/8_3_refkom/1/inhalt.pdf}{last}{\symbol[PfeilNachLinks]{} §}\else\PrevOrNextPage{/PrevPage}{\symbol[PfeilNachLinks]{} §}\fi\hskip.5em\ifnum\pageno = \lastpage{§ \symbol[PfeilNachRechts]}\else\PrevOrNextPage{/NextPage}{§ \symbol[PfeilNachRechts]}\fi] Patrick Hi Patrick, i do not think that the problem is caused by the header texts. The same header text definition is used during all the document but the problem is encountered only at a page with several external figures. In addition, if I insert a new page in between the figures then the problem disappears (cf. original bug report). --Stefan ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Is there a bug during pagination of external figures?
Stefan Wachter [EMAIL PROTECTED] writes: Hi Hans, I attach an example Context file and the included graphics. Unfortunately the example is by far not minimal. The file is just a few bytes, no need to mention... Just looking at the error message, I bet your problem is at: \setupheadertexts[text][{\tfc 8}{\tfb-3\_refkom}][] \setupheadertexts[margin][{\tfc bu}][\ifnum\pageno = 1\NamedExternalLink{../../../../bu/8/8_3_refkom/1/inhalt.pdf}{last}{\symbol[PfeilNachLinks]{} §}\else\PrevOrNextPage{/PrevPage}{\symbol[PfeilNachLinks]{} §}\fi\hskip.5em\ifnum\pageno = \lastpage{§ \symbol[PfeilNachRechts]}\else\PrevOrNextPage{/NextPage}{§ \symbol[PfeilNachRechts]}\fi] Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Is there a bug during pagination of external figures?
Stefan Wachter wrote: Could you make a minimal example that fails? \starttext \externalfigure[x_x.png] \stoptext works ok here, so there must be something else interfering 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Is there a bug during pagination of external figures?
Hans Hagen wrote: Stefan Wachter wrote: Processing a large document containing the following lines: start \externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_1.png] \externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_2.png] \externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_3.png] \externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_4.png] stop is for some reason the _ an active character ? In supp-fil you may try the following (add the \_ definition) \bgroup \catcode`\/=\@@active \catcode`\:=\@@active \catcode`\~=\@@active \catcode`\_=\@@active \gdef\sanitizefilename#1\to#2% {\bgroup \edef/{\string/}% \edef:{\string:}% \edef~{\string~}% \edef_{\string_}% \expanded{\xdef\noexpand\sanitizedfilename{#1}}% \egroup % maybe \convertcommand\sanitizedfilename\to#2% \let#2\sanitizedfilename} \egroup untested -) Hans Hi Hans, thanks for the quick reply. I made the proposed changes but the error is still there. (I also run texexec --make ... and tried again.) Do you have another idea that could solve the problem? Thanks, --Stefan ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context