[NTG-context] How to reproduce a particular head/title style (reformat)

Garulfo garulfo at azules.eu
Wed Nov 4 07:15:44 CET 2020


I would like to learn "how to ConTeXt" complex titles styles like the 
one seen in the following document:

- https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png

- source document: 

Please, what would be a preferred way ?

- overlay ?

- overlay and layer ?
- \setuphead with before/after ?

- \setupfloat[bleedfigure] and \placebleedfigure{}{\blackrule}

I try to describe the specification here :

1. doublesided document

2. on both side, section title are underlined by a red rule, always 
"left aligned" in the text area, shifted to the right by the same 
distance than it is done for the text of the title, which ends at the 
right border of the page

3. on the left page : section title are overlined by a "second red 
rule", which starts "left aligned" in the text area, and goes across the 
whole page width

4. on the right page : the "second red rule" starts from the left border 
of the page, and terminates at the end of the text area

A last detail (very nice, but can be forgotten because I suppose it will 
involve more complex stuff) : the "second red rule" from the left 
page... it continues a little bit on the right page.

Thanks a lot for any help !

More information about the ntg-context mailing list