Hi,
first of all, let me say *thank you* for the vast improvements on
ConTeXt Garden! Browsing the documentation and finding stuff is so
much easier and pleasant than it used to be (also the site seems
faster).
Thanks to the docs, dropcaps and protrusion have no secrets for me,
but I am still struggling with some basic tasks (see the document
below):
0. Push text to the bottom of the text area (see copyright).
1. Increase the space between Roman numbers and titles in the ToC.
2. Vertically center the ToC (wrt to the text area).
3. Suppress page numbers and headers in all blank pages.
4. Suppress headers in the front matter.
5. Style and position page numbers differently in the front and body
matter (e.g., centered only in the front matter).
As my full document uses environments, I would like most setups to
be in the environment, if possible. E.g., is it possible to replace
\setuphead[chapter][after={}]
(see below) with an environment setup that applies only to the ToC?
Nicola
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definepapersize[lsda][width=128.4mm,height=198.3mm]
\setuppapersize[lsda]
\setuplayout[
backspace=22.9mm,
width=90.3mm,
topspace=8.9mm,
height=181.1mm,
header=4mm,
headerdistance=6.4mm,
footerdistance=6.4mm,
footer=4mm,
leftmargin=15.2mm,
leftmargindistance=0mm,
rightmargindistance=0mm,
rightmargin=15.2mm,
]
\setuplabeltext[it][chapter=]
\setuphead[chapter][
header=empty,
alternative=middle,
conversion=Romannumerals,
numbercommand=\groupedcommand{\blank[20mm]}{\blank[10mm]},
after={\blank[3cm]},
]
\setupheadtext[content=]
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][][\setups{text b}]
\startsetups[text a]
\rlap{whatever}
\hfill
\getmarking[chapter]
\hfill
\llap{whatever}
\stopsetups
\startsetups[text b]
\rlap{}
\hfill
Some text goes here
\hfill
\llap{}
\stopsetups
\setuppagenumbering[
alternative=doublesided,
location={text,footer,right},
style=\tfx
]
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\starttext
\startfrontmatter
\page[even]
\startalignment[bottom,flushright]
Copyright © 2020 Author
\stopalignment
\start
\setuphead[chapter][after={}]
\completecontent
\stop
\page[odd]
\startchapter[title={Preface}]\input{knuth}\stopchapter
\stopfrontmatter
\startbodymatter
\setuppagenumber[number=1]
\dorecurse{10}{\startchapter[title={XYZ}]\input{tufte}\stopchapter}
\stopbodymatter
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%