From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101697 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Emacs + latest beta Date: Fri, 24 Aug 2018 12:31:19 +0200 Message-ID: References: <20180822123000.GA762@smoon.vl-lomov.ru> <20180824022059.GC762@smoon.vl-lomov.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5298351644339409074==" X-Trace: blaine.gmane.org 1535106588 29344 195.159.176.226 (24 Aug 2018 10:29:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2018 10:29:48 +0000 (UTC) To: mailing list for ConTeXt users , lomov.vl@yandex.ru Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 24 12:29:44 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 1ft9Lc-0007WO-Aq for gctc-ntg-context-518@m.gmane.org; Fri, 24 Aug 2018 12:29:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AEC056565; Fri, 24 Aug 2018 12:31:45 +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 X2QD_PM8fdlv; Fri, 24 Aug 2018 12:31:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A559E5655E; Fri, 24 Aug 2018 12:31:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9A71B5655E for ; Fri, 24 Aug 2018 12:31:43 +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 zjWu0cyTGDec for ; Fri, 24 Aug 2018 12:31:42 +0200 (CEST) Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.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 BB8035655B for ; Fri, 24 Aug 2018 12:31:32 +0200 (CEST) Original-Received: by mail-wr1-f48.google.com with SMTP id k5-v6so7059219wre.10 for ; Fri, 24 Aug 2018 03:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rkjstMEeHn/Tg4pjSdmqjfwizjnveafCfwyr5MvG0yM=; b=o9UQML+0EgkKvvQXtd6+A195/SftuWQWG1kKDdmSJKVeK0g9vDAnHdDq9QHQli9p8U jxaes3v0+LoqMvORXh/JShdy8tA+ESy3w1wKyKL+uOJwOZ4+iQ/Fv+bdj3ribwUJylyF MWl28UtItwDT81x5sncf1EyM+U18/HGIPcGt9oBu5T8qmi8dLrbByYi5Md+SG2VbB3rg ETCsF9gIib7mUogut/VtmbykyVhHyONpRVd9hZhsJf8v4vGuUcgGtADFLgQHVh1Qgnuk fiE75P16VkV4xbilCuhyxLGCVeRk1ypoHbIxXaVrU5gB/mBVldcHH30LoXAeANYomkzA jKQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rkjstMEeHn/Tg4pjSdmqjfwizjnveafCfwyr5MvG0yM=; b=XBBYKDBs8uKSLugOOp194X2HvveJYEEKBZJHL9JQZEdXIPz7eay9HLFSs0nuoPDVxC WnJu4fSdGo1yT+Su/sX5uMqJ/Cs2Xo7JmI8tj59chQgsQUaWvVXpMa9RarzxTwy3QfiC DY8qRDSgVrV+NyRCp1RiL5ML52R7PymzzlmEUjnDV1ZtVBgE5h0cagKIkr9UabfjX88d +X/upEhMvGoCuSlfe27OFmIumbJQiCkCYPWEu2oU7P17GSLR6DxBvHO4mArsp8exkr9s qB6P5t1B2FFXlxGbRdUW8uRHBYcMil0w+02HU4gq7CHh+VimKZiwbI9UeXFSHZusb+mP v9Pw== X-Gm-Message-State: APzg51AmC4BbBf92Ne/5Yg7lwF+8UHnrMgCpoAeAyhtkjQXej4n84tZP qEpi5UClM3T6cZuCveyPF67eLclhk+eqbCgWur1/F5pk X-Google-Smtp-Source: ANB0Vdbh+Alv1koII608ybA0IIblcnhzJissrmsKBAQIT3hJlJKTGyCnZi614WTslqLNYkkrclIOpRG4j/65rAGFdyY= X-Received: by 2002:adf:9ccb:: with SMTP id h11-v6mr801037wre.11.1535106692103; Fri, 24 Aug 2018 03:31:32 -0700 (PDT) In-Reply-To: <20180824022059.GC762@smoon.vl-lomov.ru> 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:101697 Archived-At: --===============5298351644339409074== Content-Type: multipart/alternative; boundary="00000000000013455305742be158" --00000000000013455305742be158 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vladimir, Thanks for everything, it seems to work ! You are the only one who knew how to solve the problem. Here is the content of my ~./emacs file that you probably need to improve : -------------------------------- 8< ---------------------------------------------------------------------------= ------------------------------ (eval-after-load "context" '(setq TeX-command-list (cons '("ConTeXt" "PATH=3D/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context %s" TeX-run-command nil t :help "Run context (MarkIV)") TeX-command-list)) ) (setq ConTeXt-mode-hook (lambda () (setq TeX-command-extra-options "--purgeall"))) (add-hook 'ConTeXt-mode-hook (lambda() (setq TeX-command-default "ConTeXt Full"))) -------------------------------- 8< ---------------------------------------------------------------------------= --------------------------- By cons if I add this : -------------------------------- 8< ---------------------------------------------------------------------------= -------------------------- (setenv "TEXMFCNF" nil) (setenv "TEXROOT" "/home/aragorn/context/tex") (setenv "TEXMFCACHE" (format "%s/.cache" (getenv "HOME"))) -------------------------------- 8< ---------------------------------------------------------------------------= ------------------------ the compilation returns a damaged pdf file that I can not open. I installed texlive 2018 and context standalone in my home directory and emacs in the /usr/share/emacs directory with Arch Linux ; can that explain my problems ? Fabrice Le ven. 24 ao=C3=BBt 2018 =C3=A0 04:21, Vladimir Lomov = a =C3=A9crit : > Hello, > ** Fabrice Couvreur [2018-08-23 10:48:42 +0200]: > > > Hi, > > Thanks for your help but ... > > I checked again and it is fine. May be I was too unspecific. First, I > changed a bit your example to this one: > > [test.tex] > -------------------------------- 8< ------------------------------------ > \setupsynctex[state=3Dstart] > > \startusableMPgraphic{NumberHead} > draw outlinetext.f > ("\bf\namedheadnumber{chapter}") > (withcolor "lightgray") > ysized 50pt ; > \stopusableMPgraphic > > \unexpanded\def\processMPheadnumber#1% > {\useMPgraphic{NumberHead}} > > \setuphead% > [chapter]% > [command=3D\HeadTitle,% > headstyle=3D\ss,% > numbercommand=3D\processMPheadnumber] > > \unexpanded\def\HeadTitle#1#2% > {\framed% > [frame=3Doff,% > bottomframe=3Don,% > width=3Dbroad, > align=3D{broad,nothyphenated,left}]% > {#1\blank[nowhite]#2}} > > \starttext > \startchapter[title=3DFirst chapter] > \input ward > \stopchapter > \stoptext > > %%% Local Variables: > %%% mode: context > %%% TeX-master: t > %%% End: > -------------------------------- 8< ------------------------------------ > > And second, I tweaked a bit my Emacs configuration: > > -------------------------------- 8< ------------------------------------ > (setenv "TEXMFCNF" nil) > (setenv "TEXROOT" "/usr/local/opt/context/tex") > (setenv "TEXMFCACHE" (format "%s/.cache" (getenv "HOME"))) > -------------------------------- 8< ------------------------------------ > > (I have to do that because I have both TeX Live and ConTeXt > Standalone/Suite in parallel, and use mainly LaTeX.) > > You should check your Emacs configuration. > > This is my Emacs configuration: > https://bitbucket.org/vp1981/scripts/src/master/config/emacs/ > and I have > Emacs: 27.0.50 (git) > AUCTEX: 12.1 (git) > > [...] > > --- > WBR, Vladimir Lomov > > -- > Come, you spirits > That tend on mortal thoughts, unsex me here, > And fill me, from the crown to the toe, top-full > Of direst cruelty! make thick my blood, > Stop up the access and passage to remorse > That no compunctious visiting of nature > Shake my fell purpose, not keep peace between > The effect and it! Come to my woman's breasts, > And take my milk for gall, you murdering ministers, > Wherever in your sightless substances > You wait on nature's mischief! Come, thick night, > And pall the in the dunnest smoke of hell, > That my keen knife see not the wound it makes, > Nor heaven peep through the blanket of the dark, > To cry `Hold, hold!' > -- Lady MacBeth > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ --00000000000013455305742be158 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Vladimir,
Thanks for= everything, it seems to work !
You are the only one who kn= ew how to solve the problem.
Here is the content of my ~./e= macs file that you probably need to improve :

