From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9570 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [NTG-context] Bug in supp-pdf.tex/supp-mis.tex (?) Date: Fri, 18 Oct 2002 15:55:20 +0200 Sender: ntg-context-admin@ref.vet.uu.nl Message-ID: <5.1.0.14.1.20021018155431.02021ab8@server-1> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399879 4114 80.91.224.250 (23 Oct 2002 19:04:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:04:39 +0000 (UTC) Cc: Original-Received: from hermes.hrz.uni-giessen.de (hermes.hrz.uni-giessen.de [134.176.2.15]) by osiris.hrz.uni-giessen.de (8.11.6+Sun/8.11.6) with ESMTP id g9IE1Xe06737 for ; Fri, 18 Oct 2002 16:01:33 +0200 (MEST) Original-Received: from ref.vet.uu.nl by hermes.hrz.uni-giessen.de with ESMTP for Guenter.Partosch@hrz.uni-giessen.de; Fri, 18 Oct 2002 16:01:19 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0242510AEB; Fri, 18 Oct 2002 16:01:15 +0200 (MEST) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 23A5310AE7 for ; Fri, 18 Oct 2002 16:00:23 +0200 (MEST) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id g9IDtpOj000913; Fri, 18 Oct 2002 15:55:52 +0200 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id g9IE0Kgg000319; Fri, 18 Oct 2002 16:00:20 +0200 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: "Andreas Fieger" In-Reply-To: X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ref.vet.uu.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9570 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9570 At 02:30 PM 10/18/2002 +0200, Andreas Fieger wrote: search in supp-pdf for you name, and patch: \def\dodo##1% Andreas Fieger's bug: (\304...) {\edef\!!stringa{##1}% and another one: ( 11) -> \ifx 11 \ifx\!!stringa\MPspacechar\MPspacechar\else\expandafter##1\fi}% please test this with previous files as well >Hello, > >though this is only partly a context question, I think this is the >best place to ask. I am creating MetaPost figures containing text. >When these are included in a TeX document processed by pdfLaTeX, >context's supp-pdf.tex is loaded to perform the conversion. > >Consider the simple MP file (the space is essential) >-------------------------------------- >defaultfont:="ptmr8r"; >beginfig(1); > label(" 11", origin); >endfig; >-------------------------------------- > >This will result in a file like >%%Page: 1 1 >-6.25003 -3.38997 moveto >( 11) ptmr8r 10.00005 fshow >showpage >%%EOF > >If this MP file is included in a context document, >everything is fine. >-------------------------------------- >\starttext >\placefigure[][]{}{\externalfigure[minimal.mps]} >\stoptext >-------------------------------------- > >If it is included in a LaTeX document >-------------------------------------- >\documentclass{article} >\usepackage[dvips]{graphicx} >\begin{document} >\includegraphics{minimal.mps} >\end{document} >-------------------------------------- >converted to ps with dvips, still everything >is fine. > >When using >-------------------------------------- >\usepackage[pdftex]{graphicx} >-------------------------------------- >and pdfLaTeX to compile the file (this is >when supp-pdf.tex is used), the " 11" disappears. > >I found this problem with every number from 11, 22, >to 99 with a leading space -- even in the middle of >a string: "Text: 118" would come out as "Text: 8". > >I don't have any clue what's going wrong. >Any ideas? > >PS: Hans was so kind to provide a new supp-pdf.tex > after a similar problem with labels > startimg with an umlaut? > > file=supp-pdf.tex version=2001.07.27 > file=supp-mis.tex version=1997.01.04 > are used. > > >Thanks, >Andreas >-- >Dr. Andreas Fieger >ServiceBarometer AG >Tel (089) 896669-17 >_______________________________________________ >ntg-context mailing list >ntg-context@ref.ntg.nl >http://ref.ntg.nl/mailman/listinfo/ntg-context > >================================================================ >Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd >op virussen. >Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst >waar op wordt gecontroleerd. ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf ------------------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context