Hi, During the search Euler font, I found a manual “creating metapost outlines”. It is what I looking for at the last year. I tried an example for section head, but it issued an undefined control sequence message. Please tell me what is wrong and how to change. I copied the sample code and a part of log file at the end. Thank you for reading. Best regards, Dalyoung %%%%%%% \starttext \section{First One} This worked fine before. 이 전에는 잘 되었습니다. \startformula \int f(x) dx \stopformula \section{Second Two} Who made the Euler font. x, y, z $x^2 + y^2 = z^2$ \stoptext %%%%%%%%% 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
Hi Dalyoung, Tha sample code below runs correctly, except that the Korean words are not displayed, since there is no body fonts set up for that language. Could you please send a more complete sample in order for us to see what you are reporting? Best regards: OK
On 19 Feb 2018, at 03:21, Jeong Dal
wrote: Hi,
During the search Euler font, I found a manual “creating metapost outlines”. It is what I looking for at the last year.
I tried an example for section head, but it issued an undefined control sequence message.
Please tell me what is wrong and how to change. I copied the sample code and a part of log file at the end.
Thank you for reading.
Best regards,
Dalyoung
%%%%%%% \starttext \section{First One} This worked fine before. 이 전에는 잘 되었습니다.
\startformula \int f(x) dx \stopformula
\section{Second Two} Who made the Euler font. x, y, z
$x^2 + y^2 = z^2$ \stoptext %%%%%%%%%
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
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 2/19/2018 8:09 AM, Otared Kavian wrote:
Tha sample code below runs correctly, except that the Korean words are not displayed, since there is no body fonts set up for that language. Could you please send a more complete sample in order for us to see what you are reporting? \setupbodyfont[unfonts]
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jeong Dal
-
Otared Kavian