From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101287 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Problem of compiling a file with Emacs Date: Fri, 20 Jul 2018 01:13:27 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1289647549001715826==" X-Trace: blaine.gmane.org 1532041911 19481 195.159.176.226 (19 Jul 2018 23:11:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2018 23:11:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 20 01:11:47 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 1fgI5L-0004yi-0f for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jul 2018 01:11:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D94E044DF2; Fri, 20 Jul 2018 01:13:41 +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 gYlhA9oWWRma; Fri, 20 Jul 2018 01:13:40 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id B2E4644DA4; Fri, 20 Jul 2018 01:13:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C1C0244DA4 for ; Fri, 20 Jul 2018 01:13:38 +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 m2pQUyFUMbt0 for ; Fri, 20 Jul 2018 01:13:38 +0200 (CEST) Original-Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 4B43344D9C for ; Fri, 20 Jul 2018 01:13:28 +0200 (CEST) Original-Received: by mail-wr1-f51.google.com with SMTP id c13-v6so9590119wrt.1 for ; Thu, 19 Jul 2018 16:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xNBHeWivRsPCGG7WjrT+F8thhd7jCB+byV8AH2lO8CE=; b=EUsFdbEvL3Z7mwh3HsfIEfMCdXvUfdAwswi7UcHxUmsx1/oNep6nNTOT2MBFG2V8V5 GPLyHBys5hcetOgFZ21+mPIU7lnSAlGZY1gAu+/w/hFhk5ZAq+HecmHf1cAAxH8/z2b5 NjunZWs3/cFMh0+8k1s/Q51+f+ZtDFNTsMF6oToH+BwZ+AW7nLI4OUl2GKRue0/Zc5WW ZMnR1sJTQdYxJJCJwgB6Q/yerSJygiflNxAtNzZey+UgiI6gOvSaEeNUVFH5aTCmMOxW zNVbf1ZnJy+ORN3HbuiHyrES32xnttWUODDCPZTzi6ExQy2dNhMyz1dgLhV1UOL1IjvS lQLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xNBHeWivRsPCGG7WjrT+F8thhd7jCB+byV8AH2lO8CE=; b=lYUzHNKYk+xCzn9yRz8wfYlpB7R1GkhCmA8iehMRf25gSLTSjjLPX0VHx+gwGHCasm scm9X4Hu41fY3lck7yEVZF7S8RPJpIeoDhjs3LHEXyTS2lAuWS3eOXNlg/IRdgYx5pQv qoK2DozV2unq6tjRmkr3A25A2zIE3YICM7ZfyL9mIrNSV+A8BdL9vjT5h8/mf6daXUC5 Yh2bQJS0fiPy9SDHDiZI/Fg1XDdJJG+YhSHizxNYJBrd1+LGptMeCo5B5nCyiA9x++ed K5prs/wVu4z1KUtHZs8QutLGDZAffbDbYX4q0wkJh4NeAXyD3fUO4eZWLD2L/QuA3H86 +itw== X-Gm-Message-State: AOUpUlE7pJF85c9x/ZG6P+ViuGyVIE90/b3nTZcGS1K5QUozZE9y6WJO tH91xUMgY7jKn/a/K7v1W2k0S/+lQKu90zBhLJVhmDKC X-Google-Smtp-Source: AAOMgpfGwPrQCLtxNaFgbB3jkIvBnitGTEjXxv8DNA0Sd5Q8FOU1lMqE9oApn67c8sp5K3gvSSmCVlMb9be53hdxhp0= X-Received: by 2002:adf:c44c:: with SMTP id a12-v6mr9132294wrg.20.1532042007628; Thu, 19 Jul 2018 16:13:27 -0700 (PDT) Original-Received: by 2002:adf:c4a7:0:0:0:0:0 with HTTP; Thu, 19 Jul 2018 16:13:27 -0700 (PDT) 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:101287 Archived-At: --===============1289647549001715826== Content-Type: multipart/alternative; boundary="000000000000a54f9e0571625358" --000000000000a54f9e0571625358 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I'm starting a new discussion about compiling a file with Emacs. I will try to be clear: 1. Compilation without Emacs in a terminal (Xterm): /home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex Ok! / home / aragorn / context / tex / linux-64 / bin / context Test.tex Ok! 2. Compiling with a Emacs terminal shell command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) / home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex No Ok! / home / aragorn / context / tex / tex-linux-64 / bin / context Test.tex No Ok! 3. Compiling with an Emacs terminal shell command by commenting this in my ~ / .emacs file ;; (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) / home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex Ok! / home / aragorn / context / tex / linux-64 / bin / context Test.tex Ok! 4. Compiling with the C-C C-C command by commenting this in my ~ / .emacs file ;; (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) OK ! 5. Coming with the C-c C-c command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) (that's what I do with all other files) No OK ! Thanks. My file Test.tex % macros=3Dmkvi \setuppagenumbering[location=3Dfooter] \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 \starttitle[title=3D{Sommaire}] \start \placelist [chapter,section,subsection] [criterium=3Dall, alternative=3Dc] \stop \stoptitle \startchapter[title=3DEspaces probabilis=C3=A9s] \startsubsection[title=3DExp=C3=A9rience al=C3=A9atoire et univers] \stopsubsection \startsubsection[title=3D=C3=89v=C3=A9nements] \stopsubsection \stopchapter \stoptext --000000000000a54f9e0571625358 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I= 9;m starting a new discussion about compiling a file with Emacs. I will try to be clear= :

