[NTG-context] about makempy (metapost outlines)

Hans Hagen pragma at wxs.nl
Mon Feb 19 09:18:33 CET 2018


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
-----------------------------------------------------------------


More information about the ntg-context mailing list