Re: [NTG-context] placefigure feature request ?

2006-04-14 Thread Sanjoy Mahajan
> are you sure that you put the code in the right spot? (both float order > patched!) I hadn't thought the location mattered until just now! But I'm not sure where the ideal spot is. Oh, do you mean that I should patch page-flt.tex itself (and rebuild the formats, of course)? It has one \redofl

Re: [NTG-context] placefigure feature request ?

2006-04-14 Thread Hans Hagen
Sanjoy Mahajan wrote: > Hans Hagen <[EMAIL PROTECTED]> wrote: > > >> also redefine: >> >> \def\redofloatorder#1% >> {\doifnotinset\@@bknumbering{\v!nocheck,\v!text} >> {\doglobal\increment\nofplacedfloats\relax >> \gettwopassdata\s!float >> \iftwopassdatafound >> \doif

Re: [NTG-context] placefigure feature request ?

2006-04-14 Thread Sanjoy Mahajan
Hans Hagen <[EMAIL PROTECTED]> wrote: > also redefine: > > \def\redofloatorder#1% > {\doifnotinset\@@bknumbering{\v!nocheck,\v!text} > {\doglobal\increment\nofplacedfloats\relax > \gettwopassdata\s!float > \iftwopassdatafound > \doifnot\composedsectionnumber\twopassdata

Re: [NTG-context] placefigure feature request ?

2006-04-14 Thread Hans Hagen
Sanjoy Mahajan wrote: >> [code for text key] >> \setupfloats[numbering=text] >> > > I included the code for numbering=text, to make the tex file below. > Sadly, the figures are numbered 3->1->2 (i.e. as if numbering=nocheck > were given). I also tried the context live and got the same order.

Re: [NTG-context] placefigure feature request ?

2006-04-13 Thread Sanjoy Mahajan
> [code for text key] > \setupfloats[numbering=text] I included the code for numbering=text, to make the tex file below. Sadly, the figures are numbered 3->1->2 (i.e. as if numbering=nocheck were given). I also tried the context live and got the same order. Am I doing something silly? -Sanjoy

Re: [NTG-context] placefigure feature request ?

2006-04-13 Thread Hans Hagen
Sanjoy Mahajan wrote: >> this 'choose between locations' feature is kind of present but only >> with 'here' as fallback but it's trivial to make that configurable: >> > > I've been experimenting a bit with the code, and it is much appreciated. > > I added \unprotect..\protect and it compiled f

Re: [NTG-context] placefigure feature request ?

2006-04-12 Thread Sanjoy Mahajan
> this 'choose between locations' feature is kind of present but only > with 'here' as fallback but it's trivial to make that configurable: I've been experimenting a bit with the code, and it is much appreciated. I added \unprotect..\protect and it compiled fine. The figure numbering is the orde

Re: [NTG-context] placefigure feature request ?

