Hello, if I use the \setuphead[][] command like this way \definehead [section] [section] \setuphead [section] [alternative=inmargin, numberstyle=bold, textstyle=bold] I can use features how > normal, bold, slanted < and so on. What is to do, if I want to combine two features e.g. bold _and_ 18pt (Fontsize)? Thanks and best wishes, Helmut
Helmut Schwertner wrote:
if I use the \setuphead[][] command like this way
\setuphead [section] [alternative=inmargin, numberstyle=bold, textstyle=bold]
I can use features how > normal, bold, slanted < and so on. What is to do, if I want to combine two features e.g. bold _and_ 18pt (Fontsize)?
Hello Helmut, I'd probably use the normal font switching commands, you'd use in normal markup. So, if I was using a body font of 11pt and wanted to have a section header in bold & 18pt, I'd use the font switching command \bfc. This would be used in your preamble like this \setuphead [section] [alternative=inmargin, numberstyle=\bfc, textstyle=\bfc] Of course, this is because I'm particularly lazy. To do it correctly, so someone reading your preamble has a chance of understanding it, you'd make it as self-documenting as possible. The correct preamble, would then look like: ------------------------------------------------------------ \setupbodyfont[11pt] \setuphead [section] [alternative=inmargin, numberstyle=\SectionFont, textstyle=\SectionFont] \definefont [SectionFont][SerifBold at 18pt] \starttext \section[sec:one]{Section One} \input tufte \stoptext ------------------------------------------------------------
Hello Guy, thanks a lot and I'm very pleased about your answer. It was very helpful. Best wishes, Helmut The correct preamble,
would then look like:
------------------------------------------------------------ \setupbodyfont[11pt]
\setuphead [section] [alternative=inmargin, numberstyle=\SectionFont, textstyle=\SectionFont] \definefont [SectionFont][SerifBold at 18pt]
\starttext
\section[sec:one]{Section One}
\input tufte
\stoptext
participants (2)
-
Guy Worthington
-
Helmut Schwertner