Hello, when using \externalfigure, the figure is shifted to the right in dvi-output. How could I fix this? TIA for any help, Peter Here an example: %\setupoutput[pdftex] \starttext X\externalfigure[example][width=3cm,frame=on]X \stoptext The eps-file is in the attachment. ConTeXt Version: 2004.3.16 pdfeTeX Version: 3.14159-1.10b-2.1 -- http://pmrb.free.fr/contact/ ________________________________________________________________ FilmSearch engine with a lot of new features: http://f-s.sf.net/
At 07:51 16/05/2004, Peter Münster wrote:
Hello, when using \externalfigure, the figure is shifted to the right in dvi-output. How could I fix this? TIA for any help, Peter
Here an example:
%\setupoutput[pdftex] \starttext X\externalfigure[example][width=3cm,frame=on]X \stoptext
The eps-file is in the attachment.
put this in cont-new.tex: \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 % or \ifdim\wd\scratchbox>#4\scaledpoint \vss\hbox to #4\scaledpoint{\hss\box\scratchbox\hss}\vss \else \vss\box\scratchbox \fi}}% \scratchdimen#7\scaledpoint \setbox\scratchbox\hbox {\hskip-\scratchdimen\lower\scratchdimen\box\scratchbox}% \wd\scratchbox#4\scaledpoint \ht\scratchbox#5\scaledpoint \dp\scratchbox#6\scaledpoint \box\scratchbox \elabelgroup} and replace this in spec-tr.tex: \definespecial\doinsertobject#1#2% {\bgroup \dogetobjectreference{#1}{#2}\DVIobjectreference \splittopskip\zeropoint \setbox0=\copy\DVIobjects \dimen0=\DVIobjectreference\onepoint \advance\dimen0 -\onepoint \setbox2\vsplit0 to \dimen0 \ifdim\ht0>\onepoint \setbox0\vsplit0 to \onepoint \fi \unvbox0\setbox0\lastbox\box0 \egroup}
On Mon, 17 May 2004, Hans Hagen wrote:
put this in cont-new.tex:
and replace this in spec-tr.tex:
Thank you, it works! Instead of spec-tr.tex, I replaced in spec-dvi.tex. Cheers, Peter -- http://pmrb.free.fr/contact/ ________________________________________________________________ FilmSearch engine with a lot of new features: http://f-s.sf.net/
participants (2)
-
Hans Hagen
-
Peter Münster