From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101691 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Emacs + latest beta Date: Thu, 23 Aug 2018 20:58:01 +0200 Message-ID: <9de1e526-9a94-6b6f-24cd-e6ef24ebc5d0@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2680151405642683861==" X-Trace: blaine.gmane.org 1535050609 6337 195.159.176.226 (23 Aug 2018 18:56:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2018 18:56:49 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 PostboxApp/6.1.1 To: mailing list for ConTeXt users , Fabrice Couvreur Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 23 20:56:45 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fsumj-0001W6-5M for gctc-ntg-context-518@m.gmane.org; Thu, 23 Aug 2018 20:56:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F22E855D18; Thu, 23 Aug 2018 20:58:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G9tGUXRpid4B; Thu, 23 Aug 2018 20:58:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AD59A55D19; Thu, 23 Aug 2018 20:58:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 95FCD55D19 for ; Thu, 23 Aug 2018 20:58:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cPZHFn6XlsAx for ; Thu, 23 Aug 2018 20:58:30 +0200 (CEST) Original-Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A2F0755D18 for ; Thu, 23 Aug 2018 20:58:20 +0200 (CEST) Original-Received: by mail-ed1-f52.google.com with SMTP id s10-v6so4259454edb.11 for ; Thu, 23 Aug 2018 11:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=owTOMX4fyfvpHCL2RejtPgt5+8Kd4pIOvC+5SmSfpyY=; b=gmKc95kBuSShutSHoKAAlNtRX7yotxCNflDkhZaydFSu7Wg6d4pUM8cSEami2dwRL0 VVlX0rroORGv3H07B5zSkTXyjv7BVnJMrGZvVLYo1WTsgMyzgF4f3fCpZADIjzw4oX0A LRNDMcnsjjzrAoyvBYuOojTfr9deilJM/f7OcchU/MAlUc9XGEI3CixkSn+vIX5RbTaH kunEZH0r87U06MFiG7RcLviYYP9qzRSMNm5CV5Rj/2tmckO8/y6QuR1/RzrTNHM/9a/Q YiLrdcPGA73SFs9vBuPPbxAzzlP/D32NhWHzAabeQ77u1s/x/9Szoo/Lxf6McRSGY4jP YfPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=owTOMX4fyfvpHCL2RejtPgt5+8Kd4pIOvC+5SmSfpyY=; b=uEinytnmuy++3MSVfRCTyyE4tEvCJBfov5BE7o2wIIBhM/4X0tx2EO1HEIwZi0T9m8 0+TnkYOZOtpx8C9qHHwaoFuVyqWIzkPOoUmtY1pEmz0ZJXZHVKAa7nPfFkwIL09HrnEg FfwbtP4KDCT/UfTUWRLYjhAWPxsDnGiQAavD93EQMeqBRP7jdb0qFGvgd7Pl5oCSEuPp WqkhPAdm6LcueIxgMWxbzC62sfbQFRMOMPsUOohrKpXBe5g8UzL038EdB5wHb29+ywpH 7c5HRTk/M5fTB0Of+yMO1yjTiLqJsKyanjRC32cmon+mzfoWpKViSBpchunalQAMUdoF V81A== X-Gm-Message-State: AOUpUlEFAgK+HXV+d975KBW7Xbmpk6Rm6kU3d+9e9p5TbnHE9MlcsCJC mhsEiducCVaZpCDrkvb+XLM= X-Google-Smtp-Source: AA+uWPwaoHIGGNlH5ZoP6pot1tZW7f5nr9ny4XlWhWPNVwccb4D8oC1WmZyQqf+0vLZ5/F5/yR5xcQ== X-Received: by 2002:aa7:d58b:: with SMTP id r11-v6mr23191406edq.81.1535050700277; Thu, 23 Aug 2018 11:58:20 -0700 (PDT) Original-Received: from [192.168.1.11] (x4d07049b.dyn.telefonica.de. [77.7.4.155]) by smtp.gmail.com with ESMTPSA id i15-v6sm2919699ede.66.2018.08.23.11.58.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 11:58:19 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:101691 Archived-At: This is a multi-part message in MIME format. --===============2680151405642683861== Content-Type: multipart/alternative; boundary="------------45104C5BD6655886A80FF879" Content-Language: en-US This is a multi-part message in MIME format. --------------45104C5BD6655886A80FF879 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit You get an error message because outlinetext doesn’t work. \starttext \startMPcode draw outlinetext.f ("A") () ; \stopMPcode \stoptext Wolfgang Fabrice Couvreur schrieb am 22.08.18 um 13:05: > Hello, > Sorry to insist, but could anyone help me understand the problem I'm > having in using Emacs with standalone context ? > The following file compiles perfectly from a terminal : > > /home/aragorn/texlive/2018/bin/x86_64-linux/context test.tex > > /home/aragorn/context/tex/texmf-linux-64/bin/context test.tex (latest > beta) > > With Emacs, it compiles perfectly if you use the 2018 texlive context > binary. > > If I want to use the latest beta context binary, I need to add this to > my ~/.emacs file : > > (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t) > > And there, I encounter a compilation problem : > > Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop > pouf.tex''resolvers | trees | analyzing 'home:texmf' > mtx-context | run 1: luatex > --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" > --interaction="nonstopmode" --jobname="pouf" > --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" > --no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex" > --c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 > --c:nonstopmode --c:purgeall "cont-yes.mkiv" > > This is LuaTeX, Version 1.08.0 (TeX Live 2018) > system commands enabled. > > resolvers > trees > analyzing 'home:texmf' > open source > level 1, order 1, name > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > job > passes > version mismatch: 1.3 <> 1.31 > system > > system > ConTeXt ver: 2018.08.20 17:47 MKIV beta fmt: > 2018.8.20 int: english/english > system > > system > 'cont-new.mkiv' loaded > open source > level 2, order 2, name > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' > system > beware: some patches loaded from cont-new.mkiv > close source > level 2, order 2, name > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' > > system > files > jobname 'pouf', input './pouf', result 'pouf' > fonts > latin modern fonts are not preloaded > languages > language 'en' is active > open source > level 2, order 3, name '/home/aragorn/pouf.tex' > fonts > preloading latin modern fonts (second stage) > fonts > 'fallback modern-designsize rm 12pt' is loaded > structure > sectioning > chapter @ level 2 : 0.1 -> First chapter > metapost > initializing instance 'metafun:1' using format > 'metafun' and method 'default' > metapost > loading 'metafun' as > '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' > using method 'default' > metapost > initializing number mode 'scaled' > > lua error > lua error on line 10 in file /home/aragorn/pouf.tex: > > ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: > attempt to call a nil value (global 'getid') > stack traceback: > ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in > upvalue 'getexpansion' > ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in > function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338> > ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in > local 'boxtomp' > ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in > function > <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891> > (...tail calls...) > > 1 > 2 \startusableMPgraphic{NumberHead} > 3 draw outlinetext.f > 4 ("\bf\namedheadnumber{chapter}") > 5 (withcolor "lightgray") > 6 ysized 50pt ; > 7 \stopusableMPgraphic > 8 > 9 \unexpanded\def\processMPheadnumber#1% > 10 >> {\useMPgraphic{NumberHead}} > 11 > 12 \setuphead > 13 [chapter] > 14 [command=\HeadTitle, > 15 headstyle=\ss, > 16 numbercommand=\processMPheadnumber, > 17 ] > 18 > 19 > 20 \unexpanded\def\HeadTitle#1#2% > > > open source > level 3, order 4, name > '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex' > close source > level 3, order 4, name > '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex' > backend > xmp > using file > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1, subpage 1 > close source > level 2, order 4, name '/home/aragorn/pouf.tex' > close source > level 1, order 4, name > '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > > mkiv lua stats > used config file: > selfautoparent:/texmf/web2c/texmfcnf.lua > mkiv lua stats > used cache path: > /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e > mkiv lua stats > resource resolver: loadtime 0.007 seconds, 1 scans > with scantime 0.000 seconds, 0 shared scans, 31 found files, scanned > paths: /home/aragorn/texmf > mkiv lua stats > stored bytecode data: 437 modules (0.226 sec), 93 > tables (0.015 sec), 530 chunks (0.241 sec) > mkiv lua stats > traced context: maxstack: 1328, freed: 5, > unreachable: 1323 > mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455 > mkiv lua stats > node memory usage: 2 glue, 2 kern, 2 penalty, 14 > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined > mkiv lua stats > node list callback tasks: 8 unique task lists, 6 > instances (re)created, 55 calls > mkiv lua stats > used backend: pdf (backend for directly generating > pdf output)mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 > seconds loading > mkiv lua stats > callbacks: internal: 179, file: 180, direct: 2, > late: 1, function 529, total: 891 > mkiv lua stats > loaded patterns: en::2, load time: 0.000 > mkiv lua stats > result saved in file: pouf.pdf, compresslevel 3, > objectcompresslevel 3 > mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf, > lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf > mkiv lua stats > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 > instances, 3 shared in backend, 3 common vectors, 0 common hashes, > load time 0.238 seconds > mkiv lua stats > metapost: 0.001 seconds, loading: 0.018, execution: > 0.000, n: 1, average: 0.019, instances: 1, luacalls: 7, memory: 2.608 M > mkiv lua stats > used platform: linux-64, type: unix, binary subtree: > texmf-linux-64 > mkiv lua stats > used engine: luatex version 1.08 with functionality > level 6731, banner: this is luatex, version 1.08.0 (tex live 2018) > mkiv lua stats > control sequences: 46533 of 65536 + 100000 > mkiv lua stats > lua properties: engine: lua 5.3, used memory: 61 MB > (ctx: 61 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf > (τεχ) > mkiv lua stats > runtime: 0.613 seconds, 1 processed pages, 1 shipped > pages, 1.631 pages/second > mtx-context | fatal error: return code: 1 > > TeX Output exited abnormally with code 1 at Wed Aug 22 13:01:54 > > ######## > test.tex > ######## > > \startusableMPgraphic{NumberHead} > draw outlinetext.f > ("\bf\namedheadnumber{chapter}") > (withcolor "lightgray") > ysized 50pt ; > \stopusableMPgraphic > > \unexpanded\def\processMPheadnumber#1% > {\useMPgraphic{NumberHead}} > > \setuphead > [chapter] > [command=\HeadTitle, > headstyle=\ss, > numbercommand=\processMPheadnumber, > ] > > > \unexpanded\def\HeadTitle#1#2% > {\framed > [frame=off, > bottomframe=on, > width=broad, > align={broad,nothyphenated,left}] > {#1\blank[nowhite]#2}} > > \starttext > \startchapter[title=First chapter] > \input ward > \stopchapter > \stoptext > > Thanks > Fabrice > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------45104C5BD6655886A80FF879 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit You get an error message because outlinetext doesn’t work.

