![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Patrick Gundlach wrote:
Hello,
-------------------------------------------------- \setupoutput[pdftex]
\usetypescript[adobekb][texnansi] \usetypescript[postscript][texnansi] \setupbodyfont[postscript,ss,13pt]
\setupheadertexts[text][\_][]
\starttext \dorecurse{10}{\input tufte \par}
\externalfigure[cow][scale=1424]
\externalfigure[cow][scale=1424]
\stoptext --------------------------------------------------
This file processes ok here; also, your bug is not so much related to headers but more to some kind of \_ expansion In what path are your graphics?
it breaks on 2004.8.14 as well on live.contextgarden.net
Graphics (cow.pdf) is in /opt/local/texmf/tex/context/sample
If the two graphics are not on the same page, the error dissapears. The reproduction of the error is very sensitive to layout changes.
the problem occurs in the output routine (when the page is built); some tracing all learns that while flushing the fig box takes place, the meaning of textunderscore is changed; so we need to restore this before hand; actually this problem should be solved differently, i.e. no redefinition at all; the problem is that findinf good solutions is not that easy because of "moments of expansion" fix (in core-fig.tex:) \def\dodoplaceexternalfigure[#1][#2][#3][#4][#5][#6]% {\doifsomething{#3}% catches \defineexternalfigure dummies {\bgroup \pushmacro\textunderscore \edef\textunderscore{\string_}% brrr, temp hack, still needed? \calculateexternalfigure[#1][#2][#3][#4][#5][#6]% \calculateexternalscreenfigure[#1][#2][#3][#4][#5][#6]% \popmacro\textunderscore \box\foundexternalfigure \egroup}} ----------------------------------------------------------------- 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 -----------------------------------------------------------------