1. Compilation without Emacs in a terminal (Xterm):

=C2=A0=
/home / aragorn / texlive / 2018 / bin / x8= 6_64-linux / context Test.tex Ok!

=C2=A0
/ home / aragorn / context / tex / linux-64 / bin / context Test.tex O= k!

2. Compiling = with a Emacs terminal shell command by having this in my ~ / .emacs file
(setenv "PATH" "= / home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t)
/ home / aragorn / texlive / 2018 / bin / x86_64-lin= ux / context Test.tex No Ok!

/ home / aragorn / c= ontext / tex / tex-linux-64 / bin / context Test.tex No Ok!

<= span title=3D"3. Compilation avec une commande shell du terminal d' Ema= cs en commentant ceci dans mon fichier ~/.emacs">3. Compiling with an Emacs= terminal shell command by commenting this in my ~ / .emacs file

;; (setenv &q= uot;PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bi= n: $ PATH" t)

/ home / aragorn / texlive / 2018 /= bin / x86_64-linux / context Test.tex Ok!

/ home / a= ragorn / context / tex / linux-64 / bin / context Test.tex Ok!

4. Compiling with the C-C C-C command by commen= ting this in my ~ / .emacs file

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

= OK !

5. Coming with = the C-c C-c command by having this in my ~ / .emacs file

(setenv "PATH" "/ home / aragorn / context / tex / = texmf-linux-64 / bin: $ PATH" t) (that's what I do with all other = files)

No OK !
Thanks.

My file Test.tex

% macros=3Dmkvi
\setuppagenumbering[location=3Dfooter]
\startusableMPgraphic{NumberHead}
=C2=A0=C2=A0=C2=A0=C2=A0 draw outline= text.f
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("\bf\named= headnumber{chapter}")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (withcolor "lightgray")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ysized 50pt ;
\stopusableMPgraphic

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

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


\unexpanded\def\HeadTitle= #1#2%
=C2=A0 {\framed
=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 {#1\blank[nowhite]#2}}

=C2=A0 \starttext
\starttitle= [title=3D{Sommaire}]

\start

=C2=A0=C2=A0=C2=A0 \placelist
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [chapter,section,subsection]
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 [criterium=3Dall,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 alternative=3Dc]

\stop

\stoptitle
=C2=A0


\= startchapter[title=3DEspaces probabilis=C3=A9s]

\startsubsection[tit= le=3DExp=C3=A9rience al=C3=A9atoire et univers]
=C2=A0=C2=A0=C2=A0
\= stopsubsection

\startsubsection[title=3D=C3=89v=C3=A9nements]
=C2= =A0=C2=A0=C2=A0
\stopsubsection

\stopchapter

\stoptext
=


--000000000000a54f9e0571625358-- --===============1289647549001715826== 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 --===============1289647549001715826==--