ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>, lomov.vl@yandex.ru
Subject: Re: Emacs + latest beta
Date: Fri, 24 Aug 2018 12:31:19 +0200	[thread overview]
Message-ID: <CACyK-er4upgyWUpP=ZMOeH0b3qi=iD8YwQeoXwn0oyvQcJUtJw@mail.gmail.com> (raw)
In-Reply-To: <20180824022059.GC762@smoon.vl-lomov.ru>


[-- Attachment #1.1: Type: text/plain, Size: 4835 bytes --]

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=/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ût 2018 à 04:21, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> 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=start]
>
> \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
> \startchapter[title=First 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
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 10211 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2018-08-24 10:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-22 11:05 Fabrice Couvreur
2018-08-22 12:30 ` Vladimir Lomov
2018-08-23  8:48   ` Fabrice Couvreur
2018-08-24  2:20     ` Vladimir Lomov
2018-08-24 10:31       ` Fabrice Couvreur [this message]
2018-08-24 13:48         ` Vladimir Lomov
2018-08-24 14:39           ` Hans Hagen
2018-08-27  3:57             ` Vladimir Lomov
2018-08-24 23:23           ` Fabrice Couvreur
2018-08-27  4:07             ` Vladimir Lomov
2018-08-27  9:51               ` Fabrice Couvreur
2018-08-27 13:47                 ` Fabrice Couvreur
2018-08-28  5:57                   ` Vladimir Lomov
2018-08-28  9:18                     ` Fabrice Couvreur
2018-08-29  2:58                       ` Vladimir Lomov
2018-08-29  9:39                         ` Fabrice Couvreur
2018-08-29 10:01                           ` Fabrice Couvreur
2018-08-29 14:12                             ` Vladimir Lomov
2018-08-30 17:13                               ` Fabrice Couvreur
2018-08-29 14:01                           ` Vladimir Lomov
2018-08-27 14:35                 ` Aditya Mahajan
2018-08-27 15:13                   ` Fabrice Couvreur
2018-08-23 18:58 ` Wolfgang Schuster
2018-08-24  1:29   ` Vladimir Lomov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACyK-er4upgyWUpP=ZMOeH0b3qi=iD8YwQeoXwn0oyvQcJUtJw@mail.gmail.com' \
    --to=fabrice1.couvreur@gmail.com \
    --cc=lomov.vl@yandex.ru \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).