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: Tue, 28 Aug 2018 11:18:58 +0200	[thread overview]
Message-ID: <CACyK-ep_BmOjW9HwBpZJCq72O4netKVfkFaETzF7wkA4rDMSXw@mail.gmail.com> (raw)
In-Reply-To: <20180828055731.GG762@smoon.vl-lomov.ru>


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

Hi Vladimir,
I do not use Arch Linux repositories to install  texlive 2018 packages but
I installed texlive 2018 "scheme-full" with tlmgr -gui  in /home/aragorn
/texlive/2018.  I then make regular updates in the same way. No texlive
traces in the \usr\share\ directory or elsewhere. Standalone Context is
also installed in my home directory. However, Emacs is installed from the
Arch Linux repositories and is located in /usr/share/emacs.
So I have to add the path of texlive 2018 ?
Maybe you do not need to add the Context Standalone path ?
My ~/.profile file would be this :

source /home/aragorn/context/tex/setuptex
export PATH = $ PATH: /home/aragorn/texlive/2018/bin/x86_64-linux
export PATH = $ PATH: /home/aragorn /bin

Regards,
Fabrice

Le mar. 28 août 2018 à 07:57, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> Hello,
> ** Fabrice Couvreur [2018-08-27 15:47:41 +0200]:
>
> > Le lun. 27 août 2018 à 11:51, Fabrice Couvreur <
> fabrice1.couvreur@gmail.com>
> > a écrit :
> >
> >> Hi Vladimir,
> >> I just made a new standalone context install and added this to my
> >> ~/.profile :  source /home/aragorn/context/tex/setuptex
> >> It finally seems to work !
>
> I'm glad it works for you though
>
> >> export PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin
> >> source /home/aragorn/context/tex/setuptex
> >> export PATH=$PATH:/home/aragorn/texlive/2018/bin/x86_64-linux
> >> export PATH=$PATH:/home/aragorn/bin
>
> don't understand how these lines help you. As you said you were able to
> typeset a sample document in terminal, so all settings in terminal (bash
> I presume) were fine, especially taking into account that 'setuptex'
> exports only PATH variable with correct path for Standalone ConTeXt.
> They might change environment from which Emacs is launched but again,
> you use full path to run context so they must be irrelevant here.
>
> In one of previous messages
> (https://www.mail-archive.com/ntg-context@ntg.nl/msg88742.html) you told
> that you use Archlinux, did you install texlive-* packages? Did you
> update your system? I use Archlinux and have not only ConTeXt
> standalone/suite and TeX Live (TUG) installed but also I have installed
> texlive-* packages from distribution repository and don't have any
> problem with the example either in terminal or Emacs(+AUCTeX), I suspect
> that your Emacs configuration might be the cause of the problem.
>
> > Hi Vladimir,
> > I just realized that does not work anymore
> > !
> >
> > (setq ConTeXt-mode-hook
> >       (lambda () (setq TeX-command-extra-options "--purgeall")))
>
> Why you insist on using hooks when you specify in full the custom
> target? Just add this option to the custom target:
>
> (eval-after-load "context"
>   '(setq TeX-command-list
>        (cons '("ConTeXt"
> "PATH=/usr/local/opt/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall %s"
>          TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list))
> )
>
> > Thanks
> > Fabrice
>
> [...]
>
> ---
> WBR, Vladimir Lomov
>
> --
> It is necessary for the welfare of society that genius should be privileged
> to utter sedition, to blaspheme, to outrage good taste, to corrupt the
> youthful mind, and generally to scandalize one's uncles.
>                 -- George Bernard Shaw
>
> ___________________________________________________________________________________
> 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: 5928 bytes --]

[-- Attachment #2: .emacs --]
[-- Type: application/octet-stream, Size: 3046 bytes --]

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ConTeXt-Mark-version "IV")
 '(ConTeXt-engine "luatex")
 '(TeX-command-extra-options "-shell-escape")
 '(ansi-color-faces-vector
   [default default default italic underline success warning error])
 '(ansi-color-names-vector
   ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
 '(custom-enabled-themes (quote (leuven)))
 '(package-selected-packages
   (quote
	(yasnippet-snippets auto-complete-auctex context-coloring nova-theme auctex)))
 '(tab-width 4))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

;; SERVER Download (MELPA):

(when (>= emacs-major-version 24)
  (require 'package)
  (add-to-list
   'package-archives
   '("melpa" . "http://melpa.org/packages/")
   t))
  

(eval-after-load "context"
  '(setq TeX-command-list
       (cons '("ConTeXt" "PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context --purgeall %s"
         TeX-run-command nil t :help "Run context (MarkIV)") TeX-command-list))
)


;;(add-hook 'ConTeXt-mode-hook
          ;;(lambda()
          ;;  (setq TeX-command-default "ConTeXt Full")))

(setq-default cursor-type 'bar) 

(set-cursor-color "#ff0000") 


(setq TeX-view-program-list '(("Evince" "evince %o"))
      TeX-view-program-selection '((output-pdf "Evince")))

(setq make-backup-files nil) ; stop creating backup~ files
(setq auto-save-default nil) ; stop creating #autosave# files

;; auto close bracket insertion. New in emacs 24
(electric-pair-mode 1)

;; turn on highlight matching brackets when cursor is on one
(show-paren-mode 1)


(setq inhibit-startup-screen t)


(add-to-list 'load-path "/home/aragorn/texlive/2018/texmf-dist/asymptote")
(autoload 'asy-mode "asy-mode.el" "Asymptote major mode." t)
(autoload 'lasy-mode "asy-mode.el" "hybrid Asymptote/Latex major mode." t)
(autoload 'asy-insinuate-latex "asy-mode.el" "Asymptote insinuate LaTeX." t)
(add-to-list 'auto-mode-alist '("\\.asy$" . asy-mode))

(setq column-number-mode t)

(setq line-number-mode t)


(setq py-install-directory "~/.emacs.d/site-lisp/python-mode.el-6.1.1")

(add-to-list 'load-path py-install-directory)

(require 'python-mode)

;;(add-hook 'ConTeXt-mode-hook
          ;;(lambda ()
           ;; (setq indent-tabs-mode t
                ;;  indent-line-function 'indent-relative)))

(add-hook 'LaTeX-mode-hook 
          (lambda()
             (add-to-list 'TeX-command-list '("LuaTeX" "%`lualatex%(mode)%' %t" TeX-run-TeX nil t))
             (setq TeX-command-default "LuaTeX")
             (setq TeX-save-query nil)
             (setq TeX-show-compilation t)))


(setq-default TeX-engine 'luatex
              TeX-PDF-mode t)

[-- Attachment #3: 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-28  9:18 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
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 [this message]
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-ep_BmOjW9HwBpZJCq72O4netKVfkFaETzF7wkA4rDMSXw@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).