The chapter format that I want to achieve in the end is nearly the one in the attachment (excerpt of Christian Dietrich's PhD thesis). Best Gerion Am Donnerstag, 30. Mai 2024, 16:15:01 MESZ schrieb Gerion Entrup: > Hi, > > I'm trying to adapt the format of chapters in my document and have a few questions regarding setuphead. > My aim is to have the chapter (title) on a separate page with an additional intro in different text sizes for title, subtitle and the intro. > I chose to use the "command=" argument in setuphead for that. > However, I'm not quite sure about it's internals. > > Let's begin with a minimal example: > ``` > \define[2]\MyChapter{% > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > > \setuphead[title, chapter][command=\MyChapter] > > \setupbodyfont[11pt] > > \starttext > \startchapter[title=foo][subtitle=bar, intro={some explanation}] > some text > \stopchapter > \stoptext > ``` > This produces 1.pdf. > > > ## Font size > > What is the reason that that the font of the chapter is bigger? How can I reset it to normal size? This does not work at all: > ``` > \define[2]\MyChapter{% > \setupbodyfont[11pt] #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > ``` > However, changing to a bigger font works somehow. Is there a factor applied to the font size internally? For example: > ``` > \define[2]\MyChapter{% > \setupbodyfont[20pt] #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > ``` > produces 2.pdf (the chapter font is not 20pt). > > > ## Line breaks > > How can I achieve line breaks? > This does not work: > ``` > \define[2]\MyChapter{% > #1 #2:\\ > \structureuservariable{subtitle}\\ > (\structureuservariable{intro}) > } > ``` > (see 3.pdf) > > I also want to set everything except of the intro in a flushright environment but do not know how. I tried: > ``` > \define[2]\MyChapter{% > \startalignment[flushright] > #1 #2:\\ > \structureuservariable{subtitle}\\ > \stopalignment > \structureuservariable{intro} > } > ``` > (see 4.pdf, no change) > > > ## Bold text > > I tried to get the text bold. However, `#1` and `#2` does not seem to follow this. > ``` > \define[2]\MyChapter{% > \bold #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > ``` > > ## Makeups > > The best solution, I had so far, was to define a makeup, but I don't get it to work with text with mixed alignment and it does not solve the font size problem: > ``` > \definemakeup[chapter][align=left, top=] > \define[2]\MyChapter{% > \startmakeup[chapter] > #1 #2:\\ > \structureuservariable{subtitle}\\ > \stopmakeup > (\structureuservariable{intro}) > } > ``` > (see 5.pdf) > > ## Framed > > I also have tried this but it does not bring any linebreaks: > ``` > \define[2]\MyChapter{% > \framed[frame=off, offset=0pt]{#1\\#2:\\ \structureuservariable{subtitle}\\ (\structureuservariable{intro})} > } > ``` > (see 6.pdf) > > I hope you can shed some light into setuphead with command. I search on the wiki, Stackoverflow and the manuals but didn't really find anything. > > Best, > Gerion > >