From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16157 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: error with _ in header? Date: Thu, 19 Aug 2004 10:49:00 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4124697C.2080501@wxs.nl> References: <41133589.2070807@gmx.de> <41133396.6090009@wxs.nl> <411383D1.90501@gmx.de> <4117D780.6000901@wxs.nl> <411C7C2A.3080605@gmx.de> <4120D865.5050104@gmx.de> <41211929.8050806@gmx.de> <41236EC8.8020408@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092905354 24950 80.91.224.253 (19 Aug 2004 08:49:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 08:49:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 19 10:49:05 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxibZ-0007u4-00 for ; Thu, 19 Aug 2004 10:49:05 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A40C91278A; Thu, 19 Aug 2004 10:49:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04496-03; Thu, 19 Aug 2004 10:49:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC2A51277A; Thu, 19 Aug 2004 10:49:03 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B148B1277A for ; Thu, 19 Aug 2004 10:49:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04440-03 for ; Thu, 19 Aug 2004 10:49:02 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id F1E8C1276D for ; Thu, 19 Aug 2004 10:49:01 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i7J8n0r5024751 for ; Thu, 19 Aug 2004 10:49:00 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 8A2382EB2E; Thu, 19 Aug 2004 10:49:01 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 8A66E1B51B for ; Thu, 19 Aug 2004 08:49:00 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay02.solcon.nl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16157 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16157 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 -----------------------------------------------------------------