<= div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif">----------------= ---------------- 8< ----------------------------------------------------= -----------------------------------------------------

(eval-af= ter-load "context"
=C2=A0 '(setq TeX-command-list
=C2= =A0=C2=A0=C2=A0=C2=A0 (cons '("ConTeXt" "PATH=3D/home/ar= agorn/context/tex/texmf-linux-64/bin:$PATH context %s"
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 TeX-run-command nil t :help "Run context (Mar= kIV)") TeX-command-list))
)

(setq ConTeXt-mode-hook
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda () (setq TeX-command-extra-options &quo= t;--purgeall")))


(add-hook 'ConTeXt-mode-hook
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda()
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq TeX-command-de= fault "ConTeXt Full")))


=
---------------= ----------------- 8< ---------------------------------------------------= ---------------------------------------------------

=
By cons i= f I add this :

-------------------------------- 8< -= ---------------------------------------------------------------------------= -------------------------

(setenv "TEXMFCNF" nil) (setenv "TEXROOT" "/home/aragorn/context/tex")
(setenv "TEXMFCACHE" (format "%s/.cache" (getenv "= HOME")))


-------------------------------- 8< = ---------------------------------------------------------------------------= ------------------------


=C2=A0the compilation ret= urns a damaged pdf file that I can not open.

