From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81068 Path: news.gmane.org!not-for-mail From: Alexandre Gerussi Newsgroups: gmane.comp.tex.context Subject: problem with initialize_box in mkIV Date: Tue, 05 Mar 2013 11:21:24 +0100 Message-ID: <5135C724.9090909@free.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362555610 3827 80.91.229.3 (6 Mar 2013 07:40:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 07:40:10 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 06 08:40:34 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UD8xk-0004ZI-5n for gctc-ntg-context-518@m.gmane.org; Wed, 06 Mar 2013 08:40:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 421F3101E3; Wed, 6 Mar 2013 08:40:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id G59TGwXbPSv0; Wed, 6 Mar 2013 08:40:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 36C09101E7; Wed, 6 Mar 2013 08:40:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9F83101E8 for ; Tue, 5 Mar 2013 11:21:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5GWSGXV7HF1t for ; Tue, 5 Mar 2013 11:21:28 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 4FAF0101E6 for ; Tue, 5 Mar 2013 11:21:28 +0100 (CET) Original-Received: from smtp25.services.sfr.fr (smtp25.services.sfr.fr [93.17.128.119]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r25ALPwA021207 for ; Tue, 5 Mar 2013 11:21:26 +0100 Original-Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2506.sfr.fr (SMTP Server) with ESMTP id 32B197000077 for ; Tue, 5 Mar 2013 11:21:25 +0100 (CET) Original-Received: from [192.168.1.3] (149.40.117.78.rev.sfr.net [78.117.40.149]) by msfrf2506.sfr.fr (SMTP Server) with ESMTP id E02227000055 for ; Tue, 5 Mar 2013 11:21:24 +0100 (CET) X-SFR-UUID: 20130305102124918.E02227000055@msfrf2506.sfr.fr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120922 Icedove/10.0.7 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=93.17.128.119; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VJ7KlpyA - aa5f36573d71 - 20130305 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Mailman-Approved-At: Wed, 06 Mar 2013 08:40:07 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81068 Archived-At: Hi there, i'm having problems with metapost and positional graphics in mkIV. Here is a small test file that compiles OK with texexec but fails to compile with context: % the beginning \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[page][background=frames] \startMPpositiongraphic{frame} initialize_box(\MPpos{\MPvar{self}}); draw llxy--lrxy--urxy--ulxy--cycle; \stopMPpositiongraphic \startpositionoverlay{frames} \setMPpositiongraphic{one}{frame} \setMPpositiongraphic{two}{frame} \stoppositionoverlay \starttext This \hpos{one}{word} should be \hpos{two}{framed}. \stoptext % the end My system is a Debian Testing, but I don't believe that it is related to the distribution, as this example also fails in the context online compiler @ http://live.contextgarden.net/ The problem seems located around the initialize_box macro. Any help will be much appreciated. AG. Here is the entire output when compiling: $ context essai.tex mtx-context | run 1: luatex --fmt="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/cont-en" --lua="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/cont-en.lui" --backend="pdf" "./essai" \stoptext This is LuaTeX, Version beta-0.70.2-2012070300 (TeX Live 2012/Debian) \write18 enabled. (essai.tex ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2012.10.14 int: english/english system > cont-new.mkiv loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > essai.top loaded (essai.top) fonts > latin modern fonts are not preloaded languages > language en is active {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > defining > forced type afm of stmary10 not found fonts > defining > font with asked name 'stmary10' is not found using lookup 'file' fonts > virtual math > loading font LMMath7-Regular subfont 9 with name stmary10.afm at 458752 is skipped, not found fonts > defining > forced type afm of stmary10 not found fonts > defining > font with asked name 'stmary10' is not found using lookup 'file' fonts > virtual math > loading font LMMath9-Regular subfont 9 with name stmary10.afm at 589824 is skipped, not found fonts > defining > forced type afm of stmary10 not found fonts > defining > font with asked name 'stmary10' is not found using lookup 'file' fonts > virtual math > loading font LMMath12-Regular subfont 9 with name stmary10.afm at 786432 is skipped, not found fonts > fallback modern rm 12pt is loaded metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun': /usr/share/texmf/metapost/context/base/metafun.mpiv ! terminal: >> initialize_box ! Isolated expression. ( <*> initialize_box( 1,97.95276pt,705.01845pt,25.14001pt,8.32800pt,0.12000pt)... ! Extra tokens will be flushed. ( <*> initialize_box( 1,97.95276pt,705.01845pt,25.14001pt,8.32800pt,0.12000pt)... >> llxy ! Improper `addto'. withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ { --->{ curl1}..{curl1} <*> ...5.14001pt,8.32800pt,0.12000pt); draw llxy-- lrxy--urxy--ulxy--cycle; ; ! Extra tokens will be flushed. { --->{ curl1}..{curl1} <*> ...5.14001pt,8.32800pt,0.12000pt); draw llxy-- lrxy--urxy--ulxy--cycle; ; . system > tex > error on line 1 in file essai.tex: terminal: >> initialize_box ! Isolated expression. ( <*> initialize_box( 1,97.95276pt,705.01845pt,25.14001pt,8.32800pt,0.12000pt)... ! Extra tokens will be flushed. ( <*> initialize_box( 1,97.95276pt,705.01845pt,25.14001pt,8.32800pt,0.12000pt)... >> llxy ! Improper `addto'. withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ { --->{ curl1}..{curl1} <*> ...5.14001pt,8.32800pt,0.12000pt); draw llxy-- lrxy--urxy--ulxy--cycle; ; ! Extra tokens will be flushed. { --->{ curl1}..{curl1} <*> ...5.14001pt,8.32800pt,0.12000pt); draw llxy-- lrxy--urxy--ulxy--cycle; ; ... 1 >> \defineoverlay[frames][\positionoverlay{frames}] 2 \setupbackgrounds[page][background=frames] 3 4 \startMPpositiongraphic{frame} 5 initialize_box(\MPpos{\MPvar{self}}); 6 draw llxy--lrxy--urxy--ulxy--cycle; 7 \stopMPpositiongraphic 8 9 \startpositionoverlay{frames} 10 \setMPpositiongraphic{one}{frame} 11 \setMPpositiongraphic{two}{frame} ...lable:=true; ;;;;]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... \anch_positions_meta_graphic_use ...#3\stopMPcode \endgroup \anch_positions_meta_graphic_direct_indeed ...ame \removelastspace }\smashbo... \dohandleMPpositiongraphic ...tiongraphic {#2}{#3} \fi \308>frames::mpa ...positiongraphic {one}{frame}{} \dohandleMPpositiongraphic... ... l.16 \stoptext ? ^Cmetapost > error: unknown, no error, terminal or log messages ! terminal: [1] . system > tex > error on line 1 in file essai.tex: terminal: [1] ... 1 >> \defineoverlay[frames][\positionoverlay {frames}] 2 \setupbackgrounds[page][background=frames] 3 4 \startMPpositiongraphic{frame} 5 initialize_box(\MPpos{\MPvar{self}}); 6 draw llxy--lrxy--urxy--ulxy--cycle; 7 \stopMPpositiongraphic 8 9 \startpositionoverlay{frames} 10 \setMPpositiongraphic{one}{frame} 11 \setMPpositiongraphic{two}{frame} alexandre@knuth:~/ENSEIGNEMENT/12/TSTI$ ...lable:=true; ;;;;]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... \anch_positions_meta_graphic_use ...#3\stopMPcode \endgroup \anch_positions_meta_graphic_direct_indeed ...ame \removelastspace }\smashbo... \dohandleMPpositiongraphic ...tiongraphic {#2}{#3} \fi \308>frames::mpa ...positiongraphic {one}{frame}{} \dohandleMPpositiongraphic... ... l.16 \stoptext ? ! Emergency stop. system > tex > error on line 1 in file essai.tex: Emergency stop ... 1 >> \defineoverlay[frames][\positionoverlay{frames}] 2 \setupbackgrounds[page][background=frames] 3 4 \startMPpositiongraphic{frame} 5 initialize_box(\MPpos{\MPvar{self}}); 6 draw llxy--lrxy--urxy--ulxy--cycle; 7 \stopMPpositiongraphic 8 9 \startpositionoverlay{frames} 10 \setMPpositiongraphic{one}{frame} 11 \setMPpositiongraphic{two}{frame} ...lable:=true; ;;;;]===], false)} \meta_process_graphic ...!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \m... \anch_positions_meta_graphic_use ...#3\stopMPcode \endgroup \anch_positions_meta_graphic_direct_indeed ...ame \removelastspace }\smashbo... \dohandleMPpositiongraphic ...tiongraphic {#2}{#3} \fi \308>frames::mpa ...positiongraphic {one}{frame}{} \dohandleMPpositiongraphic... ... l.16 \stoptext ! ==> Fatal error occurred, no output PDF file produced! ___________________________________________________________________________________ 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 ___________________________________________________________________________________