Re: [NTG-context] Re: error with _ in header?

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


[NTG-context] Re: error with _ in header?

2004-08-19 Thread Patrick Gundlach
Hello Hans,

[...]

 fix (in core-fig.tex:)

solves the problem here. 

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


[NTG-context] Re: error with _ in header?

2004-08-19 Thread Stefan Wachter
Hi Hans,
thanks for your fix. It solves the problem. Will this fix be included in 
future Context releases?

I am still confused why the content of the document directory had an 
impact on the output routine. (The problem disappeared after I had 
removed additional *.png files in the document directory. When I copied 
the superflous images into there again the problem reappeard.) I accept 
that computing in general and Context in special is kind of an empirical 
secret science. ;-)

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


Re: [NTG-context] Re: error with _ in header?

2004-08-19 Thread Hans Hagen
Stefan Wachter wrote:
thanks for your fix. It solves the problem. Will this fix be included 
in future Context releases?
it's in my source file so ... 

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: error with _ in header?

2004-08-18 Thread Stefan Wachter
Hi Patrick,
first I want to say that I already spent several hours on that problem 
and was happy to reduce the file size to 5215 Bytes. Of course I could 
have done further but I thought that the file is now handy enough for 
debugging. (I do not know how TeX code is debugged and what tools are 
available for that task.)

 btw: with the error related to other files in the directory: did you
 run texutil --purgeall for testing?
Yes, I removed all temporary files. But the strange behaviour remains: 
when all images except that of the used external figure are removed then 
the error disappears.

--Stefan

Patrick Gundlach wrote:
Hello Stefan,

I prunned the example to investigate the situation further. Now I have
only two pages. 

Well, how do you think anybody should be able to debug what you have
done with all the stuff in your document? 


You should definitely try to reduce the file size to a minimum,
otherwise it is hard to track the problem down.

minimum is far from 150 kb. And please avoid external figures if
possible (there is cow.pdf hacker.jpg and mill.png for download, so
we can all have the same figures to experiment with).
Please do your homework yourself next time:
--
\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
--

Is the minimal test file I've come up with. Perhaps now it is easier
for Hans to track down the problem.  The error message is:

! Missing $ inserted.
inserted text 
$
to be read again 
   _
\_...fmmode \mathunderscore \else \textunderscore 
  \fi 
argument \_
 {}{}{}
\firstoftwoarguments #1#2-#1
 
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
  }\dostopattributes 
...
l.15 
 
--

btw: with the error related to other files in the directory: did you
run texutil --purgeall for testing?

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


[NTG-context] Re: error with _ in header?

2004-08-18 Thread Patrick Gundlach
Hi,

[...]

 (I do not know how TeX code is debugged and what tools are
 available for that task.)

There are no tools for problems like yours. So it is very important to
have a minimum (non-) working file file. 


   btw: with the error related to other files in the directory: did you
   run texutil --purgeall for testing?

 Yes, I removed all temporary files. But the strange behaviour remains:
 when all images except that of the used external figure are removed
 then the error disappears.

This is strange, I cannot reproduce the bug here. But let us wait to
see if Hans has anything to say about the error file.

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


[NTG-context] Re: error with _ in header?

2004-08-18 Thread Patrick Gundlach
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.



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