![](https://secure.gravatar.com/avatar/91f4053d0f66c837c3351b2dc8c9a16c.jpg?s=120&d=mm&r=g)
All - I am experiencing some strange behavior with external graphics. I use one file to setup all the graphics for later inclusion. All that is in the file is a bunch of "\useexternalgraphics" statements, so I can reference the graphics by name later. The problem comes when I try to use "\placefigure" instead of "\externalfigure". Here is an example: Figure setup: \useexternalfigure[Figure 1][Figure1][scale=520,type=pdf,factr=broad] % This sets up the file 'Figure1.pdf' for later inclusion If I then reference it using \externalfigure[Figure 1] the figure is included at the spot following the text, and fits on the remainder of the page, which is what I want. But if I try to add a caption to it by using \placefigure [force][] {} {\externalfigure[Figure 1][Figure 1]} the figure gets the caption, but always is placed on the top of the following page. Why is this? -- Mark Almeida mark.almeida@sun.com Solutions Architect (707)398-9524/x81132 Sun Client Solutions (707)429-0341 Home Office (707)480-5038 Cell
![](https://secure.gravatar.com/avatar/0a96a366311a96b0e9df4a336a7df048.jpg?s=120&d=mm&r=g)
What happens with \placefigure[here]{none}{\externalfigure[Figure1]} ? Renaud The Wizard a écrit :
All - I am experiencing some strange behavior with external graphics. I use one file to setup all the graphics for later inclusion. All that is in the file is a bunch of "\useexternalgraphics" statements, so I can reference the graphics by name later. The problem comes when I try to use "\placefigure" instead of "\externalfigure". Here is an example:
Figure setup:
\useexternalfigure[Figure 1][Figure1][scale=520,type=pdf,factr=broad] % This sets up the file 'Figure1.pdf' for later inclusion
If I then reference it using
\externalfigure[Figure 1]
the figure is included at the spot following the text, and fits on the remainder of the page, which is what I want. But if I try to add a caption to it by using
\placefigure [force][] {} {\externalfigure[Figure 1][Figure 1]}
the figure gets the caption, but always is placed on the top of the following page. Why is this?
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
The Wizard wrote:
All - I am experiencing some strange behavior with external graphics. I use one file to setup all the graphics for later inclusion. All that is in the file is a bunch of "\useexternalgraphics" statements, so I can reference the graphics by name later. The problem comes when I try to use "\placefigure" instead of "\externalfigure". Here is an example:
Figure setup:
\useexternalfigure[Figure 1][Figure1][scale=520,type=pdf,factr=broad] % This sets up the file 'Figure1.pdf' for later inclusion
If I then reference it using
\externalfigure[Figure 1]
the figure is included at the spot following the text, and fits on the remainder of the page, which is what I want. But if I try to add a caption to it by using
\placefigure [force][] {} {\externalfigure[Figure 1][Figure 1]}
the figure gets the caption, but always is placed on the top of the following page. Why is this?
because it dos not fit (spacing around it, \placefigure [force,none][] {} {\externalfigure[Figure 1][Figure 1]} may help -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/91f4053d0f66c837c3351b2dc8c9a16c.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
The Wizard wrote:
All - I am experiencing some strange behavior with external graphics. I use one file to setup all the graphics for later inclusion. All that is in the file is a bunch of "\useexternalgraphics" statements, so I can reference the graphics by name later. The problem comes when I try to use "\placefigure" instead of "\externalfigure". Here is an example:
Figure setup:
\useexternalfigure[Figure 1][Figure1][scale=520,type=pdf,factr=broad] % This sets up the file 'Figure1.pdf' for later inclusion
If I then reference it using
\externalfigure[Figure 1]
the figure is included at the spot following the text, and fits on the remainder of the page, which is what I want. But if I try to add a caption to it by using
\placefigure [force][] {} {\externalfigure[Figure 1][Figure 1]}
the figure gets the caption, but always is placed on the top of the following page. Why is this?
because it dos not fit (spacing around it,
\placefigure [force,none][] {} {\externalfigure[Figure 1][Figure 1]}
may help
Hans - I tried this solution, the result is still the same. Is there an easy way to find out why it doesn't fit? Does adding the caption cause it to require more space? I also tried the answer offered by Renaud, "\placefigure[here]{none}{\externalfigure[Figure1]}", which results in no figure at all. -- Mark Almeida mark.almeida@sun.com Solutions Architect (707)398-9524/x81132 Sun Client Solutions (707)429-0341 Home Office (707)480-5038 Cell
![](https://secure.gravatar.com/avatar/0a96a366311a96b0e9df4a336a7df048.jpg?s=120&d=mm&r=g)
The Wizard a écrit :
I also tried the answer offered by Renaud, "\placefigure[here]{none}{\externalfigure[Figure1]}", which results in no figure at all.
adapt Figure1 -> Figure 1 according to your useexternalfigure declaration... \placefigure[here]{none}{\externalfigure[Figure1] An example from a document of mine: \useexternalfigure[largeur][nofile][width=.5\textwidth] \useexternalfigure[slime][src/images/slime][largeur] \placefigure[here][fig:ssrI]{Robot \SSR-I ({\sc Hirose})}{\externalfigure[slime]} Cheers, Renaud
participants (3)
-
Hans Hagen
-
Renaud AUBIN
-
The Wizard