* height and width of a figure
@ 2003-09-16 13:18 Severin Obertuefer
2003-09-16 13:41 ` Patrick Gundlach
0 siblings, 1 reply; 6+ messages in thread
From: Severin Obertuefer @ 2003-09-16 13:18 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: height and width of a figure
2003-09-16 13:18 height and width of a figure Severin Obertuefer
@ 2003-09-16 13:41 ` Patrick Gundlach
2003-09-16 21:17 ` Severin Obertüfer
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2003-09-16 13:41 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: height and width of a figure
2003-09-16 13:41 ` Patrick Gundlach
@ 2003-09-16 21:17 ` Severin Obertüfer
2003-09-17 2:26 ` Pawel Jackowski na Onet
0 siblings, 1 reply; 6+ messages in thread
From: Severin Obertüfer @ 2003-09-16 21:17 UTC (permalink / raw)
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=<width of \exernalfigure[fig]>, height=<height of
\externalfigure[fig]>]{blabla}.
I don't know if such a thing is possible, I didn't find such a thing in a
manual.
Severin
----- Original Message -----
From: "Patrick Gundlach" <pg@levana.de>
To: <ntg-context@ntg.nl>
Sent: Tuesday, September 16, 2003 3:41 PM
Subject: [NTG-context] Re: height and width of a figure
> 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
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: height and width of a figure
2003-09-16 21:17 ` Severin Obertüfer
@ 2003-09-17 2:26 ` Pawel Jackowski na Onet
2003-09-17 7:59 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Pawel Jackowski na Onet @ 2003-09-17 2:26 UTC (permalink / raw)
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=<width of \exernalfigure[fig]>, height=<height of
> \externalfigure[fig]>]{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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: height and width of a figure
2003-09-17 2:26 ` Pawel Jackowski na Onet
@ 2003-09-17 7:59 ` Hans Hagen
2003-09-17 15:25 ` seob
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2003-09-17 7:59 UTC (permalink / raw)
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=<width of \exernalfigure[fig]>, height=<height of
> > \externalfigure[fig]>]{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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: height and width of a figure
2003-09-17 7:59 ` Hans Hagen
@ 2003-09-17 15:25 ` seob
0 siblings, 0 replies; 6+ messages in thread
From: seob @ 2003-09-17 15:25 UTC (permalink / raw)
> 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=<width of \exernalfigure[fig]>, height=<height of
> > > \externalfigure[fig]>]{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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-09-17 15:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16 13:18 height and width of a figure Severin Obertuefer
2003-09-16 13:41 ` Patrick Gundlach
2003-09-16 21:17 ` Severin Obertüfer
2003-09-17 2:26 ` Pawel Jackowski na Onet
2003-09-17 7:59 ` Hans Hagen
2003-09-17 15:25 ` seob
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).