Hi Tobber,
First of all thank you for your help. Everything worked except for the
compilation where it's always texlive context and not standalone.
Running `ConTeXt' on `ntg62' with ``context --once --texutil --nonstop
ntg62.tex''
resolvers | trees | analyzing 'home:texmf'
mtx-context | run 1: luatex
--fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--interaction="nonstopmode" --jobname="ntg62"
--lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg62.tex"
--c:input="./ntg62.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode
--c:once --c:texutil "cont-yes.mkiv"
This is LuaTeX, Version 0.95.0 (TeX Live 2016)
system commands enabled.
resolvers > trees > analyzing 'home:texmf'
open source > 1 > 1 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2016.10.29 int:
english/english
system > 'cont-new.mkiv' loaded
open source > 2 > 2 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
close source > 2 > 2 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv
system > files > jobname 'ntg62', input './ntg62', result 'ntg62'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > 2 > 3 > /home/fab/ntg62.tex
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
backend > xmp > using file
'/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
close source > 2 > 3 > /home/fab/ntg62.tex
close source > 1 > 3 >
/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv
mkiv lua stats > used config file:
selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats > used cache path:
/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
mkiv lua stats > resource resolver: loadtime 0.115 seconds, 1 scans with
scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths:
/home/fab/texmf
mkiv lua stats > stored bytecode data: 387 modules (0.337 sec), 82 tables
(0.011 sec), 469 chunks (0.348 sec)
mkiv lua stats > traced context: maxstack: 1175, freed: 0, unreachable:
1175
mkiv lua stats > cleaned up reserved nodes: 47 nodes, 9 lists of 444
mkiv lua stats > node memory usage: 11 glue, 2 penalty, 22 attribute, 38
glue_spec, 8 attribute_list, 2 temp
mkiv lua stats > node list callback tasks: 6 unique task lists, 5
instances (re)created, 32 calls
mkiv lua stats > used backend: pdf (backend for directly generating pdf
output)mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds
loading
mkiv lua stats > callbacks: 136 direct, 244 indirect, 380 total
mkiv lua stats > randomizer: initialized with value 0.1895933152128
mkiv lua stats > loaded patterns: en::2, load time: 0.000
mkiv lua stats > result saved in file: ntg62.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf,
lmroman12-regular.otf
mkiv lua stats > font engine: otf 3.020, afm 1.512, tfm 1.000, 4
instances, load time 0.209 seconds
mkiv lua stats > used platform: linux-64, type: unix, binary subtree: bin
mkiv lua stats > luatex banner: this is luatex, version 0.95.0 (tex live
2016)mkiv lua stats > control sequences: 43813 of 65536 + 100000
mkiv lua stats > lua properties: engine: lua, used memory: 72 MB (ctx: 71
MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats > runtime: 0.608 seconds, 1 processed pages, 1 shipped
pages, 1.645 pages/second
system | total runtime: 0.849 seconds
TeX Output finished at Mon Oct 31 09:57:37
2016-10-30 14:38 GMT+01:00 Tobias Berndt
Ok, your problem is more auctex than ConTeXt. So, try this:
(1) Add to .emacs:
;; SERVER Download (MELPA): (when (>= emacs-major-version 24) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize))
to get connection to MELPA server.
(2) Save .emacs and start Emacs again (3) Open OPTIONS—MANAGE EMACS PACKAGES (4) Install current auctex version (5) Restart Emacs (6) Get into context-mode (M-x context-mode) (7) Type M-x customize-variable RET ConTeXt-Mark-version RET
+++ If Emacs responds: Wrong type argument: symbolp, „string“ (that’s the bug) open context.el (somewhere in .emacs.d/(m)elpa/auctex-11.89.X) and replace line 501 (or nearby)
:type "string"
with
:type 'string
and recompile the file with `M-x byte-compile file RET RET’. +++
(8) Switch from Mark II to Mark IV
Now, Emacs should generally provide support to ConTeXt Mark IV. To compile tex-files comfortable right out of Emacs via C-c C-c add:
(9) (setenv "PATH" "/home/fab/tex/texmf-linux-64/bin/:$PATH" t) to your .emacs and (10) (setq ConTeXt-Mark-version "IV“) if you want (11) Save file and restart Emacs (12) Open a context file and try out
ALOHA, tobber
Am 30.10.2016 um 13:30 schrieb Fabrice Couvreur < fabrice1.couvreur@gmail.com>:
Hi Tobias,
(2) Possible completions are: ConTeXt-close-environment ConTeXt-close-xml-tag ConTeXt-environment ConTeXt-etexshow ConTeXt-find-matching-start ConTeXt-find-matching-stop ConTeXt-insert-item ConTeXt-mark-environment ConTeXt-mode ConTeXt-mode-command-menu ConTeXt-mode-menu ConTeXt-section ConTeXt-work-on-environment
I added in .emacs
(custom-set-variables '(ConTeXt-Mark-version "IV"))
update auctex
How ? Auctex installed with ELPA
(setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)
I do not understand this symbol „ and how to access
Thanks Fabrice
2016-10-30 12:15 GMT+01:00 Tobias Berndt
: @ Fabrice: If you’re working under a Linux, use „home“ instead of „Users“ (I’m under macOS, therefore I left „Users“) and forget about the add-to-list line. So: (1) M-x context-mode (2) M-x ConTeXt-Mark-version (switch to mkIV)
If there is no such command: update auctex; if this gives an error (there was/is a bug:) tell me and I’ll give you an instruction how to manipulate your context.el
(3) Add to .emacs: (setenv „PATH“ „/home/fab/tex/texmf-linux-64/bin/:$PATH“ t) (4) ;; (add-to-list 'load-path "/home/fab/context/tex/texmf- linux-64/bin/context“) (5) Restart Emacs
C-c C-c should work, now.
ALOHA, tobber
Am 29.10.2016 um 23:41 schrieb Fabrice Couvreur < fabrice1.couvreur@gmail.com>:
Hi, @Tobias
If I add this to my .emacs I get
(setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) (add-to-list 'load-path "/home/fab/context/tex/texmf- linux-64/bin/context")
Warning (initialization): An error occurred while loading `/home/fab/.emacs':
Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin
@Michael
fab@debian:~$ which context /home/fab/bin/context fab@debian:~$ source context/tex/setuptex Setting "/home/fab/context/tex" as ConTeXt root. fab@debian:~$ which context /home/fab/context/tex/texmf-linux-64/bin/context fab@debian:~$
If I add this to my .emacs is always texlive 2016 is invoked when I compile
(eval-after-load "tex" '(add-to-list 'TeX-command-list '("context" "(/home/fab/context)/setuptex&&context" TeX-run-TeX nil (context-mode) :help "Run ConTeXt") t))
Thanks, Fabrice
2016-10-29 12:50 GMT+02:00 Michael Eidenbenz
: sorry that should be: (path to textree)/setuptex && context .....
cd (path to textree) && setuptex && context etc...
____________________________________________________________
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 ____________________________________________________________
____________________________________________________________
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 ____________________________________________________________
____________________________________________________________
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 ____________________________________________________________
____________________________________________________________
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 ____________________________________________________________
____________________________________________________________ _______________________ 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 ____________________________________________________________ _______________________