solved-how to make "\getmarking[title]" show using default font size?
Dear all, For the header text, I used \getmarking as follows: \setupheadertexts[][{\getmarking[{\v!title}]}] ***** This problem comes from my setting which is as follows: \title{\ss\bf\tfb Title} I changed it by using the definition as follows: \def\Mytitle#1{% \framedtext [width=\overlaywidth, height=5\bodyfontsize, background=color, backgroundcolor=lightgray, offset=2pt, strut=no, frame=off, align=middle, top=\vss, bottom=\vss]{ \sans #1} } \setuphead[title][textcommand=\Mytitle] This makes everything fine. Thank you for reading. Best regards, Dalyoung
Am 26.07.2011 um 06:04 schrieb Jeong Dalyoung:
Dear all,
For the header text, I used \getmarking as follows:
\setupheadertexts[][{\getmarking[{\v!title}]}]
***** This problem comes from my setting which is as follows:
\title{\ss\bf\tfb Title}
I changed it by using the definition as follows:
\def\Mytitle#1{% \framedtext [width=\overlaywidth, height=5\bodyfontsize, background=color, backgroundcolor=lightgray, offset=2pt, strut=no, frame=off, align=middle, top=\vss, bottom=\vss]{ \sans #1} }
\setuphead[title][textcommand=\Mytitle]
This makes everything fine.
Don’t set the font style with the argument of the \title command, use \setuphead. \setupheadertexts[][title] \define[2]\Mytitle {\framedtext [width=broad, height=5\bodyfontsize, background=color, backgroundcolor=lightgray, offset=2pt, strut=no, frame=off, align={middle,middle}] {#2}} \setuphead [title] [command=\Mytitle, style=\ssbfb] % \ss\bfb \setupheader[style=\ssb] % \ss\tfb \starttext \title{Title} \stoptext Wolfgang
participants (2)
-
Jeong Dalyoung
-
Wolfgang Schuster