2006-04-06 Thread Taco Hoekwater
Sanjoy Mahajan wrote: > > $ texexec 3.tex > $ dvips 3 > $ ps2pdf 3.ps => 3.pdf is in color This is 'wrong'. Normally, your output should be b/w unless you have \setupcolors[state=start] in your document somewhere, but ConTeXt does not know how to convert your images to greyscale in the dvips

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Sanjoy Mahajan
Hans Hagen <[EMAIL PROTECTED]> wrote: > Sanjoy Mahajan wrote: > >context : ver: 2005.01.31 > >cont-en : ver: 2005.01.31 fmt: 2006.3.28 mes: english > > > > Maybe this context installation is too old for nocheck. On the other > > hand, it should complain then? > >

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Hans Hagen
Sanjoy Mahajan wrote: >context : ver: 2005.01.31 >cont-en : ver: 2005.01.31 fmt: 2006.3.28 mes: english > > Maybe this context installation is too old for nocheck. On the other > hand, it should complain then? > i remember a bug (actually the mechanism is rathe

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Sanjoy Mahajan
From:Hans Hagen <[EMAIL PROTECTED]> > \useMPlibrary[dum] > \setupfloats[numbering=nocheck] > \starttext > \input tufte \placefigure[rightmargin]{first} {\externalfigure[dummy]} \par > \input knuth \placefigure[top]{second}{\externalfigure[dummy]} \par > \stoptext > > does commenting th

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Hans Hagen
Sanjoy Mahajan wrote: > Meanwhile I've been experimenting in baby steps, and numbering=yes does > what I want, as does specifying nothing about numbering. But > numbering=nocheck doesn't stop it, so I'm confused by what the nocheck > option does (doesn't cause me problems since the default is what

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Hans Hagen
Sanjoy Mahajan wrote: > Taco's msg about no meaning yes made me wonder: what's the special case > or problem you were thinking of? > probably that the automatic renumbering sometimes interferes with non trivial sequential flushing > Perhaps Holland in the winter can offer the dark, rainy day (j

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Sanjoy Mahajan
Hans Hagen <[EMAIL PROTECTED]> wrote: > Sanjoy Mahajan wrote: > > Here \figuremacro figures out (sorry) that narrow figures go in the > > margin and wide figures go at the top of the page. But the page will > > look funny: The narrow figure will be numbered, say, Figure 10, and > > the wide figure

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Sanjoy Mahajan
Taco Hoekwater <[EMAIL PROTECTED]> wrote: > Hans Hagen wrote: > >>So 'numbering=yes' will number according to position on the page? > >> > > no > > To avoid confusion: > > When 'page' refers to the typeset result, then Hans' answer actually > means 'yes'. Or it should, at least. I remember files

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Taco Hoekwater
Hans Hagen wrote: >>So 'numbering=yes' will number according to position on the page? >> > no To avoid confusion: When 'page' refers to the typeset result, then Hans' answer actually means 'yes'. Or it should, at least. I remember files where I had to run texexec twice though. I am not sure if

Re: [NTG-context] placefigure feature request ?

2006-04-05 Thread Hans Hagen
Sanjoy Mahajan wrote: > Hans Hagen wrote: > >> maybe >> \setupfloats[numbering=nocheck] >> does what you want >> > > I think I want the opposite. The documentation for \setupfloats at > says > > New option: > numbering yes nocheck (default

Re: [NTG-context] placefigure feature request ?

2006-04-04 Thread Sanjoy Mahajan
Hans Hagen wrote: > maybe > \setupfloats[numbering=nocheck] > does what you want I think I want the opposite. The documentation for \setupfloats at says New option: numbering yes nocheck (default yes) nocheck causes no renumbering so it prese

Re: [NTG-context] placefigure feature request ?

2006-04-04 Thread Hans Hagen
Sanjoy Mahajan wrote: >>> It would be nice if placefigure can be able to detect if the best >>> place is the top or the bottom of the page accordingly to its call, >>> > > A related point, which I didn't fiugre out how for my own TeX > figure-placement macros, is correct sequential numbering

Re: [NTG-context] placefigure feature request ?

2006-04-04 Thread Hans Hagen
Sanjoy Mahajan wrote: >>> It would be nice if placefigure can be able to detect if the best >>> place is the top or the bottom of the page accordingly to its call, >>> > > A related point, which I didn't fiugre out how for my own TeX > figure-placement macros, is correct sequential numbering

Re: [NTG-context] placefigure feature request ?

2006-04-04 Thread Sanjoy Mahajan
>> It would be nice if placefigure can be able to detect if the best >> place is the top or the bottom of the page accordingly to its call, A related point, which I didn't fiugre out how for my own TeX figure-placement macros, is correct sequential numbering when some figures are at the top of the

Re: [NTG-context] placefigure feature request ?

2006-04-04 Thread Hans Hagen
Renaud AUBIN wrote: > > Hi all, > > It seems this is for you, Hans: > > It would be nice if placefigure can be able to detect if the best > place is the top or the bottom of the page accordingly to its call, i.e.: > if placefigure call is near to the top -> figure will go to the top > else figure

[NTG-context] placefigure feature request ?

2006-04-04 Thread Renaud AUBIN
Hi all, It seems this is for you, Hans: It would be nice if placefigure can be able to detect if the best place is the top or the bottom of the page accordingly to its call, i.e.: if placefigure call is near to the top -> figure will go to the top else figure will go to the bottom... Cheers