On 2/19/2018 3:21 AM, Jeong Dal wrote:
tex error > tex error on line 4 in file
/Users/graph/Documents/TeXfiles/test-mpgraph.tex: ! Undefined control
sequence
<argument> \setstrut \begstrut \getheadtitle
\endstrut
\MPLIBgraphictext ...\startTEXpage [scale=10000]#1
\stopTEXpage
l.4 ...\setstrut \begstrut \getheadtitle \endstrut }
1 \starttext
2 \def\MPLIBgraphictext#1{\startTEXpage[scale=10000]#1\stopTEXpage}
3
4 >> \MPLIBgraphictext{\setstrut \begstrut \getheadtitle \endstrut }
5 \stoptext
You're not handling a section head or so so \getheadtitle is meaningless
out of that context.
How about
\setuphead[section][style={\effect[outer]}]
which is normally ok for outlines and has been around for ages.
(btw, the mp outlin emechanism has changed and doesn't use makempy any
longer .. it's better now, see metafun manual etc)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________