From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101698 Path: news.gmane.org!.POSTED!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Re: Emacs + latest beta Date: Fri, 24 Aug 2018 21:48:27 +0800 Message-ID: <20180824134827.GD762@smoon.vl-lomov.ru> 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="===============8752881857666894398==" X-Trace: blaine.gmane.org 1535118440 12316 195.159.176.226 (24 Aug 2018 13:47:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2018 13:47:20 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 24 15:47:16 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 1ftCQk-000325-OK for gctc-ntg-context-518@m.gmane.org; Fri, 24 Aug 2018 15:47:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D29A55668E; Fri, 24 Aug 2018 15:48:49 +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 cwawR4CXPae2; Fri, 24 Aug 2018 15:48:46 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 61F3B56693; Fri, 24 Aug 2018 15:48:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF69B56690 for ; Fri, 24 Aug 2018 15:48: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 jZdrv0AKxABU for ; Fri, 24 Aug 2018 15:48:44 +0200 (CEST) Original-Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 379E35668E for ; Fri, 24 Aug 2018 15:48:34 +0200 (CEST) Original-Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward104p.mail.yandex.net (Yandex) with ESMTP id C972A1832CC for ; Fri, 24 Aug 2018 16:48:28 +0300 (MSK) Original-Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JzuHBZfV8p-mS5epoKu; Fri, 24 Aug 2018 16:48:28 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1535118508; bh=/qfuJiw7uIptAleB/R3BQak++GyBvX5VOaaX9mKqvUk=; h=Date:From:To:Subject:Message-ID:References:In-Reply-To; b=eJlHd5X7FXhrMnoPQUXWQVPVewynpV4RbSp5ICNi14UA45j615ALRxbAumOoPwewm /KrMHqxcNknZrBiePvNcM9MxBbFuAPlE83WyV94gTutO5qEFMfI/ShCNy7QlxNhluT iOotG1tofbAUpNwBZVXXjWGWnIwcoFUKu7Bktlqc= Original-Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2ZhefhpSTA-mRWiDSBM; Fri, 24 Aug 2018 16:48:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1535118508; bh=/qfuJiw7uIptAleB/R3BQak++GyBvX5VOaaX9mKqvUk=; h=Date:From:To:Subject:Message-ID:References:In-Reply-To; b=eJlHd5X7FXhrMnoPQUXWQVPVewynpV4RbSp5ICNi14UA45j615ALRxbAumOoPwewm /KrMHqxcNknZrBiePvNcM9MxBbFuAPlE83WyV94gTutO5qEFMfI/ShCNy7QlxNhluT iOotG1tofbAUpNwBZVXXjWGWnIwcoFUKu7Bktlqc= Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smoon.vl-lomov.ru (Postfix, from userid 1000) id 41xjKl0mY2z3hj35; Fri, 24 Aug 2018 21:48:27 +0800 (+08) Mail-Followup-To: Vladimir Lomov , mailing list for ConTeXt users 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:101698 Archived-At: --===============8752881857666894398== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wULyF7TL5taEdwHz" Content-Disposition: inline --wULyF7TL5taEdwHz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, ** Fabrice Couvreur [2018-08-24 12:31:19 +0200]: > 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= : >=20 > -------------------------------- 8< --------------------------------- >=20 > (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)) > ) >=20 > (setq ConTeXt-mode-hook > (lambda () (setq TeX-command-extra-options "--purgeall"))) >=20 >=20 > (add-hook 'ConTeXt-mode-hook > (lambda() > (setq TeX-command-default "ConTeXt Full"))) Why did you set "ConTeXt Full" as your default command? The above 'setq' introduces "ConTeXt" command to process a context file. When I said that everything is OK I meant that I did C-c C-c, checked that in minibuffer the "ConTeXt" command is chosen and then hit Enter. > -------------------------------- 8< --------------------------------- >=20 > By cons if I add this : >=20 > -------------------------------- 8< --------------------------------- >=20 > (setenv "TEXMFCNF" nil) > (setenv "TEXROOT" "/home/aragorn/context/tex") > (setenv "TEXMFCACHE" (format "%s/.cache" (getenv "HOME"))) >=20 >=20 > -------------------------------- 8< --------------------------------- >=20 >=20 > the compilation returns a damaged pdf file that I can not open. I don't know why you get "damaged" pdf file (in fact how do you know that file is damaged?) but "TEXMFCNF" is special variable that I uses to tweak TeX Live configuration for my latex workflow but context (standalone and from TL) refuses to work if this variable is set (in terminal I do 'unset' while in Emacs I set its value to 'nil' because this is identical to "unset" it). The "TEXROOT" variable I found in update script, I'm not sure if context requires it to work but IMHO, it is harmless. And the last variable "TEXMFCACHE" I use to force context to use ~/.cache for "luatex-cache" directory and not "pollute" my home directory (without it the "luatex-cache" directory will be created in $HOME directory). > 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 ? Not sure but I'll wait you answer about "ConTeXt Full" vs "ConTeXt" I mentioned above. > Fabrice [...] --- WBR, Vladimir Lomov --=20 I'm serious about thinking through all the possibilities before we settle on anything. All things have the advantages of their disadvantages, and vice versa. -- Larry Wall in <199709032332.QAA21669@wall.org> --wULyF7TL5taEdwHz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQaopaKwcQWyz7yQfAHGfInzJc4BQUCW4AMpQAKCRAHGfInzJc4 BbfTAQCTK5e7xSaHQKDNuo9npE5J4SS+BHTSO0MIrjMob6pWSgD/YaF8nmeuWaGe +yEyf1SHIlRwthew28+G9DQQ+aECSAw= =7IwV -----END PGP SIGNATURE----- --wULyF7TL5taEdwHz-- --===============8752881857666894398== 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 --===============8752881857666894398==--