Dear Wolfgang, Thank you for the solution at the new year’s day. Your sample works very well. It is what I want. I copied it into my file and run it, then I got a strange output. Everything is OK except outer effect text is written twice. I don’t know what makes it write twice. I have two more questions. 1. I’d like to put a title only in a page using the following. How to put a title as center aligned? %%%%%%%%% \page[yes] \dontleavehmode\blank[5cm] \title{Why, Math?} \blank[big] \midaligned{\fancy Why do we learn mathematics?} \vfill \midaligned{\tfb Institution} \blank[2cm] \page %%%%%%%%%%%% 2. Is there a way to remove a pagenumber from the title page? Thank you again. Best regards, Dalyoung Here is the simplified code: %\startMPenvironment %\stopMPenvironment %\environment defCommon %\environment defBook %\usemodule[m-matrix] %\startluacode %mtx = moduledata.matrix %\stopluacode \setuplanguage[kr][patterns=us] \mainlanguage[kr] \setscript[hangul] %\usetypescriptfile[type-hcrlvt] %\usetypescript[HcrFont] % As set in your typescript file %\definefontfamily [Myface] [mm][Neo Euler] \definefont[fancy][Zapfino at 24pt] \definefont[GreekA][MinionPro-MediumIt Regular] \definefontfeature[kr][script=hang,language=kor,mode=node,analyze=yes] %\setupbodyfont[Myface, rm, 11pt] \setupbodyfont[pagella] %\setuppagenumbering[state=stop] \setupexternalfigures[directory={./figures, ./funmath/WhyMath/whyMathSlide,}] \setupindenting[medium, yes] \definefont [BigFontOne] [\classfont{notosanscjkkr}{Bold} sa 4] \definecolor [BigColorOne] [r=.86,g=.850,b=.54] \define[1]\TitlePage {\rlap{\offset[x=2pt,y=2pt]{\color[blue]{\effect[outer]{#1}}}}% \effect[inner]{#1}} \setuphead [title] [deeptextcommand=\TitlePage, color=BigColorOne, style=BigFontOne, incrementnumber=list] \startproduct Danggok \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definestructureconversionset[backpart:pagenumber][][numbers] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[alternative=singlesided,number=] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=2] \setuppagenumbering[alternative=singlesided] \stopsectionblockenvironment %\startsectionblockenvironment[backpart] %\setupuserpagenumber[numberconversion=romannumerals] %\setuppagenumbering[alternative=doublesided] %\setuppagenumber[number=1] %\stopsectionblockenvironment \setupcombinedlist[content][list={title,chapter}]%,section,subsection}] \setuplist[chapter, title][width=5mm, style=,textstyle={\ss\bf }]%,after={\blank[preference]}] \setuplist[section][width=10mm, style=,textstyle=\ss,after={\blank[preference]}] \setuplist[subsection][style=,textstyle={\ss}] %%%%% \startfrontmatter \title{Contents} \placelist[chapter,title] \stopfrontmatter \startbodymatter \title{First} \page \title{Second} \page % \component ./funmath/whyMath/whyMathH % \component ./Mathematics/TopicsInMath/Crypto/CryptoH % \component ./funmath/algorithm/algorithmH % \component ./funmath/Problems/squareH % \component ./funmath/Tiling/tilingH \stopbodymatter %\startbackmatter %\stopbackmatter \stopproduct
2019. 1. 2. 오전 5:13, Wolfgang Schuster
작성: Jeong Dal schrieb am 01.01.19 um 01:33:
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”.
\setuphead [title] [incrementnumber=list]
Is there a way to make output as the first one and include it in the list of contents?
You have to apply your command to the deeptextcommand key.
%%%% begin example
% \definefontfamily [mainface] [ss] [Noto Sans CJK KR] % % \setupbodyfont [mainface] % % \definefont [BigFontOne] [SansBold sa 4]
\definefontfamily [notosanscjkkr] [ss] [Noto Sans CJK KR]
%\definefont [BigFontOne] [file:notosanscjkkrbold*default sa 4] \definefont [BigFontOne] [\classfont{notosanscjkkr}{Bold} sa 4]
\setupbodyfont [pagella]
\definecolor [BigColorOne] [r=.86,g=.850,b=.54]
\define[1]\TitlePage {\rlap{\offset[x=2pt,y=2pt]{\color[blue]{\effect[outer]{#1}}}}% \effect[inner]{#1}}
\setuphead [title] [deeptextcommand=\TitlePage, color=BigColorOne, style=BigFontOne, incrementnumber=list]
\starttext
\title{Contents}
\placelist[chapter,title]
\title{Title}
\title{타이틀}
\stoptext
%%%% end example
Wolfgang