From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6015 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Problem with bit maps with ConTeXt under MikTeX (works fine using LaTeX) Date: Wed, 7 Nov 2001 16:47:59 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20011107164759.07627efc.taco@elvenkind.com> References: <20011107092947.0c79bdd4.taco@elvenkind.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396566 6536 80.91.224.250 (23 Oct 2002 18:09:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:09:26 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Bruce Horrocks" In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:6015 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6015 Hi, > I want to use something that Yap can display because of the improved > edit cycle with its support for forward and reverse lookups. What I want Right, I see. Available paths using context: 1) use png file and texexec --pdf, preview in acroread 2) you can try my (very ugly, more like a proof of concept) hack with bmp files and yap: %% start of file \unprotect \definefileinsertion{tr}{bmp}#1#2#3#4#5#6#7#8#9% {\scratchdimen\@@efbreedte \ScaledPointsToWholeBigPoints{\number\scratchdimen}\width \scratchdimen\@@efhoogte \ScaledPointsToWholeBigPoints{\number\scratchdimen}\height \vbox to 0pt{\kern -\@@efhoogte\hbox{% \ifnum\height = 0 \ifnum\width = 0 \special{em: graph #1}% \else \special{em: graph #1,\width bp}% \fi \else \special{em: graph #1,\width bp,\height bp}% \fi% }\vss}} \protect %% \starttext \externalfigure [sample.bmp] [width=2in, height=1in,scale=1000,method=bmp] \stoptext %% End of file Perhaps Hans can derive something cleaner. 1. Considerations: never bother looking into the bmp for it's size, just use specified values always (as latex does) 2. I don't understand why I need the 'scale=1000' -- groeten, Taco