height and width of a figure
hi all i included an external figure in a document with \useexernalfigure[fig] how can i get the width and the height of this picture so that i can make a frame that has exactly the same size as the externalfigure[fig]. thanks a lot for help greetings severin -- +++ GMX - die erste Adresse für Mail, Message, More! +++ Getestet von Stiftung Warentest: GMX FreeMail (GUT), GMX ProMail (GUT) (Heft 9/03 - 23 e-mail-Tarife: 6 gut, 12 befriedigend, 5 ausreichend) Jetzt selbst kostenlos testen: http://www.gmx.net
Hello,
i included an external figure in a document with \useexernalfigure[fig] how can i get the width and the height of this picture so that i can make a frame that has exactly the same size as the externalfigure[fig].
See the reference manual, especially frame=on. You can also define a metapost overlay and get the dimension in OverlayBox. \externalfigure[...][...,...=...,...] [...] <file> [...,...=...,...] see \useexternalfigure (1) \useexternalfigure[...][...][...,...=...,...] [...] <name> [...] <file> scale <number> factor max fit broad wfactor <number> max broad fit hfactor <number> max broad fit width <dimension> height <dimension> frame on off preset yes no display <file> preview yes no repeat yes no object yes no type eps mps pdf tif png jpg mov <tex> method eps mps pdf tif png jpg mov <tex> Patrick -- Silent is the goldfish in its bowl
Hi Patrick and all the others
thanks for your answer. I think I asked my question a little bit unclearly.
I wanted to know if i can get the width of a figure, or the overlaywidth of
this figure as a numeric. I want to make a frame like this:
\framed[width=
Hello,
i included an external figure in a document with \useexernalfigure[fig] how can i get the width and the height of this picture so that i can
make a
frame that has exactly the same size as the externalfigure[fig].
See the reference manual, especially frame=on. You can also define a metapost overlay and get the dimension in OverlayBox.
\externalfigure[...][...,...=...,...]
[...] <file> [...,...=...,...] see \useexternalfigure (1)
\useexternalfigure[...][...][...,...=...,...]
[...] <name> [...] <file> scale <number> factor max fit broad wfactor <number> max broad fit hfactor <number> max broad fit width <dimension> height <dimension> frame on off preset yes no display <file> preview yes no repeat yes no object yes no type eps mps pdf tif png jpg mov <tex> method eps mps pdf tif png jpg mov <tex>
Patrick -- Silent is the goldfish in its bowl _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hello!
Hi Patrick and all the others
thanks for your answer. I think I asked my question a little bit unclearly. I wanted to know if i can get the width of a figure, or the overlaywidth of this figure as a numeric. I want to make a frame like this: \framed[width=
, height= ]{blabla}.
I don't know if such a thing is possible, I didn't find such a thing in a manual.
Why dont You just put the figure into a box? You can always say: \newdimen\W \newdimen\H \setbox0\hbox{\externalfigure[your_figure]} \W=\wd0\relax \H=\ht0 \advance\H by \dp0\relax \the\W \the\H \end Such row TeX code always work:) Regards, Pawe/l
At 04:26 17/09/2003 +0200, Pawel Jackowski na Onet wrote:
Hello!
Hi Patrick and all the others
thanks for your answer. I think I asked my question a little bit unclearly. I wanted to know if i can get the width of a figure, or the overlaywidth of this figure as a numeric. I want to make a frame like this: \framed[width=
, height= ]{blabla}. I don't know if such a thing is possible, I didn't find such a thing in a manual.
Why dont You just put the figure into a box? You can always say:
\newdimen\W \newdimen\H \setbox0\hbox{\externalfigure[your_figure]} \W=\wd0\relax \H=\ht0 \advance\H by \dp0\relax \the\W \the\H \end
Such row TeX code always work:)
\getfiguredimensionsonly[...][...] \naturalfigureheight \naturalfigurewidth \figureheight \figurewidth ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
At 04:26 17/09/2003 +0200, Pawel Jackowski na Onet wrote:
Hello!
Hi Patrick and all the others
thanks for your answer. I think I asked my question a little bit unclearly. I wanted to know if i can get the width of a figure, or the overlaywidth of this figure as a numeric. I want to make a frame like this: \framed[width=
, height= ]{blabla}. I don't know if such a thing is possible, I didn't find such a thing in a manual.
Why dont You just put the figure into a box? You can always say:
\newdimen\W \newdimen\H \setbox0\hbox{\externalfigure[your_figure]} \W=\wd0\relax \H=\ht0 \advance\H by \dp0\relax \the\W \the\H \end
Such row TeX code always work:)
\getfiguredimensionsonly[...][...]
\naturalfigureheight \naturalfigurewidth \figureheight \figurewidth
Hi thanks a lot for your help sevi
------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- +++ GMX - die erste Adresse für Mail, Message, More! +++ Getestet von Stiftung Warentest: GMX FreeMail (GUT), GMX ProMail (GUT) (Heft 9/03 - 23 e-mail-Tarife: 6 gut, 12 befriedigend, 5 ausreichend) Jetzt selbst kostenlos testen: http://www.gmx.net
participants (6)
-
Hans Hagen
-
Patrick Gundlach
-
Pawel Jackowski na Onet
-
seob@gmx.ch
-
Severin Obertuefer
-
Severin Obertüfer