From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15362 Path: main.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: \dogetobject and pdf Date: Thu, 10 Jun 2004 18:54:19 +0200 (CEST) Sender: ntg-context-admin@ntg.nl Message-ID: References: <40C80D39.2040207@wxs.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT X-Trace: sea.gmane.org 1086886803 23607 80.91.224.253 (10 Jun 2004 17:00:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2004 17:00:03 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Jun 10 18:59:55 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BYSuA-0007NT-00 for ; Thu, 10 Jun 2004 18:59:54 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id DD32510B8E; Thu, 10 Jun 2004 18:59:50 +0200 (MEST) Original-Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by ref.ntg.nl (Postfix) with ESMTP id AC1EF10AE3 for ; Thu, 10 Jun 2004 18:57:01 +0200 (MEST) Original-Received: from gaston.free.fr (unknown [213.228.43.153]) by postfix4-1.free.fr (Postfix) with ESMTP id 729E814060F for ; Thu, 10 Jun 2004 18:56:54 +0200 (CEST) Original-Received: by gaston.free.fr (Postfix, from userid 500) id 6DF9A13C0C9; Thu, 10 Jun 2004 18:54:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.free.fr (Postfix) with ESMTP id 69D2814807D for ; Thu, 10 Jun 2004 18:54:19 +0200 (CEST) X-X-Sender: peter@gaston.free.fr Original-To: ntg-context@ntg.nl In-Reply-To: <40C80D39.2040207@wxs.nl> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: ntg-context@ntg.nl 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:15362 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15362 On Thu, 10 Jun 2004, Hans Hagen wrote: > Peter Münster wrote: > > >Hello Hans, > >I'm sorry, your patch of the May 17 works well for dvi, but not for pdf: > >the figure is again shifted down and to the left. > > > >Here an example: > >\setupoutput[pdftex] > >\starttext > >X\externalfigure[example][width=5cm]X > >\stoptext > > > >example.pdf is attached, also the resulting pdf. > > > > > >Concerning the issus with \useencoding[ffr] and FitBH: > >Do you think, you could solve the problems? If not, I'll go on trying to > >find solutions. > > > > > i ran into that last week as well -) > > can you try: > > \def\dogetobject#1#2#3#4#5#6#7% > {\initializepaper > \forgetall > \dontshowcomposition > \setbox\scratchbox\vbox > {\doinsertobject{#1}{#2}}% > \setbox\scratchbox#3% > {\vbox to #5\scaledpoint > {\ifdim\ht\scratchbox>#5\scaledpoint > \vss\hbox to #4\scaledpoint{\hss\box\scratchbox\hss}\vss > \else\ifdim\wd\scratchbox>#4\scaledpoint > \vss\hbox to #4\scaledpoint{\hss\box\scratchbox\hss}\vss > \else > \vss\box\scratchbox > \fi\fi}}% > \box\scratchbox > \elabelgroup} > > if this does not work i 'll do an upload pdf ok now, but the dvi is shifted up and to the right... :( Now I use a workaround in form of an environment: \startenvironment pdf-figures \input ifpdf.sty \ifpdf \def\dogetobject#1#2#3#4#5#6#7% {\initializepaper \forgetall \dontshowcomposition \setbox\scratchbox\vbox {\doinsertobject{#1}{#2}}% \setbox\scratchbox#3% {\vbox to #5\scaledpoint {\ifdim\ht\scratchbox>#5\scaledpoint \vss\hbox to #4\scaledpoint{\hss\box\scratchbox\hss}\vss \else\ifdim\wd\scratchbox>#4\scaledpoint \vss\hbox to #4\scaledpoint{\hss\box\scratchbox\hss}\vss \else \vss\box\scratchbox \fi\fi}}% \box\scratchbox \elabelgroup} \fi \stopenvironment Greetings, Peter -- http://pmrb.free.fr/contact/ _____________________________________ FilmSearch engine: http://f-s.sf.net/