<= div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif">I=20 installed texlive 2018 and context standalone in my home directory and emac= s in the /usr/share/emacs directory with Arch Linux ; can that explain my problems ?
=
Fabrice


Le=C2=A0ven. 24 ao=C3=BBt = 2018 =C3=A0=C2=A004:21, Vladimir Lomov <lomov.vl@yandex.ru> a =C3=A9crit=C2=A0:
Hello,
** Fabrice Couvreur [2018-08-23 10:48:42 +0200]:

> Hi,
> Thanks for your help but ...

I checked again and it is fine. May be I was too unspecific. First, I
changed a bit your example to this one:

[test.tex]
-------------------------------- 8< ------------------------------------=
\setupsynctex[state=3Dstart]

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

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

\setuphead%
[chapter]%
[command=3D\HeadTitle,%
=C2=A0headstyle=3D\ss,%
=C2=A0numbercommand=3D\processMPheadnumber]

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

\starttext
\startchapter[title=3DFirst chapter]
=C2=A0 \input ward
\stopchapter
\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:
-------------------------------- 8< ------------------------------------=

And second, I tweaked a bit my Emacs configuration:

-------------------------------- 8< ------------------------------------=
(setenv "TEXMFCNF" nil)
(setenv "TEXROOT" "/usr/local/opt/context/tex")
(setenv "TEXMFCACHE" (format "%s/.cache" (getenv "= HOME")))
-------------------------------- 8< ------------------------------------=

(I have to do that because I have both TeX Live and ConTeXt
Standalone/Suite in parallel, and use mainly LaTeX.)

You should check your Emacs configuration.

This is my Emacs configuration:
https://bitbucket.org/vp1981/scripts/sr= c/master/config/emacs/
and I have
Emacs:=C2=A0 27.0.50 (git)
AUCTEX: 12.1 (git)

[...]

---
WBR, Vladimir Lomov

--
Come, you spirits
That tend on mortal thoughts, unsex me here,
And fill me, from the crown to the toe, top-full
Of direst cruelty! make thick my blood,
Stop up the access and passage to remorse
That no compunctious visiting of nature
Shake my fell purpose, not keep peace between
The effect and it! Come to my woman's breasts,
And take my milk for gall, you murdering ministers,
Wherever in your sightless substances
You wait on nature's mischief! Come, thick night,
And pall the in the dunnest smoke of hell,
That my keen knife see not the wound it makes,
Nor heaven peep through the blanket of the dark,
To cry `Hold, hold!'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -- Lady MacBeth
___________________________________________________________________________= ________
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/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000013455305742be158-- --===============5298351644339409074== 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 --===============5298351644339409074==--