\starttext

\startMPcode
    draw outlinetext.f
        ("A")
        () ;
\stopMPcode

\stoptext


Wolfgang


Fabrice Couvreur schrieb am 22.08.18 um 13:05:
Hello,
Sorry to insist, but could anyone help me understand the problem I'm having in using Emacs with standalone context ?
The following file compiles perfectly from a terminal :

/home/aragorn/texlive/2018/bin/x86_64-linux/context  test.tex

/home/aragorn/context/tex/texmf-linux-64/bin/context  test.tex (latest beta)

With Emacs, it compiles perfectly if you use the 2018 texlive context binary.

If I want to use the latest beta context binary, I need to add this to my ~/.emacs file :

(setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)

And there, I encounter a compilation problem :

Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop pouf.tex''resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luatex --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --interaction="nonstopmode" --jobname="pouf" --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex" --c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode --c:purgeall "cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
job             > passes > version mismatch: 1.3 <> 1.31
system          >
system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20  int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > files > jobname 'pouf', input './pouf', result 'pouf'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/pouf.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun' and method 'default'
metapost        > loading 'metafun' as '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using method 'default'
metapost        > initializing number mode 'scaled'

lua error       > lua error on line 10 in file /home/aragorn/pouf.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to call a nil value (global 'getid')
stack traceback:
    ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in upvalue 'getexpansion'
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in local 'boxtomp'
    ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
    (...tail calls...)

 1    
 2     \startusableMPgraphic{NumberHead}
 3          draw outlinetext.f
 4              ("\bf\namedheadnumber{chapter}")
 5              (withcolor "lightgray")
 6               ysized 50pt ;
 7     \stopusableMPgraphic
 8    
 9     \unexpanded\def\processMPheadnumber#1%
