From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101245 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Compilation problem with the latest version of standalone context(Metafun) Date: Mon, 16 Jul 2018 19:42:57 +0200 Message-ID: References: <1aee9f45-417f-4144-0e56-34f49d4a4275@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6971434531442069837==" X-Trace: blaine.gmane.org 1531762888 12645 195.159.176.226 (16 Jul 2018 17:41:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2018 17:41:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 16 19:41:24 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 1ff7Uv-00039j-LD for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jul 2018 19:41:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E17F54391A; Mon, 16 Jul 2018 19:43:11 +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 8KyhDHtJco0M; Mon, 16 Jul 2018 19:43:11 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2D2804391F; Mon, 16 Jul 2018 19:43:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ABB684391F for ; Mon, 16 Jul 2018 19:43:09 +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 VjhIlqFeSAo9 for ; Mon, 16 Jul 2018 19:43:08 +0200 (CEST) Original-Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) (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 73E7A4391A for ; Mon, 16 Jul 2018 19:42:58 +0200 (CEST) Original-Received: by mail-wm0-f48.google.com with SMTP id c14-v6so5659083wmb.4 for ; Mon, 16 Jul 2018 10:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=94rue3HSXqevSCuhrEZje90HinOxSsNK+/FwBNsg3yM=; b=A/bBEiRwLeftSzt8bV6Yso+G8jsMFZXk34tV9xLZmLHFoBjJjSkii/Ovz16xSFZL4R jmaVBfoth5H5fmMpn/vbSAsN9pz3YZvXCDORfZx/P/AunKK4WwiHT2l8VpdD2OJTctI/ oVTrQ9uUGe1m2wf6Kbesw7L5eOx5XuSQLQ+xcXkLrstvsvzViiySAm0oNS8a8x9ZfnKf 3esmrSCC2g34l11IGQZBStRFCfRxPWYSf+52ryXGLTjBSNLMFwpnoPrtywA9d7Sqi55g 2L9cHY4/eD6hLjDht/iS4qzrh6BNDhliINAa+j92cevra9r0ACY+CU+caKTPWSoHx7w4 Sw3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=94rue3HSXqevSCuhrEZje90HinOxSsNK+/FwBNsg3yM=; b=rKCSW7KHIagQKpuktpgOya/L1QRMC67Wxi5o3clrCYLgdiA7L554v3ULP9wCXsmqQx 3l2KNR4FYHN6b9HkS4Hc3hndg1iCVuHo3Gkik73+do7QgN2mF1Of00QdylF8rZ8kn45M r+otJk0Z7DQdp5iUeSqryDmBLVqsO1LqkmDFmtJ/VwqbTdKgFdXPQRNvInjePeG8YJ57 t/vKkMdFf/rOLcll0iBAvStibcHZIy5w12qO4QtLNoMPQHyqja/F/S6DFhLoPIdNrKDi IgaOz1BM+Jrvk/4RkZW9DGlJQpGVRNBNxBS8xl7O3VJnG+AQmBvBzRTBaOiKb/HNhkRt d6Mw== X-Gm-Message-State: AOUpUlEZjmsM1TTS1mzI0s0RVYuo4ZnkQ+rPJyrWYJ3rosi9mcNmbH6V L77LGfh/MTHYYIB0dvGq1WwLk+tD8uuxa42yNMZjAb1P X-Google-Smtp-Source: AAOMgpcD6go3QLUcVBXjaPqT4fjEttpy8F/qk7hbWGB4FgH6lSUsiiU90nuBiDJnAwF3NF3IDtCyJ+VsjwVB6p8xB5I= X-Received: by 2002:a1c:f415:: with SMTP id z21-v6mr9935254wma.80.1531762977836; Mon, 16 Jul 2018 10:42:57 -0700 (PDT) Original-Received: by 2002:adf:a51c:0:0:0:0:0 with HTTP; Mon, 16 Jul 2018 10:42:57 -0700 (PDT) In-Reply-To: <1aee9f45-417f-4144-0e56-34f49d4a4275@xs4all.nl> 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:101245 Archived-At: --===============6971434531442069837== Content-Type: multipart/alternative; boundary="0000000000002c93950571215cc0" --0000000000002c93950571215cc0 Content-Type: text/plain; charset="UTF-8" The chapter number does not appear. My editor is emacs and I compile with Context Full. 2018-07-16 19:27 GMT+02:00 Hans Hagen : > On 7/16/2018 4:24 PM, Fabrice Couvreur wrote: > >> Hello, >> The idea is to make a chapter header as with the "titlesec" package. My >> code compiles under texlive context 2018 but does not compile with last >> beta contest standalone. >> > > it processes on my machine so what fails? > > Thank you >> Fabrice >> >> ############################################ >> >> % macros=mkvi >> >> \setuppagenumbering[location=footer] >> >> \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 >> >> \dorecurse{6}{\startchapter >> [title={Fist chapter}] >> \input knuth >> \stopchapter} >> >> \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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ____________________________________________________________ >> _______________________ >> >> > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | 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/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --0000000000002c93950571215cc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The chapter number does not appear. My edit= or is emacs and I compile with Context Full.
<= div class=3D"gmail_extra">
2018-07-16 19:27 G= MT+02:00 Hans Hagen <j.hagen@xs4all.nl>:
On 7/16/2018 4:24 PM, Fabrice Couvreur wrot= e:
Hello,
The idea is to make a chapter header as with the "titlesec" packa= ge. My code compiles under texlive context 2018 but does not compile with l= ast beta contest standalone.

it processes on my machine so what fails?

Thank you
Fabrice

############################################

% macros=3Dmkvi

\setuppagenumbering[location=3Dfooter]

\startusableMPgraphic{NumberHead}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 draw outlinetext.f
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("\bf\namedhead= number{chapter}")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (withcolor "lig= htgray")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ysized 50pt ;
\stopusableMPgraphic


\unexpanded\def\processMPheadnumber#1%
=C2=A0=C2=A0 {\useMPgraphic{NumberHead}}

\setuphead
=C2=A0=C2=A0=C2=A0 [chapter]
=C2=A0=C2=A0=C2=A0 [command=3D\HeadTitle,
=C2=A0=C2=A0=C2=A0=C2=A0 headstyle=3D\ss,
=C2=A0=C2=A0=C2=A0=C2=A0 numbercommand=3D\processMPheadnumber]


\unexpanded\def\HeadTitle#1#2%
=C2=A0=C2=A0 {\framed
=C2=A0=C2=A0=C2=A0=C2=A0 [frame=3Doff,
=C2=A0=C2=A0=C2=A0=C2=A0 bottomframe=3Don,
=C2=A0=C2=A0=C2=A0=C2=A0 width=3Dbroad,
=C2=A0=C2=A0=C2=A0=C2=A0 align=3D{broad,nothyphenated,left}]
=C2=A0=C2=A0=C2=A0=C2=A0 {#1\blank[nowhite]#2}}

\starttext

\dorecurse{6}{\startchapter
=C2=A0=C2=A0 [title=3D{Fist chapter}]
=C2=A0=C2=A0 \input knuth
\stopchapter}

\stoptext

########################################



_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________



--

-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-pod.nl
-----------------------------------------------------------------=
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--0000000000002c93950571215cc0-- --===============6971434531442069837== 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 --===============6971434531442069837==--