[NTG-context] Is there a bug during pagination of external figures?

2004-08-06 Thread Stefan Wachter
Hi all!
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
I encounter the following error:
! Missing $ inserted.
inserted text
   $
to be read again
  _
\_...fmmode \mathunderscore \else \textunderscore
 \fi
argument {\tfc 8}{\tfb -3\_
refkom}{}{}{}
\firstoftwoarguments #1#2-#1
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
 }\dostopattributes
...
l.2691
Line 2691 is the line after the fourth image. If I insert a page break 
before the fourth image

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]
\page
\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
then the error disappears. It seems that Context tries to output the 
filename of the external figure somewhere during pagination. Yet, the 
filename is not ment to appear inside the document!

Does someone know how to work around this problem?
Thanks for your attention,
--Stefan


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a bug during pagination of external figures?

2004-08-06 Thread Hans Hagen
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
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context