On Fri, 30 Mar 2007 17:15:20 +0200
Taco Hoekwater
Luuk Beurskens wrote:
Thank you Sanjoy, Hans and Taco for the suggestions made.
My interpretation of Taco's remark is that Sanjoy's solution might not work as expected, is that correct?
Mostly for practical reasons: it depends on how complex your pages really are. In a document with complicated headers and footers and different margin widths, it could become quite a challenge to make everything in the final printed pages come out in the right spot. Other issues are things like: you 'll have to fool the page number conversion, and such pages will frustrate impositioning software completely (putting all float pages at the end results in the same practical problems).
But if such things are not a concern, then it will definately beat my solution especially for a long document. Manual page breaking is tedious at best, and really only workable for static texts.
Taco
Hi all, there is a way to move all text to the right page and put the figures on the left page. The hard thing is to get all figures before the text and not on the following one. You can do this by manipulating the pagefloats macro. I created a minimum example that shows the results and effects. \setupfloat[figure][default=leftpage] \setupframed[width=8cm,height=12cm] \def\flushpagefloats {\doifoddpageelse {\ifvoid\collectedleftpagefloats \ifvoid\collectedrightpagefloats\else \unvbox\collectedrightpagefloats \page %\the\everytopofpage \fi \fi} {\ifvoid\collectedleftpagefloats \dontleavehmode\page % added \else \unvbox\collectedleftpagefloats \page %\the\everytopofpage \fi \ifvoid\collectedrightpagefloats\else \unvbox\collectedrightpagefloats \page %\the\everytopofpage \fi}% \ifvoid\collectedpagefloats\else % message \unvbox\collectedpagefloats \fi} \def\oddpagenumbers#1{\ifodd\pageno\the\numexpr(\pageno-1)/2+1\relax \else\fi} \defineconversion [oddpagenumber][\oddpagenumbers] %\setuppagenumbering[conversion=oddpagenumber] \starttext \dorecurse {10} {\dorecurse {12} {\section{Knuth}\input knuth\par} \placefigure{}{\framed{}} %\page[right] \midaligned{Figure \recurselevel} \dorecurse {4} {\section{Knuth}\input knuth\par}} \stoptext You can try to start with this and adapt it to your own requirements. It would be also better to write a macro that did all the dirty things like place the figure on the left page, make a page break etc. Wolfgang