"HEADING:THEMETITLESTYLE" "Why"
Hi, I noticed something unexpected with the following code: \enabletrackers[metapost.showlog] \startuseMPgraphic{heading:ThemeTitleStyle} show "HEADING:THEMETITLESTYLE"; show \MPstring{heading:title}; draw textext( \MPstring{heading:title} ) rotated 5 withcolor blue; \stopuseMPgraphic \defineframed[ThemeTitleStyle][ background=\useMPgraphic{ThemeTitleStyle}, ] \def\processword#1{% \setMPtext{heading:title}{#1}% \useMPgraphic{heading:ThemeTitleStyle} } \define[1]\ThemeChapterTitle{\applytosplitstringword\processword{#1}} \setuphead[chapter][deeptextcommand={\ThemeChapterTitle}] \starttext \startchapter[title=Why Is heading:ThemeTitleStyle Called Twice?] \input knuth \stopchapter \stoptext It appears as though heading:ThemeTitleStyle is being called twice: metapost > info: metapost > info:
"HEADING:THEMETITLESTYLE" "Why"
I am trying to produce a random number that is not equal to the previous random number. However, if the code is called twice, then I'd have to add code to ignore one of the calls. Any ideas why the code seems to be called twice and what can be done to ensure that it is only called once? Thank you!