On 3/19/2020 2:26 PM, Jeong Dal wrote:
Hi,
long time ago, I can use outlined fonts for the title of a chapter by the help of the experts in this list. Now, I’d like to write a subtitle under the title, but \crlf is not working. I tried in several ways, but I couldn’t make it.
How to write them in two lines?
draw outlinetext.b ("\framed[align=normal]{" & ditto & \MPvar{tt} & ditto & "}")
Thanks.
Best regards,
Dalyoung
************** \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt); \stopuseMPgraphic
\define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}%
\setuphead[chapter,title] [textcommand=\outlineFill, color=.625Blue, numbercommand=\outlineFill, number=yes]
\setupbodyfont[rm, 12pt]
\starttext
\startchapter[title={First Title\crlf{\tfa Sub Title}}] \input knuth \stopchapter
\stoptext
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------