Problem with setuphead and textstyle or numberstyle
I'm trying out the chapter heading method used in "In the Details" in chapter 7. I'm using exactly (I think) the code from the booklet (except that instead of \BigText and \BigNumber I'm using {\definedfont[Sans sa x]}. The style parameter to \setuphead works but neither textstyle nor numberstyle has any effect on the result. I've included the code I'm using below and would be most grateful to know what daft error I've made and can't spot. Many thanks, Tim Stone =====Code snippet below ============ \setuphead [chapter] [placehead=empty, header=chapter, style={\definedfont[SansText sa 3]}, %% This is the only one that is working - if removed, reverts to normal sized Serif textstyle={\definedfont[SansText sa 4]}, %% This isn't working - FIX ME numberstyle={\definedfont[SansText sa 5]}] %% This isn't working - FIX ME \definetext [chapter] [header] [\setups{chapter}] [] \startsetups chapter \setups[chapter:title] \setups[chapter:number] \setups[chapter:finish] \stopsetups \definelayer [chapter] [width=\dimexpr(\makeupwidth+\cutspace), height=\headerheight] \startsetups chapter:title \setlayerframed [chapter] [x=\dimexpr(\makeupwidth+\cutspace), location={left,bottom}] [height=\headerheight, foregroundcolor=white, background=color, backgroundcolor=darkblue, frame=off, offset=none, align={right,lohi}] {\hbox spread 0.5\cutspace {\hss \doiftextelse{\placeheadtext[chapter]}% {\placeheadtext[chapter]}% {\placeheadtext[title]}% \hss} \space \vskip .5cm} \stopsetups \startsetups chapter:number \setlayerframed [chapter] [x=\dimexpr(\makeupwidth+\cutspace), y=\vsize, location={left,bottom}] [width=\dimexpr(\cutspace-\rightmargindistance), height=\dimexpr(\cutspace-\rightmargindistance), foregroundcolor=blue, background=color, backgroundcolor=yellow, frame=off, offset=none, align={middle,lohi}] {\hbox to \hsize {\hss \doifmode{*bodypart}{ \placeheadnumber[chapter] }% \hss} } \stopsetups \startsetups chapter:finish \framed [width=\makeupwidth, height=\headerheight, background=chapter, frame=off] {} \stopsetups
participants (1)
-
Tim Stone