10 >>    {\useMPgraphic{NumberHead}}
11    
12     \setuphead
13        [chapter]
14        [command=\HeadTitle,
15         headstyle=\ss,
16         numbercommand=\processMPheadnumber,
17        ]
18    
19    
20     \unexpanded\def\HeadTitle#1#2%


open source     > level 3, order 4, name '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
backend         > xmp > using file '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/home/aragorn/pouf.tex'
close source    > level 1, order 4, name '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans with scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths: /home/aragorn/texmf
mkiv lua stats  > stored bytecode data: 437 modules (0.226 sec), 93 tables (0.015 sec), 530 chunks (0.241 sec)
mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable: 1323
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14 attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 6 instances (re)created, 55 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: internal: 179, file: 180, direct: 2, late: 1, function 529, total: 891
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: pouf.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.238 seconds
mkiv lua stats  > metapost: 0.001 seconds, loading: 0.018, execution: 0.000, n: 1, average: 0.019, instances: 1, luacalls: 7, memory: 2.608 M
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.08 with functionality level 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats  > control sequences: 46533 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 61 MB (ctx: 61 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.613 seconds, 1 processed pages, 1 shipped pages, 1.631 pages/second
mtx-context     | fatal error: return code: 1

TeX Output exited abnormally with code 1 at Wed Aug 22 13:01:54

########
test.tex
########

\startusableMPgraphic{NumberHead}
     draw outlinetext.f
         ("\bf\namedheadnumber{chapter}")
         (withcolor "lightgray")
          ysized 50pt ;
\stopusableMPgraphic

\unexpanded\def\processMPheadnumber#1%
  {\useMPgraphic{NumberHead}}

\setuphead
   [chapter]
   [command=\HeadTitle,
    headstyle=\ss,
    numbercommand=\processMPheadnumber,
   ]


\unexpanded\def\HeadTitle#1#2%
  {\framed
    [frame=off,
     bottomframe=on,
     width=broad,
     align={broad,nothyphenated,left}]
    {#1\blank[nowhite]#2}}
 
  \starttext
  \startchapter[title=First chapter]
    \input ward
  \stopchapter
  \stoptext

Thanks
Fabrice


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

--------------45104C5BD6655886A80FF879-- --===============2680151405642683861== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2680151405642683861==--