Hi again, I try to get a picture on a page using \externalfigure[name.pdf][width=\textwidth] The image is pushed to the next page, even though there is no text on the current page and the height of the image itself is smaller then \textheight, so it should fit. How do I force image placement *here*? Thanks again, Jelle
Jelle Huisman wrote:
Hi again,
I try to get a picture on a page using \externalfigure[name.pdf][width=\textwidth] The image is pushed to the next page, even though there is no text on the current page and the height of the image itself is smaller then \textheight, so it should fit. How do I force image placement *here*?
\placefigure[force]{}{} sometimes adding always helps (here,always) or fixed all have their pro/cons ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen wrote:
I try to get a picture on a page using \externalfigure[name.pdf][width=\textwidth] The image is pushed to the next page, even though there is no text on the current page and the height of the image itself is smaller then \textheight, so it should fit. How do I force image placement *here*?
\placefigure[force]{}{}
Hi Hans, Is there a way to do this [force] with \externalfigure in a macro def like: \def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2][width=#3mm]}}} When I try to do something with \placefigure I get a "floatblocks : order disturbed" error and no figure placed. Thanks again, Jelle
Am 26.09.2008 um 18:01 schrieb Jelle Huisman:
Hans Hagen wrote:
I try to get a picture on a page using \externalfigure[name.pdf][width=\textwidth] The image is pushed to the next page, even though there is no text on the current page and the height of the image itself is smaller then \textheight, so it should fit. How do I force image placement *here*?
\placefigure[force]{}{}
Hi Hans,
Is there a way to do this [force] with \externalfigure in a macro def like:
\def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2] [width=#3mm]}}}
When I try to do something with \placefigure I get a "floatblocks : order disturbed" error and no figure placed.
Please make a example because this works for me: \setupexternalfigures[location=default] \define[3]\picturefile {\placefigure[force]{none}{\externalfigure[#2] [width=#3mm,orientation=#1]}} \starttext \input knuth \picturefile{0}{cow}{100} \picturefile{180}{cow}{100} \stoptext Wolfgang
Wolfgang Schuster wrote:
Hi Hans,
Is there a way to do this [force] with \externalfigure in a macro def like:
\def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2] [width=#3mm]}}}
When I try to do something with \placefigure I get a "floatblocks : order disturbed" error and no figure placed.
Please make a example because this works for me:
Sorry no time now, but I'll try to make an example on Monday. Thanks, Jelle
Jelle Huisman wrote:
When I try to do something with \placefigure I get a "floatblocks : order disturbed" error and no figure placed.
Please make a example because this works for me:
I solved my immediate problem by using a separate layout with a slightly bigger text area: the image doesn't float to the next page any longer. I'm still curious to know what went wrong, but since my setup is rather complicated I need some time to make a good minimal example. (I'll put it on my to do list...) Thanks, Jelle
Jelle Huisman wrote:
Jelle Huisman wrote:
When I try to do something with \placefigure I get a "floatblocks : order disturbed" error and no figure placed.
Please make a example because this works for me:
I solved my immediate problem by using a separate layout with a slightly bigger text area: the image doesn't float to the next page any longer. I'm still curious to know what went wrong, but since my setup is rather complicated I need some time to make a good minimal example. (I'll put it on my to do list...)
when a float does not fit it's pushed on a stack, and due to the way we flush it may end up later in the order (esp when a next float does fit on the page); in that case context will renumber the floats Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jelle Huisman
-
Wolfgang Schuster