Re: [NTG-context] Re: height and width of a figure
> 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= > > \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
Re: [NTG-context] Re: height and width of a figure
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= \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
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= \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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: height and width of a figure
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. Severin - Original Message - From: "Patrick Gundlach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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[...][...,...=...,...] > > > [...] > [...,...=...,...] see \useexternalfigure (1) > > \useexternalfigure[...][...][...,...=...,...] > > > [...] > [...] > scale > factormax fit broad > wfactor max broad fit > hfactor max broad fit > width > height > frameon off > presetyes no > display > previewyes no > repeatyes no > objectyes no > typeeps mps pdf tif png jpg mov > methodeps mps pdf tif png jpg mov > > > > Patrick > -- > Silent is the goldfish in its bowl > ___ > ntg-context mailing list > [EMAIL PROTECTED] > http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[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[...][...,...=...,...] [...] [...,...=...,...] see \useexternalfigure (1) \useexternalfigure[...][...][...,...=...,...] [...] [...] scale factor max fit broad wfactor max broad fit hfactor max broad fit width height frame on off preset yes no display previewyes no repeat yes no object yes no type eps mps pdf tif png jpg mov method eps mps pdf tif png jpg mov Patrick -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context