|
Subject: Re: Q: Include EPS graphics in TeX documents From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 20 Aug 1998 10:21:26 +0100 |
Ah. Actually I think this problem was reported before.
The Jade back end passes the scale factors as % values, but the graphics
package is expecting a ratio. So everything `works' except that
your image is 100 times too large, and surprisingly enough doesn't fit
on the page. As C++ has an easier time doing arithmetic than TeX,
probably a final fix should be to make it change the format in which it
passes on the scale factors, but for a quick fix put this in jadetex.cfg
it redefines the appropriate macro to divide by 100 before importing the
figure.
David
\def\@IncludeGraphic<#1>#2\\{%
\ifx\ScaleType\scale@false
\dimen@\ScaleX\p@
\divide\dimen@100
\edef\ScaleX{\strip@pt\dimen@}%
\dimen@\ScaleY\p@
\divide\dimen@100
\edef\ScaleY{\strip@pt\dimen@}%
\ifx\ScaleX\ScaleY
\scalebox{\ScaleX}{\includegraphics{#2}}%
\else
\scalebox{\ScaleX}[\ScaleY]{\includegraphics{#2}}%
\fi
\else
\ifx\ScaleType\scale@maxuniform
\edef\MaxBoth{\MaxHeight\MaxWidth}%
\ifx\MaxBoth\Exclams
\includegraphics{#2}%
\else
\includegraphics[width=\MaxWidth,keepaspectratio=true,
height=\MaxHeight]{#2}%
\fi
\else
\ifx\ScaleType\scale@max
\includegraphics[width=\MaxWidth,height=\MaxHeight,
keepaspectratio=false]{#2}%
\else
\typeout{ERROR: invalid scale type of \ScaleType}%
\fi
\fi
\fi
}
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| AW: jade (unofficial) and jadetex u, Dr. Markus Hönicka | Thread | ANNOUNCE: Modular DocBook Styleshee, Norman Walsh |
| RE: (data..), (attribute-string...), John Sidlo | Date | ANNOUNCE: Modular DocBook Styleshee, Norman Walsh |
| Month |