Am 2020-01-11 um 19:21 schrieb Wolfgang Schuster
: Henning Hraban Ramm schrieb am 11.01.2020 um 18:53:
Hi again, I’m trying to get uppercase titles with \WORD, but they aren’t broken into lines; while \WORD works in normal text. What’s the matter?
ConTeXt uses a horizontal box to place the section title which doesn't matter when you use one of the predefined layouts because they add a vertical box for the text to allow long texts.
When you use the command key to create your own layout you have to add a vertical box, otherwise all text is placed in a single line.
While you can use a custom layout to create an uppercase title the easier way is to use the style key.
\setuphead [chapter] [number=no, %style={\setcharactercasing[WORD]}] style=WORD]
\starttext
\chapter{\samplefile{weisman}}
\WORD{\samplefile{weisman}}
\stoptext
Thank you very much! I tried a \framed to no avail. And I thought I needed my own command since I also set color and font, but style={\MyDefinedFont\WORD} actually works. In my other setup I already tried a \vbox, but the problem is different, I guess. My remaining problem in this case is irregular line spacing if there are umlauts, will open a new thread. Best, Hraban