Re: [NTG-context] figure placement

2008-09-29 Thread Jelle Huisman

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-29 Thread Hans Hagen
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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-27 Thread Wolfgang Schuster

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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-27 Thread Jelle Huisman

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] figure placement

2008-09-26 Thread Jelle Huisman
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-26 Thread 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.


Thanks again,

Jelle
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2008-09-26 Thread Hans Hagen
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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] figure placement

2006-03-15 Thread Taco Hoekwater


M.guravage wrote:

 This scheme works when the previous section ends on an odd page, but when
 the section ends on an even page, \page[left] correctly inserts two blank

I often have a set of macros that does a soemthing like this:

   \def\leftpage
 {\page \ifodd\pagenumber \noheaderandfooter~\page \fi}
   \def\rightpage
 {\page \ifodd\pagenumber \else \noheaderandfooter~\page \fi}

does that help?

 The second place figures appear is within sections. I use the same set of
 commands, which places the figures where I wish, but each figure must be
 placed precisely at the bottom of an odd page. This looks OK if the bottom
 of the page coincides with the end of a paragraph, but otherwise the last
 line is not flush right. I am looking for a solution that says, 'place
 this figure on the next blank even page disturbing the text flow as little
 as possible.' I have tried postponing, but without success.

Have you tried putting the figure in a footnote yet?

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] figure placement and flushbottom

2004-08-11 Thread Peter Mnster
Hello,
in general, the suggested method to get LaTeX \flushbottom behaviour, shown
on http://contextgarden.net/Flush_bottom, works quite well.
But here I have a situation, where I do not understand, why the first page
is not filled:

\setupwhitespace[0pt plus 1fill]
\defineblank[aroundfloat][0.8\lineheight plus 3fill minus 0.2\lineheight]
\setupfloats[spacebefore=aroundfloat,spaceafter=aroundfloat]
\let\stoptextO=\stoptext
\def\stoptext{\vfilll\stoptextO}

%\setupfloats[default={top,bottom,page}]% same as [EMAIL PROTECTED] in LaTeX?

\starttext
bla

\section{bla}% strange: if there is no table, then the figure placement is ok.
\starttable[|c|]
\NC bla\NC\AR
\stoptable

bla
\placefigure{bla}{\framed[height=10cm]{bla}}

\dorecurse{30}{\dorecurse{30}{bla }\par}
\stoptext


TIA for any hint, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure placement and flushbottom

2004-08-11 Thread Hans Hagen
Peter Münster wrote:
\let\stoptextO=\stoptext
\def\stoptext{\vfilll\stoptextO}
 

I don't know what you want to achieve but this is not working because 0 is not a character (and therefore not part of a \cs) 


\let\Mystoptext\stoptext
\def\stoptext{\vfilll\Mystoptext}
 

could but you may expect funny side effects, so better use:
\prependtoks \vfilll \to \everystoptext
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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure placement and flushbottom

2004-08-11 Thread Peter Mnster
On Wed, 11 Aug 2004, Hans Hagen wrote:

 Peter Münster wrote:
 
 \let\stoptextO=\stoptext
 \def\stoptext{\vfilll\stoptextO}
   
 I don't know what you want to achieve but this is not working because 0
 is not a character (and therefore not part of a \cs)

It's an O (for Original), not a 0 (zero).

 \prependtoks \vfilll \to \everystoptext

Thanks, this looks cleaner.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context