Dear all,

First, Happy new year!

I tried to make a style of title as following. The first code creates the title 
as I wanted, but the second which uses “\title” creates the title strange. they 
are almost same code.
To include it in the list of contents, I use “\title”.
Is there a way to make output as the first one and include it in the list of 
contents?
Thank you for reading.
Best regards,

Dalyoung


\definefont[BigFontOne][NotoSansCJKkr-Bold sa 4]
\definefont[BigFontTwo][NotoSansCJKkr-Bold sa 3]
\definefont[BigFontThree][NotoSansCJKkr-Bold sa 1.5]%[YoonGothicB sa 1.5]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\define[1]\TitlePage
{\begingroup
\defineoverlay[back][{\BigFontOne \blue  \starteffect[outer]#1\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
        {\kern-3pt{\BigFontOne\BigColorOne  \starteffect[inner]#1\stopeffect}}
\endgroup}

\setuphead[title]
        [textcommand=\TitlePage,
%        color=BigColorTwo,
%        style=\BigFontTwo,
%        after={\blank[2cm]}]
        ] %number=yes]

 \starttext
        \defineoverlay[back][{\BigFontOne \blue  
\starteffect[outer]Title\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
        {\kern-3pt{\BigFontOne\BigColorOne  
\starteffect[inner]Title\stopeffect}}


        \title{Title}

\defineoverlay[back][{\BigFontOne \blue  \starteffect[outer]타이틀\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
{\kern-3pt{\BigFontOne\BigColorOne  \starteffect[inner]타이틀\stopeffect}}

\title{타이틀}
\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
___________________________________________________________________________________

Reply via email to