On Wednesday 03 December 2008 12:23:05 am Bart C. Wise wrote:
> I am using framed and externalfigure commands. I want to put a rule around
> the image; however, the image has space around all sides. It appears that
> the top, right, and left sides has the same gap. However, the bottom side
> has a huge (by comparison) gap. So I can't use a negative offset to fix
> the problem. How do I center the image & place a border?
>
> \framed[location=middle,height=fit,width=fit,rulethickness=1.0pt]{%
> \externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
> }
>
> Thanks,
> Bart
Solved!
I figured it out (after 400 attempts). By adding the strut=no, that centered
the picture without differing offsets, then I added the offset=0pt. Now the
image is centered with a border.
\framed[
frameoffset=0pt,
height=fit,
location=middle,
rulethickness=1.0pt,
offset=0pt,
strut=no,
width=fit,
]{%
\externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
}
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________