From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: error with _ in header?
Date: Thu, 19 Aug 2004 10:49:00 +0200 [thread overview]
Message-ID: <4124697C.2080501@wxs.nl> (raw)
In-Reply-To: <m2smakpbb5.fsf@levana.de>
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-08-19 8:49 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 7:38 Is there a bug during pagination of external figures? Stefan Wachter
2004-08-06 7:30 ` Hans Hagen
2004-08-06 13:06 ` Stefan Wachter
2004-08-06 13:12 ` Stefan Wachter
2004-08-06 12:55 ` Hans Hagen
2004-08-09 19:58 ` Hans Hagen
2004-08-13 8:30 ` Stefan Wachter
2004-08-13 14:57 ` Patrick Gundlach
2004-08-16 15:53 ` Stefan Wachter
2004-08-16 15:26 ` Patrick Gundlach
2004-08-16 20:29 ` REALLY STRANGE: (was: Is there a bug during pagination of external figures?) Stefan Wachter
2004-08-18 9:50 ` error with _ in header? Patrick Gundlach
2004-08-18 11:24 ` Eros Albertazzi
2004-08-18 14:19 ` Hans Hagen
2004-08-18 12:23 ` Stefan Wachter
2004-08-18 11:43 ` Patrick Gundlach
2004-08-18 14:59 ` Hans Hagen
2004-08-18 18:10 ` Patrick Gundlach
2004-08-19 8:49 ` Hans Hagen [this message]
2004-08-19 10:51 ` Patrick Gundlach
2004-08-19 15:08 ` Stefan Wachter
2004-08-19 14:40 ` Hans Hagen
2004-08-19 14:40 ` Hans Hagen
2004-08-16 21:28 ` Re: Is there a bug during pagination of external figures? Hans Hagen
2004-08-19 9:19 ` Stefan Wachter
2004-08-19 9:07 ` Hans Hagen
2004-08-19 15:50 ` Stefan Wachter
2004-08-19 16:33 ` Hans Hagen
2004-08-16 11:27 ` metafun question Floris van Manen
2004-08-16 13:46 ` Hans Hagen
2004-08-16 11:41 ` metafun question getting XY Floris van Manen
2004-08-16 13:45 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4124697C.2080501@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).