Re: [NTG-context] [Metapost] Using mkIV and metapost to produce SVG
On 5/5/2014 1:54 PM, ralf.waldvo...@pta.de wrote: Dear all, I would like to produce an svg file from a Metapost input file using some of ConTeXt's typesetting features (esp. using System OTF Fonts) using something like: \startbuffer[buffer:dummy] \start \startcolor[white] \framed[align=middle,width=28mm,frame=off] { \SansBodyBold % Font definition done earlier Test to \par rendered \par } \stopcolor \stop \stopbuffer % \startuniqueMPgraphic{mp:margin} picture text; text := btex \getbuffer[buffer:dummy] etex; draw text shifted(-11.8mm,-4.8mm ); % Some more fancy drawing her \stopuniqueMPgraphic Can I render that with MetaPost to SVG? no Is it possible to render text as paths not as referenced glyphs in MetaPost/ConTexT? no, unless you use the graphic text features Unfortunately I have to stick to SVG as the resulting output format. Converting from PDF to SVG is not an option at the moment due a) performance considerations and b) trouble with generated font names in the resulting ConTeXt PDF file (inkscape as well as pdf2svg produce real strange results). performance should not really be an issue as one can cache what strange results? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [Metapost] Using mkIV and metapost to produce SVG
Dear all, as I have seen on the mailing list digest, my original (HTML) mail has been scrambled. Sorry for that. Here the repost: I would like to produce an svg file from a Metapost input file using some of ConTeXt's typesetting features (esp. using System OTF Fonts) using something like: \startbuffer[buffer:dummy] \start \startcolor[white] \framed[align=middle,width=28mm,frame=off] { \SansBodyBold % Font definition done earlier Test to \par rendered \par } \stopcolor \stop \stopbuffer % \startuniqueMPgraphic{mp:margin} picture text; text := btex \getbuffer[buffer:dummy] etex; draw text shifted(-11.8mm,-4.8mm ); % Some more fancy drawing her \stopuniqueMPgraphic Can I render that with MetaPost to SVG? Is it possible to render text as paths not as referenced glyphs in MetaPost/ConTexT? Unfortunately I have to stick to SVG as the resulting output format. Converting from PDF to SVG is not an option at the moment due a) performance considerations and b) trouble with generated font names in the resulting ConTeXt PDF file (inkscape as well as pdf2svg produce real strange results). Please let me know, if you need furhter information. Thank you very much in advance. Kind regards, Ralf http://www.pta.de Mit ca. 2.460 Erfahrungsberichten aus 45 Jahren erfolgreicher Projektarbeit! PTA Programmier-Technische Arbeiten GmbH Seckenheimer Str. 65-67, 68165 Mannheim Amtsgericht Mannheim, HRB 1139 USt-IdNr.: DE 143 839 368 Geschaeftsfuehrer: Dipl.-Ing. Peter Fischer Dr. Harald W. Busch Dipl.-Kfm. Knut Fischer ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [Metapost] Using mkIV and metapost to produce SVG
Dear all,I would like to produce an svg file from a Metapost input file using some of ConTeXt's typesetting features (esp. using System OTF Fonts) using something like:\startbuffer[buffer:dummy] \start\startcolor[white]\framed[align=middle,width=28mm,frame=off]{ \SansBodyBold % Font definition done earlier Test to \par rendered \par}\stopcolor \stop\stopbuffer% \startuniqueMPgraphic{mp:margin} picture text; text := btex \getbuffer[buffer:dummy] etex; draw text shifted(-11.8mm,-4.8mm ); % Some more fancy drawing her\stopuniqueMPgraphicCan I render that with MetaPost to SVG?Is it possible to render text as paths not as referenced glyphs in MetaPost/ConTexT?Unfortunately I have to stick to SVG as the resulting output format.Converting from PDF to SVG is not an option at the moment due a) performance considerations and b) trouble with generated font names in the resulting ConTeXt PDF file (inkscape as well as pdf2svg produce real strange results).Please let me know, if you need furhter information.Thank you very much in advance.Kind regards,Ralf ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and mkiv
Alan BRASLAU wrote: On Friday 27 November 2009 14:54:53 Willi Egger wrote: Hi Alan, I run in this myself. A possible solution is: \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(textext(\color[red] decimal i ), (i, -1) scaled 1cm); endfor ; \stopuniqueMPgraphic \setupcolors[state=start] \starttext \uniqueMPgraphic{test} \stoptext KR Willi Yes, Thanks. I thought of this as a work-around, but the first is clearly a bug. iirc, Hans says this is an intentional difference between mkii and mkiv, but it is not yet on the wiki page because I am not sure what to write down. Best wishes, Taco ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and mkiv
On Friday 27 November 2009 14:54:53 Willi Egger wrote: Hi Alan, I run in this myself. A possible solution is: \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(textext(\color[red] decimal i ), (i, -1) scaled 1cm); endfor ; \stopuniqueMPgraphic \setupcolors[state=start] \starttext \uniqueMPgraphic{test} \stoptext KR Willi Yes, Thanks. I thought of this as a work-around, but the first is clearly a bug. What actually works is: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : %draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ; draw thelabel(textext(\red decimal i ), (i, 0) scaled 1cm) ; endfor ; \stopuniqueMPgraphic \uniqueMPgraphic{test} \stoptext Now it is up to the experts to fix the bug in mkiv. Alan ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Metapost and mkiv
Is this a bug in mkiv metapost? Alan minimal example: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ; % red in mkii, black in mkiv? endfor ; \stopuniqueMPgraphic \uniqueMPgraphic{test} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and mkiv
Alan BRASLAU wrote: Is this a bug in mkiv metapost? Alan minimal example: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ; % red in mkii, black in mkiv? endfor ; \stopuniqueMPgraphic \uniqueMPgraphic{test} \stoptext you might try one of \chardef\MPcolormethod0 \chardef\MPcolormethod1 \chardef\MPcolormethod2 \chardef\MPcolormethod3 - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and mkiv
Hi Alan, I run in this myself. A possible solution is: \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(textext(\color[red] decimal i ), (i, -1) scaled 1cm); endfor ; \stopuniqueMPgraphic \setupcolors[state=start] \starttext \uniqueMPgraphic{test} \stoptext KR Willi On Nov 27, 2009, at 10:31 AM, Alan BRASLAU wrote: Is this a bug in mkiv metapost? Alan minimal example: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ; % red in mkii, black in mkiv? endfor ; \stopuniqueMPgraphic \uniqueMPgraphic{test} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MetaPost broken mkiv latest minimals
MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
On Tue, Nov 24, 2009 at 9:05 PM, Alan BRASLAU alan.bras...@cea.fr wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \stoptext It seems ok here # context --version MTXrun | main context file: /opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.11.24 10:13 r...@luigicasa-laptop:/opt/luatex/mkiv# luatex --version This is LuaTeX, Version beta-0.44.0-2009110210 # uname -a Linux luigicasa-laptop 2.6.24-25-generic #1 SMP Tue Oct 20 07:31:10 UTC 2009 i686 GNU/Linux Ububtu 8.04 LTS 32 bit -- luigi test-alan.pdf Description: Adobe PDF document ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
Alan BRASLAU wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \stoptext the problem was in the backend of one of the recent luatex binaries but has been solved already Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
On Tue, Nov 24, 2009 at 21:21, Hans Hagen wrote: Alan BRASLAU wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \stoptext the problem was in the backend of one of the recent luatex binaries but has been solved already May I bet that Alan is using linux for which I need Hans' build for which it might be polite of me to send him new building scripts since the current ones fail (the old version of svn on debian sarge doesn't recognize some of the options)? Sorry guys, but it's too late today. Mojca ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
On Tuesday 24 November 2009 21:20:05 luigi scarso wrote: On Tue, Nov 24, 2009 at 9:05 PM, Alan BRASLAU alan.bras...@cea.fr wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \stoptext It seems ok here # context --version MTXrun | main context file: /opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.11.24 10:13 r...@luigicasa-laptop:/opt/luatex/mkiv# luatex --version This is LuaTeX, Version beta-0.44.0-2009110210 Thanks. I checked, and it is broken on amd64: MTXrun | main context file: /home/local/context/tex/texmf- context/tex/context/base/context.tex MTXrun | current version: 2009.11.24 10:13 This is LuaTeX, Version beta-0.45.0-2009112119 But works on i686: MTXrun | main context file: /home/dell/local/context/tex/texmf- context/tex/context/base/context.tex MTXrun | current version: 2009.11.24 10:13 This is LuaTeX, Version beta-0.44.0-2009110210 So it is a luatex bug in Version beta-0.45.0-2009112119 Alan ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
Mojca Miklavec wrote: On Tue, Nov 24, 2009 at 21:21, Hans Hagen wrote: Alan BRASLAU wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \stoptext the problem was in the backend of one of the recent luatex binaries but has been solved already May I bet that Alan is using linux for which I need Hans' build for which it might be polite of me to send him new building scripts since the current ones fail (the old version of svn on debian sarge doesn't recognize some of the options)? Sorry guys, but it's too late today. ok, i will do it tomorrow Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
On Tuesday 24 November 2009 21:49:06 Hans Hagen wrote: Mojca Miklavec wrote: On Tue, Nov 24, 2009 at 21:21, Hans Hagen wrote: Alan BRASLAU wrote: MetaPost is broken in mkiv (works in mkii). minimal example: \starttext \startuniqueMPgraphic{circle} pickup pencircle scaled 1pt ; draw fullcircle scaled 2cm ; \stopuniqueMPgraphic \uniqueMPgraphic{circle} \stoptext the problem was in the backend of one of the recent luatex binaries but has been solved already May I bet that Alan is using linux for which I need Hans' build for which it might be polite of me to send him new building scripts since the current ones fail (the old version of svn on debian sarge doesn't recognize some of the options)? Sorry guys, but it's too late today. ok, i will do it tomorrow Hans I rebuilt luatex from svn on Debian x86_64 and MP is fixed. Alan ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
On Tue, Nov 24, 2009 at 10:51 PM, Alan BRASLAU alan.bras...@cea.fr wrote: I rebuilt luatex from svn on Debian x86_64 and MP is fixed. hm. Can you also try with beta source http://foundry.supelec.fr/gf/download/frsrelease/359/1390/luatex-beta-0.45.0.tar.bz2 ? -- luigi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost broken mkiv latest minimals
luigi scarso wrote: On Tue, Nov 24, 2009 at 10:51 PM, Alan BRASLAU alan.bras...@cea.fr wrote: I rebuilt luatex from svn on Debian x86_64 and MP is fixed. hm. Can you also try with beta source http://foundry.supelec.fr/gf/download/frsrelease/359/1390/luatex-beta-0.45.0.tar.bz2 That one is broken, sorry. New beta on thursday (probably). Best wishes, Taco ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Metapost and mkiv
Hi all, The following minimal example used to work with mkiv (until last May, I would guess…) but now it doesn't work with the latest ConTeXt version 2009.09.21 17:39 Can any one tell me please what am I doing wrong? Best regards: OK %% begin \setupcolors[state=start] \starttext \startbuffer[axes-1] numeric u ; u := .5cm ; path xox ; xox := (-u,0)--(8u,0) ; path yoy ; yoy := (0,-u)--(0,7u) ; draw xox withcolor blue ; draw yoy withcolor blue ; \stopbuffer This MetaPost graphic is \doifmodeelse{mkiv}{not shown with mkiv} {shown with mkii}: \placefigure[middle][-]{}{\processMPbuffer[axes-1]} {} \stoptext %% end ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and mkiv
Otared Kavian wrote: Hi all, The following minimal example used to work with mkiv (until last May, I would guess…) but now it doesn't work with the latest ConTeXt version 2009.09.21 17:39 Can any one tell me please what am I doing wrong? shows ok here - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost and mkiv
On Tue, 22 Sep 2009, Hans Hagen wrote: Otared Kavian wrote: Hi all, The following minimal example used to work with mkiv (until last May, I would guess…) but now it doesn't work with the latest ConTeXt version 2009.09.21 17:39 Can any one tell me please what am I doing wrong? shows ok here It also works for me with 2009.09.18. Do normal MP figures work (those inside \startMPcode...\stopMPcode) Aditya___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MetaPost graph mkiv error
MP graph works with latest minimals beta in mkii, broken in mkiv. Minimal example: \startuseMPgraphic{test} input graph draw begingraph(3in,2in); gdraw agepopm.d; endgraph; \stopuseMPgraphic \starttext \useMPgraphic{test} \stoptext (Of course, you know where to find agepopm.d) Alan This is LuaTeX, Version snapshot-0.37.0 (test.tex ConTeXt ver: 2009.03.30 18:28 MKIV fmt: 2009.4.1 int: english/english system : cont-new loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.mkiv))) system : test.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % special commands, mostly for the ctx development team % % feedback and basic job control % % handy for special styles % \startluacode % document.arguments={ % } % document.files={ % test, % } % \stopluacode % % process info % \setupsystem[\c!n=1,\c!m=1] % \setupsystem[\c!type=unix] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (test.top) fonts : preloading latin modern fonts bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active (test.tuo) (test.tuo) systems: begin file test at line 8 mplib : loading format: metafun.mp, name: /usr/local/context/tex/texmf-cache/luatex-cache/context/f70b0d481875d119766efabfbdb61af7/formats/cont-en-metafun.mem ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-def.lua:114: bad argument #1 to 'match' (string expected, got nil) stack traceback: [C]: in function 'match' ...text/tex/texmf-context/tex/context/base/font-def.lua:114: in function 'get_specification' ...text/tex/texmf-context/tex/context/base/font-def.lua:726: in function 'command_1' main ctx instance:1: in main chunk. \lowleveldefinefont ...1(\luaescapestring {#1})} \ifcase \scaledfontmode \r... \dododefinefont ...inefont {#2}\rawfontidentifier \let \localrelativefontsiz... \dodefinedfont ...csname thedefinedfont\endcsname \the \everydefinedfont l.6 \MPLIBsettext{421}{\definedfont[] 1} \processMPgraphic ...e \MPuserinclusions ;\!!es )} \global \settrue \METAFUNi... \handleuseMPgraphic ...hics \processMPgraphic {#3} \elabelgroup ... l.9 \useMPgraphic{test} ? ! Missing number, treated as zero. to be read again \edef \lowleveldefinefont ... \scaledfontsize \fi \edef \somefontspec {at \number ... \dododefinefont ...inefont {#2}\rawfontidentifier \let \localrelativefontsiz... \dodefinedfont ...csname thedefinedfont\endcsname \the \everydefinedfont l.6 \MPLIBsettext{421}{\definedfont[] 1} \processMPgraphic ...e \MPuserinclusions ;\!!es )} \global \settrue \METAFUNi... ... l.9 \useMPgraphic{test} ? ! Illegal unit of measure (pt inserted). to be read again \edef \lowleveldefinefont ... \scaledfontsize \fi \edef \somefontspec {at \number ... \dododefinefont ...inefont {#2}\rawfontidentifier \let \localrelativefontsiz... \dodefinedfont ...csname thedefinedfont\endcsname \the \everydefinedfont l.6 \MPLIBsettext{421}{\definedfont[] 1} \processMPgraphic ...e \MPuserinclusions ;\!!es )} \global \settrue \METAFUNi... ... l.9 \useMPgraphic{test} ? X mkiv lua stats :