> Am 2020-01-11 um 19:21 schrieb Wolfgang Schuster > <wolfgang.schuster.li...@gmail.com>: > > 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________