From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101246 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: Tue, 17 Jul 2018 12:36:32 +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="===============7453776716512753638==" X-Trace: blaine.gmane.org 1531823732 6838 195.159.176.226 (17 Jul 2018 10:35:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2018 10:35:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 17 12:35:28 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 1ffNKJ-0001gq-Ki for gctc-ntg-context-518@m.gmane.org; Tue, 17 Jul 2018 12:35:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8B8F043E8C; Tue, 17 Jul 2018 12:36:47 +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 6HzW1sTRAjgJ; Tue, 17 Jul 2018 12:36:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9CB0F43E88; Tue, 17 Jul 2018 12:36:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFFA143E88 for ; Tue, 17 Jul 2018 12:36:44 +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 F5Z67Yz048nm for ; Tue, 17 Jul 2018 12:36:43 +0200 (CEST) Original-Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 5260143E86 for ; Tue, 17 Jul 2018 12:36:33 +0200 (CEST) Original-Received: by mail-wr1-f41.google.com with SMTP id c13-v6so751229wrt.1 for ; Tue, 17 Jul 2018 03:36:33 -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=0qKGmoOZbi+MmEZzDeAev+Qs4as7NNVm6zuLMvyoEZ0=; b=oJRdsNWnhFgWCcr1k9ONgl18yKZqBQ++QyU3fqRLU2t7xFbJXHjnZsACDxujePvoQe X2ETpqTxYzmlmyj6DCighnp6ZC+0hSWpdxynx9jao03AGoQ/aWRmrLWC6fn71+plDkAa 13DSltzf9y8h4NAGh7+lsp1qIT874j9XH99F6cot/YyceKAcwRN8ARTrRsbb03vqGGL9 uudcXEIKkifCMTv+Jhd6eRwOnEH6yrL5HPd3xqYpZyPIE+7C+UJ7R5EjrQOSBB4oGvGu fjZbuSq8KrQFHnkiY30UbGVY5aA3Go4FDnRJS0kKZu19PSCwQAxrBmSTgIYaOoIz3oAc rnyA== 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=0qKGmoOZbi+MmEZzDeAev+Qs4as7NNVm6zuLMvyoEZ0=; b=fBp0/Z7qckUsWhAqn5wqVXBEjpvyhxvx9Na1/L7XTFQDU32e2Buri6QUfjol3W3gec bUhCBbe5fmJ77Ka3MaX2XB88O4q0DwM9Bepf3LXTJfEUkvpMzv2U1KlW8IK+w0Z7P6nP kGgPkabLHYm7cabWKQwWp9b3mxLi9kSMA6WvR0/1x2VkJSCSpoRrj6Ar4bmIMV5Jh/Yq bRdu0EYCSP9AxwBU6/lLOZdrgq3stC2JkMB4UPwzu9xdE1wUmVwuZSLcqv/lZRdHZUg/ INgYL76CFPrti8E0khIzSdE7n2yO1Y2OmtzUEcThcqahyYUX/VBBQeuCAxCAeK3F/HJF Pzvw== X-Gm-Message-State: AOUpUlGuWg8HfwNSwyQQ/2MTOysi0Zy+HclYYTVH5Q6OdXBLXvIXKEmx IprFsjaW2pVRxR/PN8BUZdRvWCC/2uf42KFA462Aug== X-Google-Smtp-Source: AAOMgpdqU+nT80edHJ2g8M+yEIXZBmU+DVf6jMs2RF84CYm9dK2Fpvhu257xGcJnxjuU/ALn7OlReqTUJB20aQCgXyI= X-Received: by 2002:adf:90e9:: with SMTP id i96-v6mr998658wri.146.1531823792630; Tue, 17 Jul 2018 03:36:32 -0700 (PDT) Original-Received: by 2002:adf:a51c:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 03:36:32 -0700 (PDT) In-Reply-To: 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:101246 Archived-At: --===============7453776716512753638== Content-Type: multipart/alternative; boundary="00000000000004aeef05712f8591" --00000000000004aeef05712f8591 Content-Type: text/plain; charset="UTF-8" Hi Hans, In fact, the file compiles well with the beta version but only from a terminal by running the /home/aragorn/context/tex/texmf-linux-64/bin/context Test.tex && evince Test.pdf command. On the other hand, if I compile with Emacs, the chapter number does not appear. I configured Emacs so that in context mode, the compilation is done with the beta version. Here is a part of my ~/.emacs file : ;; SERVER Download (MELPA): (when (> = emacs-major-version 24) (require 'package) (Add-to-list Archive-Package '("melpa". "http://melpa.org/packages/") t) (Package-initialize)) (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin: $ PATH" t) (setq ConTeXt-mode-hook (lambda () (setq TeX-command-extra-options "--purgeall"))) Thank you Fabrice 2018-07-16 19:42 GMT+02:00 Fabrice Couvreur : > 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 >> ____________________________________________________________ >> _______________________ > > > --00000000000004aeef05712f8591 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hans,
In fact, the=20 file compiles well with the beta version but only from a terminal by=20 running the /home/aragorn/context/tex/texmf-linux-64/bin/context Test.tex &= amp;& evince Test.pdf command.
On the other hand, if I = compile with Emacs, the chapter number does not appear.
I c= onfigured Emacs so that in context mode, the compilation is done with the b= eta version. Here is a part of my ~/.emacs file :
;; SERVER Download (MELPA):
(when (>= ; =3D emacs-major-version 24)
=C2=A0=C2=A0 (require 'pa= ckage)
=C2=A0=C2=A0 (Add-to-list<= /span>
=C2=A0=C2=A0=C2=A0 Archive-Packag= e
=C2=A0=C2=A0=C2=A0 '("melpa". "http://melpa.org/packages/")
=C2=A0=C2=A0=C2=A0 t)
=C2=A0=C2=A0 (Package-
initialize))

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

(setq ConTeXt-mode-hook<= br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda () (setq TeX-command-= extra-options "--purgeall")))

Thank you
Fabrice



2018-07-16 19:42 GMT+02:00 Fabrice Couv= reur <fabrice1.couvreur@gmail.com>:
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 <j.hagen= @xs4all.nl>:
On 7/16/= 2018 4:24 PM, Fabrice Couvreur wrote:
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
_________________________________________________________________= __________________


--00000000000004aeef05712f8591-- --===============7453776716512753638== 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 --===============7453776716512753638==--