Re: [NTG-context] Re: height and width of a figure

2003-09-17 Thread Hans Hagen
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 | [EMAIL PROTECTED]
  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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: height and width of a figure

2003-09-17 Thread seob
 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 | [EMAIL PROTECTED]
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
 [EMAIL PROTECTED]
 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

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: height and width of a figure

2003-09-16 Thread Patrick Gundlach
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
wfactornumber max broad fit
hfactornumber max broad fit
width  dimension
height dimension
frame  on off
preset yes no
displayfile
previewyes 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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context