This is what I came up with:
\setupcolors[state=start]
\definecolor [maincolor] [r=, g=.5, b=.7]
\setupinteraction
[
state=start,
color=maincolor,
contrastcolor=maincolor,
style=,
]
\define[2]\MyChapterCommand%
{\rotate[rotation=90]{\rm\small\sc \headtext{chapter}}
\framed[backgroundcolor=maincolor, background=color,
frame=off, foregroundcolor=white, foreground=color, style=\bfd]{#1}
\blank#2}
\setuphead[chapter][command=\MyChapterCommand]
\setupheadtext[chapter=Chapter]
\starttext
\chapter{Hello world}
\stoptext
The size of chapter no. is too small and I would like the title on new
line. I do not know how to do it.
On Wed, Aug 7, 2024 at 1:01 AM Henning Hraban Ramm
Am 06.08.24 um 21:26 schrieb Shiv Shankar Dayal:
What is the general method of customizing chapter titles? For example, I would like something like the attachment. Is it achievable without using Metapost?
If you can create it with a macro, you can use it for a title.
This looks just like \framed and \rotate with \offset.
Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
-- Respect, Shiv Shankar Dayal