I'm still trying to implement a complex book layout in ConTeXt... and I'm beginning to wonder, why in so many cases the descriptions in the manual or on the website don't seem to match the actual implementation.
In a nutshell, here's what I would like to achieve:
- Set up a custom section heading that always starts on a right page.
- Set up a custom float (figure) that completely fills the left page next to the section heading.
And here's what I'm able to achieve:
Here's the MWE:
\mainlanguage[de]
\language[de]
\definecolor[lightbrown] [r=0.83, g=0.76, b=0.71]
\setuppapersize[A4][A4]
\setuplayout
[
backspace=11.67mm, width=131.25mm,
topspace=21.21mm, height=254.57mm,
headerdistance=13pt, header=13pt,
footerdistance=13pt, footer=13pt,
rightmargindistance=13pt, rightmargin=39.5mm,
]
\setuppagenumbering[alternative=doublesided, location=]
\definehead[PageSection][section]
\setuphead[PageSection][
page=right,
style=\ssb\bf,
]
\definefloat[pagefloat][pagefloats][figure]
\setupfloat[pagefloat][
location=inner,
]
\starttext
\chapter{Testing Full Page Figures}
\input{knuth}
\input{knuth}
\input{knuth}
\placepagefloat[rightpage]{Test}{\framed[width=\paperwidth, height=\paperheight, background=color, backgroundcolor=lightbrown]{Here's a figure}}
\PageSection{Here's a Section on a New Page}
\input{knuth}
\input{knuth}
\input{knuth}
\stoptext
As can be seen, the figure that is supposed to fill the page is positioned incorrectly. And for the life of me I can't seem to find a way to get that right. location=inner
is the closest I got, so far.
Also, I wonder, why leftpage
and rightpage
(in \placepagefloat
) have the exact opposite effect? (Note that I used rightpage
to have the float appear on the left page.) By the way, opposite
doesn't seem to work at all; instead, the float disappears from the document. What am I missing?
Note also that I tried to use page=right
in \definehead
to have my custom section appear on a right page, but that setting is completely ignored. It only works, if I replace \definehead[PageSection][section]
by \definehead[PageSection][subsection]
.
I am confused. Any help would be much appreciated.