From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15356 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \dogetobject and pdf Date: Thu, 10 Jun 2004 09:26:49 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40C80D39.2040207@wxs.nl> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1086852555 23153 80.91.224.253 (10 Jun 2004 07:29:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2004 07:29:15 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Jun 10 09:29:03 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 1BYJzj-0008N3-00 for ; Thu, 10 Jun 2004 09:29:03 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6057310B73; Thu, 10 Jun 2004 09:28:58 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 8292C10B71 for ; Thu, 10 Jun 2004 09:26:50 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5A7Qn2S027828 for ; Thu, 10 Jun 2004 09:26:49 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 5B25318A0D; Thu, 10 Jun 2004 09:26:49 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 71C5917B1A for ; Thu, 10 Jun 2004 07:26:48 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@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:15356 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15356 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 Hans