ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Minimals - problems with format: metafun.mp
Date: Mon, 03 Nov 2008 10:30:45 +0100	[thread overview]
Message-ID: <490EC4C5.10205@wxs.nl> (raw)
In-Reply-To: <490E0E91.1010208@gmx.net>

Peter Rolf wrote:
> Johannes Graumann schrieb:
>> Hello,
>>
>> In a bit to finally get Wolfgang's present to me (see XML thread somewhere) finally compiled, I update my minimals via the first-install.sh script and run "luatools --generat && context --make" afterwards. Now I get the  error below. Where might I err?
>>
>> Thanks, Joh
>>
>> context --version
>> MtxRun | main context file: /opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex
>> MtxRun | current version: 2008.10.31 13:58
>>
>> systems        : randomizer starts with 1392096869
>> mplib          : making format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem
>> mplib          : problems with format: metafun.mp, name: /opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem
>> ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 'for' initial value must be a number
>> stack traceback:
>>         ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in function 'free_boxes'
>>         ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in function 'graphic_base_pass'
>>         ...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 'graphic'
>>         <main ctx instance>:1: in main chunk.
>> \processMPgraphic ... \MPuserinclusions ;\!!es ) }
>>                                                   \global \settrue \METAFUNi...
>> \getMPdrawing ...ic \expandafter {\MPdrawingdata }
>>                                                   \fi
>> \dopositionaction ...fMPdrawingdone \getMPdrawing
>>                                                   \fi \resetMPdrawing \popMP...
>> <argument> ...n {\v!text -1::\MPanchoridentifier }
>>                                                   \hss }\ht \scratchbox \ove...
>> \firstoftwoarguments #1#2->#1
>>
>> \positionoverlay ...hbox to \overlaywidth {\hss }}
>>                                                   \vfill }\fi
>> ...
>> l.72   \stoptext
>>
>> ?
>>
> The loop variables metapost.first_box and metapost.last_box are not
> defined. You can try to remove the comment in line 376 of mlib-pps.lua.
> 
> [376] metapost.first_box, metapost.last_box = 1000, 1100

you can make that

metapost.first_box       = metapost.first_box or 1000
metapost.last_box        = metapost.last_box or 1100

but even then, these vars are set in

mlib-pps.tex 61:   {\ctxlua{metapost.first_box, metapost.last_box = 
\number\MPLIBfirst, \number\MPLIBlast}}

so, it more looks like you have a faulty format file

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


  reply	other threads:[~2008-11-03  9:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-02 18:53 Johannes Graumann
2008-11-02 19:58 ` luigi scarso
2008-11-03 19:51   ` Johannes Graumann
2008-11-03 20:34     ` luigi scarso
2008-11-03 20:57     ` luigi scarso
2008-11-04 12:28     ` Hans Hagen
2008-11-04 20:30       ` luigi scarso
2008-11-05 11:24         ` Taco Hoekwater
2008-11-05 14:26           ` luigi scarso
2008-11-02 20:33 ` Peter Rolf
2008-11-03  9:30   ` Hans Hagen [this message]
2008-11-03 10:29     ` Peter Rolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=490EC4C5.10205@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).