ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Emacs + latest beta
@ 2018-08-22 11:05 Fabrice Couvreur
  2018-08-22 12:30 ` Vladimir Lomov
  2018-08-23 18:58 ` Wolfgang Schuster
  0 siblings, 2 replies; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-22 11:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
Sorry to insist, but could anyone help me understand the problem I'm having
in using Emacs with standalone context ?
The following file compiles perfectly from a terminal :

/home/aragorn/texlive/2018/bin/x86_64-linux/context  test.tex

/home/aragorn/context/tex/texmf-linux-64/bin/context  test.tex (latest beta)

With Emacs, it compiles perfectly if you use the 2018 texlive context
binary.

If I want to use the latest beta context binary, I need to add this to my
~/.emacs file :

(setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)

And there, I encounter a compilation problem :

Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop
pouf.tex''resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--interaction="nonstopmode" --jobname="pouf"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex"
--c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode
--c:purgeall "cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
job             > passes > version mismatch: 1.3 <> 1.31
system          >
system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20
int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > files > jobname 'pouf', input './pouf', result 'pouf'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/pouf.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost        > initializing number mode 'scaled'

lua error       > lua error on line 10 in file /home/aragorn/pouf.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
call a nil value (global 'getid')
stack traceback:
    ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
upvalue 'getexpansion'
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
local 'boxtomp'
    ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
    (...tail calls...)

 1
 2     \startusableMPgraphic{NumberHead}
 3          draw outlinetext.f
 4              ("\bf\namedheadnumber{chapter}")
 5              (withcolor "lightgray")
 6               ysized 50pt ;
 7     \stopusableMPgraphic
 8
 9     \unexpanded\def\processMPheadnumber#1%
10 >>    {\useMPgraphic{NumberHead}}
11
12     \setuphead
13        [chapter]
14        [command=\HeadTitle,
15         headstyle=\ss,
16         numbercommand=\processMPheadnumber,
17        ]
18
19
20     \unexpanded\def\HeadTitle#1#2%


open source     > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
backend         > xmp > using file
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/home/aragorn/pouf.tex'
close source    > level 1, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans with
scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
/home/aragorn/texmf
mkiv lua stats  > stored bytecode data: 437 modules (0.226 sec), 93 tables
(0.015 sec), 530 chunks (0.241 sec)
mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
1323
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
instances (re)created, 55 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: internal: 179, file: 180, direct: 2, late: 1,
function 529, total: 891
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: pouf.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
time 0.238 seconds
mkiv lua stats  > metapost: 0.001 seconds, loading: 0.018, execution:
0.000, n: 1, average: 0.019, instances: 1, luacalls: 7, memory: 2.608 M
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.08 with functionality level
6731, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats  > control sequences: 46533 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 61 MB (ctx:
61 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.613 seconds, 1 processed pages, 1 shipped
pages, 1.631 pages/second
mtx-context     | fatal error: return code: 1

TeX Output exited abnormally with code 1 at Wed Aug 22 13:01:54

########
test.tex
########

\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

Thanks
Fabrice

[-- Attachment #1.2: Type: text/html, Size: 14564 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-22 11:05 Emacs + latest beta Fabrice Couvreur
@ 2018-08-22 12:30 ` Vladimir Lomov
  2018-08-23  8:48   ` Fabrice Couvreur
  2018-08-23 18:58 ` Wolfgang Schuster
  1 sibling, 1 reply; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-22 12:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
** Fabrice Couvreur [2018-08-22 13:05:31 +0200]:

> Hello,
> Sorry to insist, but could anyone help me understand the problem I'm having
> in using Emacs with standalone context ?

Check environment variables both in terminal and Emacs.

> The following file compiles perfectly from a terminal :
> 
> /home/aragorn/texlive/2018/bin/x86_64-linux/context  test.tex
> 
> /home/aragorn/context/tex/texmf-linux-64/bin/context  test.tex (latest beta)
> 
> With Emacs, it compiles perfectly if you use the 2018 texlive context
> binary.
> 
> If I want to use the latest beta context binary, I need to add this to my
> ~/.emacs file :
> 
> (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)

Instead of this I use this (in my ~/.emacs):

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

> And there, I encounter a compilation problem :

and I don't see any errors (note, that in my case the "target" in
"ConTeXt", not "ConTeXt Full").

> Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop
> pouf.tex''resolvers       | trees | analyzing 'home:texmf'
> mtx-context     | run 1: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --interaction="nonstopmode" --jobname="pouf"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex"
> --c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode
> --c:purgeall "cont-yes.mkiv"
[...]

---
WBR, Vladimir Lomov

-- 
Old timer, n.:
	One who remembers when charity was a virtue and not an organization.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-22 12:30 ` Vladimir Lomov
@ 2018-08-23  8:48   ` Fabrice Couvreur
  2018-08-24  2:20     ` Vladimir Lomov
  0 siblings, 1 reply; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-23  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

Hi,
Thanks for your help but ...

Running `ConTeXt' on `vladimir' with
``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context vladimir''
resolvers       | trees | analyzing 'home:texmf'
mtx-context     | warning: no (local) file './vladimir', proceeding
mtx-context     | run 1: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="vladimir"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
--c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20
int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'vladimir', input './vladimir', result
'vladimir'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost        > initializing number mode 'scaled'

lua error       > lua error on line 10 in file /home/aragorn/vladimir.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
call a nil value (global 'getid')
stack traceback:
    ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
upvalue 'getexpansion'
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
local 'boxtomp'
    ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
    (...tail calls...)

 1     \startusableMPgraphic{NumberHead}
 2          draw outlinetext.f
 3              ("\bf\namedheadnumber{chapter}")
 4              (withcolor "lightgray")
 5               ysized 50pt ;
 6     \stopusableMPgraphic
 7
 8     \unexpanded\def\processMPheadnumber#1%
 9       {\useMPgraphic{NumberHead}}
10 >>
11     \setuphead
12        [chapter]
13        [command=\HeadTitle,
14         headstyle=\ss,
15         numbercommand=\processMPheadnumber,
16        ]
17
18
19     \unexpanded\def\HeadTitle#1#2%
20       {\framed


?
Fabrice

Le jeu. 23 août 2018 à 08:06, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> Hello,
> ** Fabrice Couvreur [2018-08-22 13:05:31 +0200]:
>
> > Hello,
> > Sorry to insist, but could anyone help me understand the problem I'm
> having
> > in using Emacs with standalone context ?
>
> Check environment variables both in terminal and Emacs.
>
> > The following file compiles perfectly from a terminal :
> >
> > /home/aragorn/texlive/2018/bin/x86_64-linux/context  test.tex
> >
> > /home/aragorn/context/tex/texmf-linux-64/bin/context  test.tex (latest
> beta)
> >
> > With Emacs, it compiles perfectly if you use the 2018 texlive context
> > binary.
> >
> > If I want to use the latest beta context binary, I need to add this to my
> > ~/.emacs file :
> >
> > (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)
>
> Instead of this I use this (in my ~/.emacs):
>
> (eval-after-load "context"
>   '(setq TeX-command-list
>      (cons '("ConTeXt"
> "PATH=/usr/local/opt/context/tex/texmf-linux-64/bin:$PATH context %s"
>        TeX-run-command nil t :help "Run context (MarkIV)")
> TeX-command-list))
> )
>
> > And there, I encounter a compilation problem :
>
> and I don't see any errors (note, that in my case the "target" in
> "ConTeXt", not "ConTeXt Full").
>
> > Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop
> > pouf.tex''resolvers       | trees | analyzing 'home:texmf'
> > mtx-context     | run 1: luatex
> >
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> > --interaction="nonstopmode" --jobname="pouf"
> >
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> > --no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex"
> > --c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:nonstopmode
> > --c:purgeall "cont-yes.mkiv"
> [...]
>
> ---
> WBR, Vladimir Lomov
>
> --
> Old timer, n.:
>         One who remembers when charity was a virtue and not an
> organization.
>
> ___________________________________________________________________________________
> 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: 8459 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-22 11:05 Emacs + latest beta Fabrice Couvreur
  2018-08-22 12:30 ` Vladimir Lomov
@ 2018-08-23 18:58 ` Wolfgang Schuster
  2018-08-24  1:29   ` Vladimir Lomov
  1 sibling, 1 reply; 24+ messages in thread
From: Wolfgang Schuster @ 2018-08-23 18:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Fabrice Couvreur


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

You get an error message because outlinetext doesn’t work.

\starttext

\startMPcode
     draw outlinetext.f
         ("A")
         () ;
\stopMPcode

\stoptext


Wolfgang


Fabrice Couvreur schrieb am 22.08.18 um 13:05:
> Hello,
> Sorry to insist, but could anyone help me understand the problem I'm 
> having in using Emacs with standalone context ?
> The following file compiles perfectly from a terminal :
>
> /home/aragorn/texlive/2018/bin/x86_64-linux/context test.tex
>
> /home/aragorn/context/tex/texmf-linux-64/bin/context test.tex (latest 
> beta)
>
> With Emacs, it compiles perfectly if you use the 2018 texlive context 
> binary.
>
> If I want to use the latest beta context binary, I need to add this to 
> my ~/.emacs file :
>
> (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)
>
> And there, I encounter a compilation problem :
>
> Running `ConTeXt Full' on `pouf' with ``context --purgeall --nonstop 
> pouf.tex''resolvers       | trees | analyzing 'home:texmf'
> mtx-context | run 1: luatex 
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
> --interaction="nonstopmode" --jobname="pouf" 
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./pouf.tex" 
> --c:input="./pouf.tex" --c:kindofrun=1 --c:maxnofruns=9 
> --c:nonstopmode --c:purgeall "cont-yes.mkiv"
>
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>  system commands enabled.
>
> resolvers       > trees > analyzing 'home:texmf'
> open source     > level 1, order 1, name 
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> job > passes > version mismatch: 1.3 <> 1.31
> system >
> system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta fmt: 
> 2018.8.20  int: english/english
> system          >
> system > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name 
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system > beware: some patches loaded from cont-new.mkiv
> close source > level 2, order 2, name 
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>
> system > files > jobname 'pouf', input './pouf', result 'pouf'
> fonts > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name '/home/aragorn/pouf.tex'
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> metapost        > initializing instance 'metafun:1' using format 
> 'metafun' and method 'default'
> metapost        > loading 'metafun' as 
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' 
> using method 'default'
> metapost        > initializing number mode 'scaled'
>
> lua error       > lua error on line 10 in file /home/aragorn/pouf.tex:
>
> ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: 
> attempt to call a nil value (global 'getid')
> stack traceback:
> ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in 
> upvalue 'getexpansion'
> ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in 
> function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
> ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in 
> local 'boxtomp'
> ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in 
> function 
> <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
> (...tail calls...)
>
>  1
>  2 \startusableMPgraphic{NumberHead}
>  3          draw outlinetext.f
>  4 ("\bf\namedheadnumber{chapter}")
>  5              (withcolor "lightgray")
>  6               ysized 50pt ;
>  7 \stopusableMPgraphic
>  8
>  9 \unexpanded\def\processMPheadnumber#1%
> 10 >> {\useMPgraphic{NumberHead}}
> 11
> 12     \setuphead
> 13 [chapter]
> 14        [command=\HeadTitle,
> 15 headstyle=\ss,
> 16         numbercommand=\processMPheadnumber,
> 17 ]
> 18
> 19
> 20     \unexpanded\def\HeadTitle#1#2%
>
>
> open source     > level 3, order 4, name 
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> close source    > level 3, order 4, name 
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> backend > xmp > using file 
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages > flushing realpage 1, userpage 1, subpage 1
> close source    > level 2, order 4, name '/home/aragorn/pouf.tex'
> close source    > level 1, order 4, name 
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
>
> mkiv lua stats  > used config file: 
> selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: 
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans 
> with scantime 0.000 seconds, 0 shared scans, 31 found files, scanned 
> paths: /home/aragorn/texmf
> mkiv lua stats  > stored bytecode data: 437 modules (0.226 sec), 93 
> tables (0.015 sec), 530 chunks (0.241 sec)
> mkiv lua stats  > traced context: maxstack: 1328, freed: 5, 
> unreachable: 1323
> mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14 
> attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 6 
> instances (re)created, 55 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: internal: 179, file: 180, direct: 2, 
> late: 1, function 529, total: 891
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > result saved in file: pouf.pdf, compresslevel 3, 
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, 
> lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9 
> instances, 3 shared in backend, 3 common vectors, 0 common hashes, 
> load time 0.238 seconds
> mkiv lua stats  > metapost: 0.001 seconds, loading: 0.018, execution: 
> 0.000, n: 1, average: 0.019, instances: 1, luacalls: 7, memory: 2.608 M
> mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: 
> texmf-linux-64
> mkiv lua stats  > used engine: luatex version 1.08 with functionality 
> level 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> mkiv lua stats  > control sequences: 46533 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 61 MB 
> (ctx: 61 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf 
> (τεχ)
> mkiv lua stats  > runtime: 0.613 seconds, 1 processed pages, 1 shipped 
> pages, 1.631 pages/second
> mtx-context | fatal error: return code: 1
>
> TeX Output exited abnormally with code 1 at Wed Aug 22 13:01:54
>
> ########
> test.tex
> ########
>
> \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
>
> Thanks
> Fabrice
>
>
> ___________________________________________________________________________________
> 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: 15964 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-23 18:58 ` Wolfgang Schuster
@ 2018-08-24  1:29   ` Vladimir Lomov
  0 siblings, 0 replies; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-24  1:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
** Wolfgang Schuster [2018-08-23 20:58:01 +0200]:

> You get an error message because outlinetext doesn’t work.
> 
> \starttext
> 
> \startMPcode
>     draw outlinetext.f
>         ("A")
>         () ;
> \stopMPcode
> 
> \stoptext

The example that Fabrice Couvreur presented works fine on my side,
besides

> Fabrice Couvreur schrieb am 22.08.18 um 13:05:
>> Hello,
>> Sorry to insist, but could anyone help me understand the problem I'm
>> having in using Emacs with standalone context ?
>> The following file compiles perfectly from a terminal :

----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[...]

---
WBR, Vladimir Lomov

-- 
No snowflake in an avalanche ever feels responsible.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-23  8:48   ` Fabrice Couvreur
@ 2018-08-24  2:20     ` Vladimir Lomov
  2018-08-24 10:31       ` Fabrice Couvreur
  0 siblings, 1 reply; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-24  2:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-24  2:20     ` Vladimir Lomov
@ 2018-08-24 10:31       ` Fabrice Couvreur
  2018-08-24 13:48         ` Vladimir Lomov
  0 siblings, 1 reply; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-24 10:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-24 10:31       ` Fabrice Couvreur
@ 2018-08-24 13:48         ` Vladimir Lomov
  2018-08-24 14:39           ` Hans Hagen
  2018-08-24 23:23           ` Fabrice Couvreur
  0 siblings, 2 replies; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-24 13:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 :
> 
> -------------------------------- 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")))

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

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  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
  1 sibling, 1 reply; 24+ messages in thread
From: Hans Hagen @ 2018-08-24 14:39 UTC (permalink / raw)
  To: Vladimir Lomov, mailing list for ConTeXt users

On 8/24/2018 3:48 PM, Vladimir Lomov wrote:

> 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).

context does listen to some of these variables but all lookups are done 
independent of kpse, basically you only need to set the path or run 
context / mtxrun with a full path, often from an editor

<pathtomtxrun>/mtxrun --script context ....

works ok

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-24 13:48         ` Vladimir Lomov
  2018-08-24 14:39           ` Hans Hagen
@ 2018-08-24 23:23           ` Fabrice Couvreur
  2018-08-27  4:07             ` Vladimir Lomov
  1 sibling, 1 reply; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-24 23:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

Hi Vladimir,
I use ConTeXt Full following this question asked on the forum
https://mailman.ntg.nl/pipermail/ntg-context/2017/089501.html
Then, if I compile with ConTeXt, the problem is not solved and the file
vladimir.log is empty !
This is the buffer vladimir.output with emacs

-------------------------------- 8<
----------------------------------------------------------------------------------------------------------------------------------------------
Running `ConTeXt' on `vladimir' with
``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context vladimir''
resolvers       | trees | analyzing 'home:texmf'
mtx-context     | warning: no (local) file './vladimir', proceeding
mtx-context     | run 1: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="vladimir"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
--c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20
int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'vladimir', input './vladimir', result
'vladimir'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
system          > synctex functionality is enabled, expect 5-10 pct runtime
overhead!
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost        > initializing number mode 'scaled'

lua error       > lua error on line 10 in file /home/aragorn/vladimir.tex:

...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
call a nil value (global 'getid')
stack traceback:
    ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
upvalue 'getexpansion'
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
    ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
local 'boxtomp'
    ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
    (...tail calls...)

 1
 2     \setupsynctex[state=start]
 3
 4     \startusableMPgraphic{NumberHead}
 5       draw outlinetext.f
 6       ("\bf\namedheadnumber{chapter}")
 7       (withcolor "red")
 8       ysized 50pt ;
 9     \stopusableMPgraphic
10 >>
11     \unexpanded\def\processMPheadnumber#1%
12       {\useMPgraphic{NumberHead}}
13
14     \setuphead%
15     [chapter]%
16     [command=\HeadTitle,%
17      headstyle=\ss,%
18      numbercommand=\processMPheadnumber]
19
20     \unexpanded\def\HeadTitle#1#2%


?
-------------------------------- 8<
-------------------------------------------------------------------------------------------------------------------------------------------------------------
But if I compile from a terminal without using emacs it works !

[aragorn@fab ~]$ /home/aragorn/context/tex/texmf-linux-64/bin/context
vladimir.tex

Are we sure it is context standalone that is used by emacs rather than
context texlive 2018 ?
When reading the file vladimir.log, I doubt a little ...
Thanks
Fabrice

PS : Here is the content of the file ~/.profile :

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

Le ven. 24 août 2018 à 15:48, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> 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 :
> >
> > -------------------------------- 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")))
>
> 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< ---------------------------------
> >
> > 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 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
>
> --
> 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>
>
> ___________________________________________________________________________________
> 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: 15997 bytes --]

[-- Attachment #2: vladimir.log --]
[-- Type: text/x-log, Size: 12811 bytes --]

resolvers       > trees > analyzing 'home:texmf'

open source     > level 1, order 1, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2018.8.21  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
close source    > level 2, order 2, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'

system          > files > jobname 'vladimir', input './vladimir', result 'vladimir'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun' as '/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/metafun.mpiv' using method 'default'
metapost        > initializing number mode 'scaled'
open source     > level 3, order 4, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/sample/common/ward.tex'
backend         > xmp > using file '/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
close source    > level 1, order 4, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'

system          > start used files

system          > text: vladimir

system          > stop used files


system          > start used files

system          >    1: filename=char-prv.lua filetype=tex format=tex foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/char-prv.lua fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/char-prv.lua usedmethod=database
system          >    2: filename=cont-yes.mkiv filetype=tex foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system          >    3: filename=publ-imp-default.lua filetype=scripts foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/publ-imp-default.lua fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system          >    4: filename=cont-new.mkiv filetype=tex foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system          >    5: filename=lang-exc.lua filetype=scripts foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/lang-exc.lua fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system          >    6: filename=lang-us.lua filetype=scripts foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/patterns/mkiv/lang-us.lua fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system          >    7: filename=/home/aragorn/vladimir.tex foundname=/home/aragorn/vladimir.tex fullname=/home/aragorn/vladimir.tex usedmethod=direct
system          >    8: filename=lm.lfg filetype=tex foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/fonts/mkiv/lm.lfg fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system          >    9: filename=lmroman12-regular filetype=otf format=otf foundname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system          >   10: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system          >   11: filename=lmroman10-regular filetype=otf format=otf foundname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf fullname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
system          >   12: filename=metafun.mpiv filetype=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/metafun.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/metafun.mpiv usedmethod=database
system          >   13: filename=mp-base.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-base.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-base.mpiv usedmethod=database
system          >   14: filename=mp-tool.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv usedmethod=database
system          >   15: filename=mp-mlib.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-mlib.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-mlib.mpiv usedmethod=database
system          >   16: filename=mp-luas.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-luas.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-luas.mpiv usedmethod=database
system          >   17: filename=mp-page.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv usedmethod=database
system          >   18: filename=mp-butt.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-butt.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-butt.mpiv usedmethod=database
system          >   19: filename=mp-shap.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-shap.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-shap.mpiv usedmethod=database
system          >   20: filename=mp-grph.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-grph.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-grph.mpiv usedmethod=database
system          >   21: filename=mp-grid.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-grid.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-grid.mpiv usedmethod=database
system          >   22: filename=mp-form.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-form.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-form.mpiv usedmethod=database
system          >   23: filename=mp-figs.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-figs.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-figs.mpiv usedmethod=database
system          >   24: filename=mp-func.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-func.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-func.mpiv usedmethod=database
system          >   25: filename=mp-node.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-node.mpiv usedmethod=database
system          >   26: filename=mp-apos.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-apos.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-apos.mpiv usedmethod=database
system          >   27: filename=mp-abck.mpiv filetype=mp format=mp foundname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-abck.mpiv fullname=/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/mp-abck.mpiv usedmethod=database
system          >   28: filename=lmroman10-bold filetype=otf format=otf foundname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-bold.otf fullname=/home/aragorn/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-bold.otf usedmethod=database
system          >   29: filename=ward filetype=tex foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/sample/common/ward.tex fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/sample/common/ward.tex usedmethod=database
system          >   30: filename=lpdf-pdx.xml filetype=tex foundname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml fullname=/home/aragorn/texlive/2018/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system          > stop used files


system          > start commandline options

system          > currentrun="1"
system          > fulljobname="./vladimir.tex"
system          > input="./vladimir.tex"
system          > kindofrun="1"
system          > maxnofruns="9"
system          > no-parse-first-line="true"
system          > nonstopmode="true"

system          > stop commandline options


system          > start commandline files

system          >    1: ./vladimir.tex

system          > stop commandline files


modules         > start used modules


modules         > stop used modules


mkiv lua stats  > used config file: selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/aragorn/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
mkiv lua stats  > resource resolver: loadtime 0.109 seconds, 1 scans with scantime 0.000 seconds, 0 shared scans, 30 found files, scanned paths: /home/aragorn/texmf
mkiv lua stats  > stored bytecode data: 410 modules (0.427 sec), 93 tables (0.013 sec), 503 chunks (0.440 sec)
mkiv lua stats  > traced context: maxstack: 1291, freed: 5, unreachable: 1286
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 453
mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 13 attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 7 unique task lists, 6 instances (re)created, 57 calls
mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3 objects flushed, logfile: vladimir.synctex
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: internal: 338, file: 162, direct: 0, late: 0, function 0, total: 500
mkiv lua stats  > randomizer: resumed with value 0.74088713095565
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.103, afm 1.513, tfm 1.000, 6 instances, load time 0.140 seconds 
mkiv lua stats  > metapost processing time: 0.001 seconds, loading: 0.017, execution: 0.001, n: 1, average: 0.018, instances: 1, memory: 2.525 M
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: bin
mkiv lua stats  > used engine: luatex version 1.07 with functionality level 6686, banner: this is luatex, version 1.07.0 (tex live 2018)
mkiv lua stats  > control sequences: 46423 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.2, used memory: 151 MB (ctx: 151 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.666 seconds, 1 processed pages, 1 shipped pages, 1.502 pages/second


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

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-24 14:39           ` Hans Hagen
@ 2018-08-27  3:57             ` Vladimir Lomov
  0 siblings, 0 replies; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-27  3:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
** Hans Hagen [2018-08-24 16:39:54 +0200]:

> On 8/24/2018 3:48 PM, Vladimir Lomov wrote:
> 
>> 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).
> 
> context does listen to some of these variables but all lookups are done
> independent of kpse,

And I suspect this causes strange behaviour of context in my case. I have

$ echo $TEXMFCNF
/home/vladimir/.texlive2018/texmf-config/web2c:

The last colon is kpse feature to use not only the first texmf.cnf
(https://www.tug.org/texinfohtml/kpathsea.html#Config-files) but all
others (I use personal texmf.cnf to adjust some TEXMF variables for my
latex workflow). With that TEXMFCNF context can't find its files (this
is for context from TeX Live:
-------------------------------- 8< -----------------------------------
mtxrun          | forcing cache reload
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/home/vladimir/.texlive2018/texmf-config/web2c:' from specification '/home/vladimir/.texlive2018/texmf-config/web2c:'
resolvers       | resolving | looking for fallback 'contextcnf.lua' on given path '/home/vladimir/.texlive2018/texmf-config/web2c:' from specification '/home/vladimir/.texlive2018/texmf-config/web2c:'
resolvers       | resolving |
resolvers       | resolving | warning: no lua configuration files found
resolvers       | resolving | no texmf paths are defined (using TEXMF)
resolvers       | resolving |
mtxrun          | the resolver databases are not present or outdated
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-t-context.lua' using hash 'lua::mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-t-contexts.lua' using hash 'lua::mtx-t-contexts.lua'
resolvers       | resolving | remembered file 'mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'context.lua' using hash 'lua::context.lua'
mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'
-------------------------------- 8< -----------------------------------

). I didn't try to figure out how to "fix" this, I simply unset that variable
when I use context (both standalone and from TeX Live).

> basically you only need to set the path or run context
> / mtxrun with a full path, often from an editor
> <pathtomtxrun>/mtxrun --script context ....
>
> works ok

context script do exactly that.

> Hans

---
WBR, Vladimir Lomov

-- 
If you ever want to have a lot of fun, I recommend that you go off and program
an imbedded system.  The salient characteristic of an imbedded system is that
it cannot be allowed to get into a state from which only direct intervention
will suffice to remove it.  An imbedded system can't permanently trust
anything it hears from the outside world.  It must sniff around, adapt,
consider, sniff around, and adapt again.  I'm not talking about ordinary
modular programming carefulness here.  No.  Programming an imbedded system
calls for undiluted raging maniacal paranoia.  For example, our ethernet front
ends need to know what network number they are on so that they can address and
route PUPs properly.  How do you find out what your network number is?  Easy,
you ask a gateway.  Gateways are required by definition to know their correct
network numbers.  Once you've got your network number, you start using it and
before you can blink you've got it wired into fifteen different sockets spread
all over creation.  Now what happens when the panic-stricken operator realizes
he was running the wrong version of the gateway which was giving out the wrong
network number?  Never supposed to happen.  Tough.  Supposing that your
software discovers that the gateway is now giving out a different network
number than before, what's it supposed to do about it?  This is not discussed
in the protocol document.  Never supposed to happen.  Tough.  I think you get
my drift.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-24 23:23           ` Fabrice Couvreur
@ 2018-08-27  4:07             ` Vladimir Lomov
  2018-08-27  9:51               ` Fabrice Couvreur
  0 siblings, 1 reply; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-27  4:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 4935 bytes --]

Hello,
** Fabrice Couvreur [2018-08-25 01:23:28 +0200]:

> Hi Vladimir,
> I use ConTeXt Full following this question asked on the forum
> https://mailman.ntg.nl/pipermail/ntg-context/2017/089501.html
> Then, if I compile with ConTeXt, the problem is not solved and the file
> vladimir.log is empty !

I don't know what trigger this error, in my configuration (even in
minimal one, see below) the sample document is typeset just fine.

> This is the buffer vladimir.output with emacs
> 
> -------------------------------- 8<
> ----------------------------------------------------------------------------------------------------------------------------------------------
> Running `ConTeXt' on `vladimir' with
> ``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context vladimir''
> resolvers       | trees | analyzing 'home:texmf'
> mtx-context     | warning: no (local) file './vladimir', proceeding
> mtx-context     | run 1: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --jobname="vladimir"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
> --c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>  system commands enabled.
> 
> resolvers       > trees > analyzing 'home:texmf'
> open source     > level 1, order 1, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system          >
> system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt: 2018.8.20
> int: english/english
> system          >
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > files > jobname 'vladimir', input './vladimir', result
> 'vladimir'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> system          > synctex functionality is enabled, expect 5-10 pct runtime
> overhead!
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> metapost        > initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost        > loading 'metafun' as
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> using method 'default'
> metapost        > initializing number mode 'scaled'
> 
> lua error       > lua error on line 10 in file /home/aragorn/vladimir.tex:
> 
> ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt to
> call a nil value (global 'getid')
> stack traceback:
>     ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
> upvalue 'getexpansion'
>     ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
> function <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
>     ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
> local 'boxtomp'
>     ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
> function <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
>     (...tail calls...)
> 
>  1
>  2     \setupsynctex[state=start]
>  3
>  4     \startusableMPgraphic{NumberHead}
>  5       draw outlinetext.f
>  6       ("\bf\namedheadnumber{chapter}")
>  7       (withcolor "red")
>  8       ysized 50pt ;
>  9     \stopusableMPgraphic
> 10 >>
> 11     \unexpanded\def\processMPheadnumber#1%
> 12       {\useMPgraphic{NumberHead}}
> 13
> 14     \setuphead%
> 15     [chapter]%
> 16     [command=\HeadTitle,%
> 17      headstyle=\ss,%
> 18      numbercommand=\processMPheadnumber]
> 19
> 20     \unexpanded\def\HeadTitle#1#2%
> 

I didn't see nothing suspicios, only the message with lua error, I
didn't see it in terminal and in Emacs.

Last try, could you make a backup of your ~/.emacs file and use attached
one to test your system (Emacs+AUCTeX). Just
1. make a copy of your original ~/.emacs;
2. change it's context to the provided one;
3. start new Emacs session;
4. open a test file and
5. do C-c C-c on it. Be sure that you choose the "ConTeXt" target.

Besides that check the *Messages* buffer, may be you find something
unusual there.

[...]

---
WBR, Vladimir Lomov

-- 
Ship it.

[-- Attachment #1.1.2: test..emacs --]
[-- Type: text/plain, Size: 530 bytes --]

(setenv "TEXMFCNF" nil)
(setenv "TEXMFCACHE" (getenv "X_CACHE_DIR"))
(setenv "TEXROOT" "/usr/local/opt/context/tex")
(setenv "OSFONTDIR" "/usr/share/fonts;/usr/local/share/fonts;/usr/local/opt/texlive/2018/texmf-dist/fonts/truetype;/usr/local/opt/texlive/2018/texmf-dist/fonts/opentype")
(load "auctex")
(eval-after-load "context"
  '(setq TeX-command-list
     (cons '("ConTeXt" "PATH=/usr/local/opt/context/tex/texmf-linux-64/bin:$PATH context %s"
       TeX-run-command nil t :help "Run context (MarkIV)") TeX-command-list))
)

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-27  4:07             ` Vladimir Lomov
@ 2018-08-27  9:51               ` Fabrice Couvreur
  2018-08-27 13:47                 ` Fabrice Couvreur
  2018-08-27 14:35                 ` Aditya Mahajan
  0 siblings, 2 replies; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-27  9:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

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 !

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

Thanks
Fabrice


Le lun. 27 août 2018 à 06:07, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> Hello,
> ** Fabrice Couvreur [2018-08-25 01:23:28 +0200]:
>
> > Hi Vladimir,
> > I use ConTeXt Full following this question asked on the forum
> > https://mailman.ntg.nl/pipermail/ntg-context/2017/089501.html
> > Then, if I compile with ConTeXt, the problem is not solved and the file
> > vladimir.log is empty !
>
> I don't know what trigger this error, in my configuration (even in
> minimal one, see below) the sample document is typeset just fine.
>
> > This is the buffer vladimir.output with emacs
> >
> > -------------------------------- 8<
> >
> ----------------------------------------------------------------------------------------------------------------------------------------------
> > Running `ConTeXt' on `vladimir' with
> > ``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context
> vladimir''
> > resolvers       | trees | analyzing 'home:texmf'
> > mtx-context     | warning: no (local) file './vladimir', proceeding
> > mtx-context     | run 1: luatex
> >
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> > --jobname="vladimir"
> >
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> > --no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
> > --c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
> >
> > This is LuaTeX, Version 1.08.0 (TeX Live 2018)
> >  system commands enabled.
> >
> > resolvers       > trees > analyzing 'home:texmf'
> > open source     > level 1, order 1, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> > system          >
> > system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt:
> 2018.8.20
> > int: english/english
> > system          >
> > system          > 'cont-new.mkiv' loaded
> > open source     > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > beware: some patches loaded from cont-new.mkiv
> > close source    > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > files > jobname 'vladimir', input './vladimir', result
> > 'vladimir'
> > fonts           > latin modern fonts are not preloaded
> > languages       > language 'en' is active
> > open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> > system          > synctex functionality is enabled, expect 5-10 pct
> runtime
> > overhead!
> > fonts           > preloading latin modern fonts (second stage)
> > fonts           > 'fallback modern-designsize rm 12pt' is loaded
> > structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> > metapost        > initializing instance 'metafun:1' using format
> 'metafun'
> > and method 'default'
> > metapost        > loading 'metafun' as
> >
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> > using method 'default'
> > metapost        > initializing number mode 'scaled'
> >
> > lua error       > lua error on line 10 in file
> /home/aragorn/vladimir.tex:
> >
> > ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: attempt
> to
> > call a nil value (global 'getid')
> > stack traceback:
> >     ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
> > upvalue 'getexpansion'
> >     ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
> > function
> <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
> >     ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
> > local 'boxtomp'
> >     ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
> > function
> <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
> >     (...tail calls...)
> >
> >  1
> >  2     \setupsynctex[state=start]
> >  3
> >  4     \startusableMPgraphic{NumberHead}
> >  5       draw outlinetext.f
> >  6       ("\bf\namedheadnumber{chapter}")
> >  7       (withcolor "red")
> >  8       ysized 50pt ;
> >  9     \stopusableMPgraphic
> > 10 >>
> > 11     \unexpanded\def\processMPheadnumber#1%
> > 12       {\useMPgraphic{NumberHead}}
> > 13
> > 14     \setuphead%
> > 15     [chapter]%
> > 16     [command=\HeadTitle,%
> > 17      headstyle=\ss,%
> > 18      numbercommand=\processMPheadnumber]
> > 19
> > 20     \unexpanded\def\HeadTitle#1#2%
> >
>
> I didn't see nothing suspicios, only the message with lua error, I
> didn't see it in terminal and in Emacs.
>
> Last try, could you make a backup of your ~/.emacs file and use attached
> one to test your system (Emacs+AUCTeX). Just
> 1. make a copy of your original ~/.emacs;
> 2. change it's context to the provided one;
> 3. start new Emacs session;
> 4. open a test file and
> 5. do C-c C-c on it. Be sure that you choose the "ConTeXt" target.
>
> Besides that check the *Messages* buffer, may be you find something
> unusual there.
>
> [...]
>
> ---
> WBR, Vladimir Lomov
>
> --
> Ship it.
>
> ___________________________________________________________________________________
> 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: 9968 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-27  9:51               ` Fabrice Couvreur
@ 2018-08-27 13:47                 ` Fabrice Couvreur
  2018-08-28  5:57                   ` Vladimir Lomov
  2018-08-27 14:35                 ` Aditya Mahajan
  1 sibling, 1 reply; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-27 13:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

Hi Vladimir,
I just realized that does not work anymore
!

(setq ConTeXt-mode-hook
      (lambda () (setq TeX-command-extra-options "--purgeall")))

Thanks
Fabrice


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 !
>
> 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
>
> Thanks
> Fabrice
>
>
> Le lun. 27 août 2018 à 06:07, Vladimir Lomov <lomov.vl@yandex.ru> a
> écrit :
>
>> Hello,
>> ** Fabrice Couvreur [2018-08-25 01:23:28 +0200]:
>>
>> > Hi Vladimir,
>> > I use ConTeXt Full following this question asked on the forum
>> > https://mailman.ntg.nl/pipermail/ntg-context/2017/089501.html
>> > Then, if I compile with ConTeXt, the problem is not solved and the file
>> > vladimir.log is empty !
>>
>> I don't know what trigger this error, in my configuration (even in
>> minimal one, see below) the sample document is typeset just fine.
>>
>> > This is the buffer vladimir.output with emacs
>> >
>> > -------------------------------- 8<
>> >
>> ----------------------------------------------------------------------------------------------------------------------------------------------
>> > Running `ConTeXt' on `vladimir' with
>> > ``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context
>> vladimir''
>> > resolvers       | trees | analyzing 'home:texmf'
>> > mtx-context     | warning: no (local) file './vladimir', proceeding
>> > mtx-context     | run 1: luatex
>> >
>> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
>> > --jobname="vladimir"
>> >
>> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
>> > --no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
>> > --c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
>> >
>> > This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>> >  system commands enabled.
>> >
>> > resolvers       > trees > analyzing 'home:texmf'
>> > open source     > level 1, order 1, name
>> >
>> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
>> > system          >
>> > system          > ConTeXt  ver: 2018.08.20 17:47 MKIV beta  fmt:
>> 2018.8.20
>> > int: english/english
>> > system          >
>> > system          > 'cont-new.mkiv' loaded
>> > open source     > level 2, order 2, name
>> >
>> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> > system          > beware: some patches loaded from cont-new.mkiv
>> > close source    > level 2, order 2, name
>> >
>> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> > system          > files > jobname 'vladimir', input './vladimir', result
>> > 'vladimir'
>> > fonts           > latin modern fonts are not preloaded
>> > languages       > language 'en' is active
>> > open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
>> > system          > synctex functionality is enabled, expect 5-10 pct
>> runtime
>> > overhead!
>> > fonts           > preloading latin modern fonts (second stage)
>> > fonts           > 'fallback modern-designsize rm 12pt' is loaded
>> > structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
>> > metapost        > initializing instance 'metafun:1' using format
>> 'metafun'
>> > and method 'default'
>> > metapost        > loading 'metafun' as
>> >
>> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
>> > using method 'default'
>> > metapost        > initializing number mode 'scaled'
>> >
>> > lua error       > lua error on line 10 in file
>> /home/aragorn/vladimir.tex:
>> >
>> > ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190:
>> attempt to
>> > call a nil value (global 'getid')
>> > stack traceback:
>> >     ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:190: in
>> > upvalue 'getexpansion'
>> >     ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:343: in
>> > function
>> <...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:338>
>> >     ...ext/tex/texmf-context/tex/context/base/mkiv/font-mps.lua:437: in
>> > local 'boxtomp'
>> >     ...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1894: in
>> > function
>> <...ext/tex/texmf-context/tex/context/base/mkiv/mlib-pps.lua:1891>
>> >     (...tail calls...)
>> >
>> >  1
>> >  2     \setupsynctex[state=start]
>> >  3
>> >  4     \startusableMPgraphic{NumberHead}
>> >  5       draw outlinetext.f
>> >  6       ("\bf\namedheadnumber{chapter}")
>> >  7       (withcolor "red")
>> >  8       ysized 50pt ;
>> >  9     \stopusableMPgraphic
>> > 10 >>
>> > 11     \unexpanded\def\processMPheadnumber#1%
>> > 12       {\useMPgraphic{NumberHead}}
>> > 13
>> > 14     \setuphead%
>> > 15     [chapter]%
>> > 16     [command=\HeadTitle,%
>> > 17      headstyle=\ss,%
>> > 18      numbercommand=\processMPheadnumber]
>> > 19
>> > 20     \unexpanded\def\HeadTitle#1#2%
>> >
>>
>> I didn't see nothing suspicios, only the message with lua error, I
>> didn't see it in terminal and in Emacs.
>>
>> Last try, could you make a backup of your ~/.emacs file and use attached
>> one to test your system (Emacs+AUCTeX). Just
>> 1. make a copy of your original ~/.emacs;
>> 2. change it's context to the provided one;
>> 3. start new Emacs session;
>> 4. open a test file and
>> 5. do C-c C-c on it. Be sure that you choose the "ConTeXt" target.
>>
>> Besides that check the *Messages* buffer, may be you find something
>> unusual there.
>>
>> [...]
>>
>> ---
>> WBR, Vladimir Lomov
>>
>> --
>> Ship it.
>>
>> ___________________________________________________________________________________
>> 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: 11461 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-27  9:51               ` Fabrice Couvreur
  2018-08-27 13:47                 ` Fabrice Couvreur
@ 2018-08-27 14:35                 ` Aditya Mahajan
  2018-08-27 15:13                   ` Fabrice Couvreur
  1 sibling, 1 reply; 24+ messages in thread
From: Aditya Mahajan @ 2018-08-27 14:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 27 Aug 2018, Fabrice Couvreur wrote:

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

I haven't read the whole thread, but why are you adding BOTH context-minimal
and texlive to path. The whole idea of `source ...setuptex` is to set the PATH
so that `context` resolves to the script provided by context-minimals rather
than texlive.

You can check this by running `which context` in a terminal.

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

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-27 14:35                 ` Aditya Mahajan
@ 2018-08-27 15:13                   ` Fabrice Couvreur
  0 siblings, 0 replies; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-27 15:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
I installed texlive 2018 and context standalone in my home directory. It
seems to me that I must therefore indicate the path where texlive is
located 2018, but maybe I'm wrong.

You can check this by running `which context` in a terminal.
>

 Setting "/home/aragorn/context/tex" as ConTeXt root.
[aragorn@fab ~]$ which context
/home/aragorn/context/tex/texmf-linux-64/bin/context
[aragorn@fab ~]$

Fabrice

Le lun. 27 août 2018 à 16:36, Aditya Mahajan <adityam@umich.edu> a écrit :

> On Mon, 27 Aug 2018, Fabrice Couvreur wrote:
>
> > 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 !
> >
> > 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
>
> I haven't read the whole thread, but why are you adding BOTH
> context-minimal
> and texlive to path. The whole idea of `source ...setuptex` is to set the
> PATH
> so that `context` resolves to the script provided by context-minimals
> rather
> than texlive.
>
> You can check this by running `which context` in a terminal.
>
> Aditya
>
> ___________________________________________________________________________________
> 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: 3555 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-27 13:47                 ` Fabrice Couvreur
@ 2018-08-28  5:57                   ` Vladimir Lomov
  2018-08-28  9:18                     ` Fabrice Couvreur
  0 siblings, 1 reply; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-28  5:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-28  5:57                   ` Vladimir Lomov
@ 2018-08-28  9:18                     ` Fabrice Couvreur
  2018-08-29  2:58                       ` Vladimir Lomov
  0 siblings, 1 reply; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-28  9:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-28  9:18                     ` Fabrice Couvreur
@ 2018-08-29  2:58                       ` Vladimir Lomov
  2018-08-29  9:39                         ` Fabrice Couvreur
  0 siblings, 1 reply; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-29  2:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
** Fabrice Couvreur [2018-08-28 11:18:58 +0200]:

> Hi Vladimir,

> I do not use Arch Linux repositories to install  texlive 2018 packages

Some texlive-* packages could be installed as dependencies of other
packages. You may check if your system has any texlive package:

  $ pacman -Qs texlive

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

I prefer to rely on package manager.

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

  $ pacman -Qs 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

This part is a bit strange:
- in message
  https://mailman.ntg.nl/pipermail/ntg-context/2018/092418.html
  you mentioned that commands run in terminal worked fine, but you
  invoked them by full path;

- in the same message you set PATH in emacs as

    (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)

  (I have to admit that I didn't know it is possible to use '$PATH' in
  setenv), so it prepends path to context binary to PATH list. The above
  lines do opposite: they append path to context binary to the end of
  PATH list.

  The first line, 'source ...', helps here because 'setuptex' in turns
  prepend path to context binary to PATH.

When you invoke 'context' in terminal (I assume it is bash shell) the
shell searches program in current directory (depends on configuration)
and then in PATH, the first wins. So to use context from ConTeXt
standalone you may simply do

  $ export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH

either in terminal or in ~/.profile. You may always check if this is
true by runnig

  $ command -v context

(for bash shell) or

  $ which context

Returning to your problem. I looked closely again in messages with
output from context and I don't understand what may cause the error.
Seems that Emacs uses correct context (according to loading files).
Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
Emacs?

> Regards,
> Fabrice
> 

[...]

---
WBR, Vladimir Lomov


-- 
Uncontrolled power will turn even saints into savages.  And we can all
be counted on to live down to our lowest impulses.
		-- Parmen, "Plato's Stepchildren", stardate 5784.3

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  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:01                           ` Vladimir Lomov
  0 siblings, 2 replies; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-29  9:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

Hello,
Before considering modifications, here's what I get when I do which context
:

Setting "/home/aragorn/context/tex" as ConTeXt root.
[aragorn@fab ~]$ which context
/home/aragorn/context/tex/texmf-linux-64/bin/context
[aragorn@fab ~]$

$ pacman -Qs texlive
>

 [root@fab aragorn]# pacman -Qs texlive
[root@fab aragorn]#

$ pacman -Qs emacs
>

 [root@fab aragorn]# pacman -Qs emacs
local/emacs 26.1-2
    The extensible, customizable, self-documenting real-time display editor
local/emacs-python-mode 6.2.3-1
    Python mode for Emacs
[root@fab aragorn]#

you mentioned that commands run in terminal worked fine, but you
>   invoked them by full path;
>


To be able to test with the
texlive context binary and context standalone context binary
.


The next in the next message after restarting my PC ...

Fabrice


Le mer. 29 août 2018 à 04:58, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> Hello,
> ** Fabrice Couvreur [2018-08-28 11:18:58 +0200]:
>
> > Hi Vladimir,
>
> > I do not use Arch Linux repositories to install  texlive 2018 packages
>
> Some texlive-* packages could be installed as dependencies of other
> packages. You may check if your system has any texlive package:
>
>   $ pacman -Qs texlive
>
> > 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.
>
> I prefer to rely on package manager.
>
> > 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.
>
>   $ pacman -Qs 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
>
> This part is a bit strange:
> - in message
>   https://mailman.ntg.nl/pipermail/ntg-context/2018/092418.html
>   you mentioned that commands run in terminal worked fine, but you
>   invoked them by full path;
>
> - in the same message you set PATH in emacs as
>
>     (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)
>
>   (I have to admit that I didn't know it is possible to use '$PATH' in
>   setenv), so it prepends path to context binary to PATH list. The above
>   lines do opposite: they append path to context binary to the end of
>   PATH list.
>
>   The first line, 'source ...', helps here because 'setuptex' in turns
>   prepend path to context binary to PATH.
>
> When you invoke 'context' in terminal (I assume it is bash shell) the
> shell searches program in current directory (depends on configuration)
> and then in PATH, the first wins. So to use context from ConTeXt
> standalone you may simply do
>
>   $ export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
>
> either in terminal or in ~/.profile. You may always check if this is
> true by runnig
>
>   $ command -v context
>
> (for bash shell) or
>
>   $ which context
>
> Returning to your problem. I looked closely again in messages with
> output from context and I don't understand what may cause the error.
> Seems that Emacs uses correct context (according to loading files).
> Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
> Emacs?
>
> > Regards,
> > Fabrice
> >
>
> [...]
>
> ---
> WBR, Vladimir Lomov
>
>
> --
> Uncontrolled power will turn even saints into savages.  And we can all
> be counted on to live down to our lowest impulses.
>                 -- Parmen, "Plato's Stepchildren", stardate 5784.3
>
> ___________________________________________________________________________________
> 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: 8815 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-29  9:39                         ` Fabrice Couvreur
@ 2018-08-29 10:01                           ` Fabrice Couvreur
  2018-08-29 14:12                             ` Vladimir Lomov
  2018-08-29 14:01                           ` Vladimir Lomov
  1 sibling, 1 reply; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-29 10:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

Hello,
Here is the content of my file ~/.profile :

export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
export PATH=$HOME/texlive/2018/bin/x86_64-linux:$PATH
export PATH=$HOME/bin:$PATH

$ command -v context
>

 [aragorn@fab ~]$  command -v context
/home/aragorn/texlive/2018/bin/x86_64-linux/context
[aragorn@fab ~]$

I then tested the vladimir.tex file



\setupsynctex[state=start]

\startusableMPgraphic{NumberHead}
  draw outlinetext.f
  ("\bf\namedheadnumber{chapter}")
  (withcolor "blue")
  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:

Here is the output vladimi
r
.output


Running `ConTeXt' on `vladimir' with
``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context
--purgeall vladimir''
resolvers       | trees | analyzing 'home:texmf'
mtx-context     | warning: no (local) file './vladimir', proceeding
mtx-context     | run 1: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="vladimir"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
--c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall
"cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt: 2018.8.25
int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'vladimir', input './vladimir', result
'vladimir'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
system          > synctex functionality is enabled, expect 5-10 pct runtime
overhead!
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost        > initializing number mode 'scaled'
open source     > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
backend         > xmp > using file
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
close source    > level 1, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.008 seconds, 1 scans with
scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
/home/aragorn/texmf
mkiv lua stats  > stored bytecode data: 437 modules (0.227 sec), 93 tables
(0.015 sec), 530 chunks (0.241 sec)
mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
1323
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
instances (re)created, 55 calls
mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
objects flushed, logfile: vladimir.synctex
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: internal: 177, file: 180, direct: 2, late: 2,
function 534, total: 895
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
time 0.216 seconds
mkiv lua stats  > metapost: 0.001 seconds, loading: 0.017, execution:
0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.08 with functionality level
6731, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats  > control sequences: 46537 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 81 MB (ctx:
81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.538 seconds, 1 processed pages, 1 shipped
pages, 1.859 pages/second
mtx-context     | run 2: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="vladimir"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=2 --c:fulljobname="./vladimir"
--c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall
"cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt: 2018.8.25
int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'vladimir', input './vladimir', result
'vladimir'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
system          > synctex functionality is enabled, expect 5-10 pct runtime
overhead!
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost        > initializing number mode 'scaled'
open source     > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
backend         > xmp > using file
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
close source    > level 1, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.008 seconds, 1 scans with
scantime 0.001 seconds, 0 shared scans, 31 found files, scanned paths:
/home/aragorn/texmf
mkiv lua stats  > stored bytecode data: 437 modules (0.238 sec), 93 tables
(0.015 sec), 530 chunks (0.253 sec)
mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
1323
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
instances (re)created, 55 calls
mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
objects flushed, logfile: vladimir.synctex
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: internal: 177, file: 180, direct: 2, late: 2,
function 534, total: 895
mkiv lua stats  > randomizer: initialized with value 0.55005725985393
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
time 0.227 seconds
mkiv lua stats  > metapost: 0.001 seconds, loading: 0.017, execution:
0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.08 with functionality level
6731, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats  > control sequences: 46536 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 81 MB (ctx:
81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.562 seconds, 1 processed pages, 1 shipped
pages, 1.779 pages/second
mtx-context     | run 3: luatex
--fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
--jobname="vladimir"
--lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=3 --c:fulljobname="./vladimir"
--c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall
"cont-yes.mkiv"

This is LuaTeX, Version 1.08.0 (TeX Live 2018)
 system commands enabled.

resolvers       > trees > analyzing 'home:texmf'
open source     > level 1, order 1, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          >
system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt: 2018.8.25
int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'vladimir', input './vladimir', result
'vladimir'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
system          > synctex functionality is enabled, expect 5-10 pct runtime
overhead!
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
metapost        > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost        > loading 'metafun' as
'/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost        > initializing number mode 'scaled'
open source     > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
close source    > level 3, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
backend         > xmp > using file
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
close source    > level 1, order 4, name
'/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans with
scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
/home/aragorn/texmf
mkiv lua stats  > stored bytecode data: 437 modules (0.217 sec), 93 tables
(0.015 sec), 530 chunks (0.232 sec)
mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
1323
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
instances (re)created, 55 calls
mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
objects flushed, logfile: vladimir.synctex
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: internal: 177, file: 180, direct: 2, late: 2,
function 534, total: 895
mkiv lua stats  > randomizer: resumed with value 0.55005725985393
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
time 0.221 seconds
mkiv lua stats  > metapost: 0.001 seconds, loading: 0.018, execution:
0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.08 with functionality level
6731, banner: this is luatex, version 1.08.0 (tex live 2018)
mkiv lua stats  > control sequences: 46536 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 86 MB (ctx:
85 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.536 seconds, 1 processed pages, 1 shipped
pages, 1.866 pages/second
mtx-context     | purged files: vladimir.log, vladimir.tuc
system          | total runtime: 2.525 seconds


TeX Output finished at Wed Aug 29 11:54:03

Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
> Emacs
> ?
>

I use AUCTEX but I d not know bare Emacs

(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)
Thanks
Fabrice


Le mer. 29 août 2018 à 11:39, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
a écrit :

> Hello,
> Before considering modifications, here's what I get when I do which
> context :
>
> Setting "/home/aragorn/context/tex" as ConTeXt root.
> [aragorn@fab ~]$ which context
> /home/aragorn/context/tex/texmf-linux-64/bin/context
> [aragorn@fab ~]$
>
> $ pacman -Qs texlive
>>
>
>  [root@fab aragorn]# pacman -Qs texlive
> [root@fab aragorn]#
>
> $ pacman -Qs emacs
>>
>
>  [root@fab aragorn]# pacman -Qs emacs
> local/emacs 26.1-2
>     The extensible, customizable, self-documenting real-time display editor
> local/emacs-python-mode 6.2.3-1
>     Python mode for Emacs
> [root@fab aragorn]#
>
> you mentioned that commands run in terminal worked fine, but you
>>   invoked them by full path;
>>
>
>
> To be able to test with the
> texlive context binary and context standalone context binary
> .
>
>
> The next in the next message after restarting my PC ...
>
> Fabrice
>
>
> Le mer. 29 août 2018 à 04:58, Vladimir Lomov <lomov.vl@yandex.ru> a
> écrit :
>
>> Hello,
>> ** Fabrice Couvreur [2018-08-28 11:18:58 +0200]:
>>
>> > Hi Vladimir,
>>
>> > I do not use Arch Linux repositories to install  texlive 2018 packages
>>
>> Some texlive-* packages could be installed as dependencies of other
>> packages. You may check if your system has any texlive package:
>>
>>   $ pacman -Qs texlive
>>
>> > 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.
>>
>> I prefer to rely on package manager.
>>
>> > 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.
>>
>>   $ pacman -Qs 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
>>
>> This part is a bit strange:
>> - in message
>>   https://mailman.ntg.nl/pipermail/ntg-context/2018/092418.html
>>   you mentioned that commands run in terminal worked fine, but you
>>   invoked them by full path;
>>
>> - in the same message you set PATH in emacs as
>>
>>     (setenv "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH"
>> t)
>>
>>   (I have to admit that I didn't know it is possible to use '$PATH' in
>>   setenv), so it prepends path to context binary to PATH list. The above
>>   lines do opposite: they append path to context binary to the end of
>>   PATH list.
>>
>>   The first line, 'source ...', helps here because 'setuptex' in turns
>>   prepend path to context binary to PATH.
>>
>> When you invoke 'context' in terminal (I assume it is bash shell) the
>> shell searches program in current directory (depends on configuration)
>> and then in PATH, the first wins. So to use context from ConTeXt
>> standalone you may simply do
>>
>>   $ export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
>>
>> either in terminal or in ~/.profile. You may always check if this is
>> true by runnig
>>
>>   $ command -v context
>>
>> (for bash shell) or
>>
>>   $ which context
>>
>> Returning to your problem. I looked closely again in messages with
>> output from context and I don't understand what may cause the error.
>> Seems that Emacs uses correct context (according to loading files).
>> Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
>> Emacs?
>>
>> > Regards,
>> > Fabrice
>> >
>>
>> [...]
>>
>> ---
>> WBR, Vladimir Lomov
>>
>>
>> --
>> Uncontrolled power will turn even saints into savages.  And we can all
>> be counted on to live down to our lowest impulses.
>>                 -- Parmen, "Plato's Stepchildren", stardate 5784.3
>>
>> ___________________________________________________________________________________
>> 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: 35991 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-29  9:39                         ` Fabrice Couvreur
  2018-08-29 10:01                           ` Fabrice Couvreur
@ 2018-08-29 14:01                           ` Vladimir Lomov
  1 sibling, 0 replies; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-29 14:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
** Fabrice Couvreur [2018-08-29 11:39:07 +0200]:

> Hello,
> Before considering modifications, here's what I get when I do which context
> :
> 
> Setting "/home/aragorn/context/tex" as ConTeXt root.
> [aragorn@fab ~]$ which context
> /home/aragorn/context/tex/texmf-linux-64/bin/context
> [aragorn@fab ~]$

Ok, context from ConTeXt Standalone.

> $ pacman -Qs texlive

Ok, your system doesn't have any texlive packages.

> 
>  [root@fab aragorn]# pacman -Qs texlive
> [root@fab aragorn]#

Running commands as root is a bit dangerous.

> $ pacman -Qs emacs
>
> 
>  [root@fab aragorn]# pacman -Qs emacs
> local/emacs 26.1-2
>     The extensible, customizable, self-documenting real-time display editor
> local/emacs-python-mode 6.2.3-1
>     Python mode for Emacs
> [root@fab aragorn]#

Your system has only these two packages.

> you mentioned that commands run in terminal worked fine, but you
> >   invoked them by full path;
> >
> 
> 
> To be able to test with the
> texlive context binary and context standalone context binary
> .

Got it.

> 
> 
> The next in the next message after restarting my PC ...
> 
> Fabrice

[..]

---
WBR, Vladimir Lomov

-- 
I think that I shall never see
A thing as lovely as a tree.
But as you see the trees have gone
They went this morning with the dawn.
A logging firm from out of town
Came and chopped the trees all down.
But I will trick those dirty skunks
And write a brand new poem called 'Trunks'.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-29 10:01                           ` Fabrice Couvreur
@ 2018-08-29 14:12                             ` Vladimir Lomov
  2018-08-30 17:13                               ` Fabrice Couvreur
  0 siblings, 1 reply; 24+ messages in thread
From: Vladimir Lomov @ 2018-08-29 14:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
** Fabrice Couvreur [2018-08-29 12:01:46 +0200]:

> Hello,
> Here is the content of my file ~/.profile :
> 
> export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
> export PATH=$HOME/texlive/2018/bin/x86_64-linux:$PATH
> export PATH=$HOME/bin:$PATH
> 
>> $ command -v context
> 
>  [aragorn@fab ~]$  command -v context
> /home/aragorn/texlive/2018/bin/x86_64-linux/context
> [aragorn@fab ~]$

And this means that when you run 'context' in shell (terminal) the
context from TeX Live will be used. Note the above 'export' commands.
The first prepend the path to ConTeXt Standalone binaries, the next on
prepends TeX Live binaries, so TeX Live binaries will be used if you run
'context' in terminal/shell.

> I then tested the vladimir.tex file
> 
> \setupsynctex[state=start]
> 
> \startusableMPgraphic{NumberHead}
>   draw outlinetext.f
>   ("\bf\namedheadnumber{chapter}")
>   (withcolor "blue")
>   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:
> 
> Here is the output vladimir output

I suppose this is from within Emacs.

> 
> Running `ConTeXt' on `vladimir' with
> ``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context
> --purgeall vladimir''
> resolvers       | trees | analyzing 'home:texmf'
> mtx-context     | warning: no (local) file './vladimir', proceeding
> mtx-context     | run 1: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --jobname="vladimir"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
> --c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall
> "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>  system commands enabled.
> 
> resolvers       > trees > analyzing 'home:texmf'
> open source     > level 1, order 1, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system          >
> system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt: 2018.8.25
> int: english/english
> system          >
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > files > jobname 'vladimir', input './vladimir', result
> 'vladimir'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> system          > synctex functionality is enabled, expect 5-10 pct runtime
> overhead!
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> metapost        > initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost        > loading 'metafun' as
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> using method 'default'
> metapost        > initializing number mode 'scaled'
> open source     > level 3, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> close source    > level 3, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> backend         > xmp > using file
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1, subpage 1
> close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
> close source    > level 1, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path:
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.008 seconds, 1 scans with
> scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
> /home/aragorn/texmf
> mkiv lua stats  > stored bytecode data: 437 modules (0.227 sec), 93 tables
> (0.015 sec), 530 chunks (0.241 sec)
> mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
> 1323
> mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
> attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
> instances (re)created, 55 calls
> mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
> objects flushed, logfile: vladimir.synctex
> 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: internal: 177, file: 180, direct: 2, late: 2,
> function 534, total: 895
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
> lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
> time 0.216 seconds
> mkiv lua stats  > metapost: 0.001 seconds, loading: 0.017, execution:
> 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
> mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
> texmf-linux-64
> mkiv lua stats  > used engine: luatex version 1.08 with functionality level
> 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> mkiv lua stats  > control sequences: 46537 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 81 MB (ctx:
> 81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.538 seconds, 1 processed pages, 1 shipped
> pages, 1.859 pages/second
> mtx-context     | run 2: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --jobname="vladimir"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=2 --c:fulljobname="./vladimir"
> --c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall
> "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>  system commands enabled.
> 
> resolvers       > trees > analyzing 'home:texmf'
> open source     > level 1, order 1, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system          >
> system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt: 2018.8.25
> int: english/english
> system          >
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > files > jobname 'vladimir', input './vladimir', result
> 'vladimir'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> system          > synctex functionality is enabled, expect 5-10 pct runtime
> overhead!
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> metapost        > initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost        > loading 'metafun' as
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> using method 'default'
> metapost        > initializing number mode 'scaled'
> open source     > level 3, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> close source    > level 3, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> backend         > xmp > using file
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1, subpage 1
> close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
> close source    > level 1, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path:
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.008 seconds, 1 scans with
> scantime 0.001 seconds, 0 shared scans, 31 found files, scanned paths:
> /home/aragorn/texmf
> mkiv lua stats  > stored bytecode data: 437 modules (0.238 sec), 93 tables
> (0.015 sec), 530 chunks (0.253 sec)
> mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
> 1323
> mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
> attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
> instances (re)created, 55 calls
> mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
> objects flushed, logfile: vladimir.synctex
> 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: internal: 177, file: 180, direct: 2, late: 2,
> function 534, total: 895
> mkiv lua stats  > randomizer: initialized with value 0.55005725985393
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
> lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
> time 0.227 seconds
> mkiv lua stats  > metapost: 0.001 seconds, loading: 0.017, execution:
> 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
> mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
> texmf-linux-64
> mkiv lua stats  > used engine: luatex version 1.08 with functionality level
> 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> mkiv lua stats  > control sequences: 46536 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 81 MB (ctx:
> 81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.562 seconds, 1 processed pages, 1 shipped
> pages, 1.779 pages/second
> mtx-context     | run 3: luatex
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> --jobname="vladimir"
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> --no-parse-first-line --c:currentrun=3 --c:fulljobname="./vladimir"
> --c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall
> "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>  system commands enabled.
> 
> resolvers       > trees > analyzing 'home:texmf'
> open source     > level 1, order 1, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system          >
> system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt: 2018.8.25
> int: english/english
> system          >
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > files > jobname 'vladimir', input './vladimir', result
> 'vladimir'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> system          > synctex functionality is enabled, expect 5-10 pct runtime
> overhead!
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> metapost        > initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost        > loading 'metafun' as
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> using method 'default'
> metapost        > initializing number mode 'scaled'
> open source     > level 3, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> close source    > level 3, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> backend         > xmp > using file
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1, subpage 1
> close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
> close source    > level 1, order 4, name
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path:
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans with
> scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
> /home/aragorn/texmf
> mkiv lua stats  > stored bytecode data: 437 modules (0.217 sec), 93 tables
> (0.015 sec), 530 chunks (0.232 sec)
> mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
> 1323
> mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
> attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
> instances (re)created, 55 calls
> mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
> objects flushed, logfile: vladimir.synctex
> 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: internal: 177, file: 180, direct: 2, late: 2,
> function 534, total: 895
> mkiv lua stats  > randomizer: resumed with value 0.55005725985393
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
> lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
> time 0.221 seconds
> mkiv lua stats  > metapost: 0.001 seconds, loading: 0.018, execution:
> 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
> mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
> texmf-linux-64
> mkiv lua stats  > used engine: luatex version 1.08 with functionality level
> 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> mkiv lua stats  > control sequences: 46536 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 86 MB (ctx:
> 85 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.536 seconds, 1 processed pages, 1 shipped
> pages, 1.866 pages/second
> mtx-context     | purged files: vladimir.log, vladimir.tuc
> system          | total runtime: 2.525 seconds
> 
> 
> TeX Output finished at Wed Aug 29 11:54:03

So no error this time, how about the resulted PDF file?

>> Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
>> Emacs ?
  
> I use AUCTEX but I d not know bare Emacs

I assumed that you installed auctex package, like

  $ sudo pacman -S auctex

and do

  (load "auctex")

in your ~/.emacs file. If you do not use auctex or not load it the Emacs
will use it's own (builtin) support for LaTeX and ConTeXt file (a
limited one).
 
> (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)

These settings looks good. Hope you resolved your problem.

P.S. Why you install auctex as MELPA and don't use Archlinux package?

> Thanks
> Fabrice

[...]

---
WBR, Vladimir Lomov

-- 
A memorandum is written not to inform the reader, but to protect the writer.
		-- Dean Acheson

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Emacs + latest beta
  2018-08-29 14:12                             ` Vladimir Lomov
@ 2018-08-30 17:13                               ` Fabrice Couvreur
  0 siblings, 0 replies; 24+ messages in thread
From: Fabrice Couvreur @ 2018-08-30 17:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users, lomov.vl


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

Hello Vladimir,

I suppose this is from within Emacs.
>

 File compiled with Emacs
.


I assumed that you installed auctex package, like
>
>   $ sudo pacman -S auctex
>
> and do
>
>   (load "auctex")
>

No with MELPA.


P.S. Why you install auctex as MELPA and don't use Archlinux package ?
>

I do not know !
What is the difference between both ?
If it's better to do it with Arch Linux, I do it !

Is it necessary to add this at the end of each file  ?


%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:

Thanks,
Fabrice


Le mer. 29 août 2018 à 16:12, Vladimir Lomov <lomov.vl@yandex.ru> a écrit :

> Hello,
> ** Fabrice Couvreur [2018-08-29 12:01:46 +0200]:
>
> > Hello,
> > Here is the content of my file ~/.profile :
> >
> > export PATH=$HOME/context/tex/texmf-linux-64/bin:$PATH
> > export PATH=$HOME/texlive/2018/bin/x86_64-linux:$PATH
> > export PATH=$HOME/bin:$PATH
> >
> >> $ command -v context
> >
> >  [aragorn@fab ~]$  command -v context
> > /home/aragorn/texlive/2018/bin/x86_64-linux/context
> > [aragorn@fab ~]$
>
> And this means that when you run 'context' in shell (terminal) the
> context from TeX Live will be used. Note the above 'export' commands.
> The first prepend the path to ConTeXt Standalone binaries, the next on
> prepends TeX Live binaries, so TeX Live binaries will be used if you run
> 'context' in terminal/shell.
>
> > I then tested the vladimir.tex file
> >
> > \setupsynctex[state=start]
> >
> > \startusableMPgraphic{NumberHead}
> >   draw outlinetext.f
> >   ("\bf\namedheadnumber{chapter}")
> >   (withcolor "blue")
> >   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:
> >
> > Here is the output vladimir output
>
> I suppose this is from within Emacs.
>
> >
> > Running `ConTeXt' on `vladimir' with
> > ``PATH=/home/aragorn/context/tex/texmf-linux-64/bin:$PATH context
> > --purgeall vladimir''
> > resolvers       | trees | analyzing 'home:texmf'
> > mtx-context     | warning: no (local) file './vladimir', proceeding
> > mtx-context     | run 1: luatex
> >
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> > --jobname="vladimir"
> >
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> > --no-parse-first-line --c:currentrun=1 --c:fulljobname="./vladimir"
> > --c:input="./vladimir" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall
> > "cont-yes.mkiv"
> >
> > This is LuaTeX, Version 1.08.0 (TeX Live 2018)
> >  system commands enabled.
> >
> > resolvers       > trees > analyzing 'home:texmf'
> > open source     > level 1, order 1, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> > system          >
> > system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt:
> 2018.8.25
> > int: english/english
> > system          >
> > system          > 'cont-new.mkiv' loaded
> > open source     > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > beware: some patches loaded from cont-new.mkiv
> > close source    > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > files > jobname 'vladimir', input './vladimir', result
> > 'vladimir'
> > fonts           > latin modern fonts are not preloaded
> > languages       > language 'en' is active
> > open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> > system          > synctex functionality is enabled, expect 5-10 pct
> runtime
> > overhead!
> > fonts           > preloading latin modern fonts (second stage)
> > fonts           > 'fallback modern-designsize rm 12pt' is loaded
> > structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> > metapost        > initializing instance 'metafun:1' using format
> 'metafun'
> > and method 'default'
> > metapost        > loading 'metafun' as
> >
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> > using method 'default'
> > metapost        > initializing number mode 'scaled'
> > open source     > level 3, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> > close source    > level 3, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> > backend         > xmp > using file
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> > pages           > flushing realpage 1, userpage 1, subpage 1
> > close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
> > close source    > level 1, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> >
> > mkiv lua stats  > used config file:
> selfautoparent:/texmf/web2c/texmfcnf.lua
> > mkiv lua stats  > used cache path:
> >
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> > mkiv lua stats  > resource resolver: loadtime 0.008 seconds, 1 scans with
> > scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
> > /home/aragorn/texmf
> > mkiv lua stats  > stored bytecode data: 437 modules (0.227 sec), 93
> tables
> > (0.015 sec), 530 chunks (0.241 sec)
> > mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
> > 1323
> > mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> > mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
> > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> > mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
> > instances (re)created, 55 calls
> > mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
> > objects flushed, logfile: vladimir.synctex
> > 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: internal: 177, file: 180, direct: 2, late:
> 2,
> > function 534, total: 895
> > mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> > mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
> > objectcompresslevel 3
> > mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
> > lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> > mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> > instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
> > time 0.216 seconds
> > mkiv lua stats  > metapost: 0.001 seconds, loading: 0.017, execution:
> > 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
> > mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
> > texmf-linux-64
> > mkiv lua stats  > used engine: luatex version 1.08 with functionality
> level
> > 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> > mkiv lua stats  > control sequences: 46537 of 65536 + 100000
> > mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 81 MB
> (ctx:
> > 81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> > mkiv lua stats  > runtime: 0.538 seconds, 1 processed pages, 1 shipped
> > pages, 1.859 pages/second
> > mtx-context     | run 2: luatex
> >
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> > --jobname="vladimir"
> >
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> > --no-parse-first-line --c:currentrun=2 --c:fulljobname="./vladimir"
> > --c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall
> > "cont-yes.mkiv"
> >
> > This is LuaTeX, Version 1.08.0 (TeX Live 2018)
> >  system commands enabled.
> >
> > resolvers       > trees > analyzing 'home:texmf'
> > open source     > level 1, order 1, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> > system          >
> > system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt:
> 2018.8.25
> > int: english/english
> > system          >
> > system          > 'cont-new.mkiv' loaded
> > open source     > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > beware: some patches loaded from cont-new.mkiv
> > close source    > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > files > jobname 'vladimir', input './vladimir', result
> > 'vladimir'
> > fonts           > latin modern fonts are not preloaded
> > languages       > language 'en' is active
> > open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> > system          > synctex functionality is enabled, expect 5-10 pct
> runtime
> > overhead!
> > fonts           > preloading latin modern fonts (second stage)
> > fonts           > 'fallback modern-designsize rm 12pt' is loaded
> > structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> > metapost        > initializing instance 'metafun:1' using format
> 'metafun'
> > and method 'default'
> > metapost        > loading 'metafun' as
> >
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> > using method 'default'
> > metapost        > initializing number mode 'scaled'
> > open source     > level 3, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> > close source    > level 3, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> > backend         > xmp > using file
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> > pages           > flushing realpage 1, userpage 1, subpage 1
> > close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
> > close source    > level 1, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> >
> > mkiv lua stats  > used config file:
> selfautoparent:/texmf/web2c/texmfcnf.lua
> > mkiv lua stats  > used cache path:
> >
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> > mkiv lua stats  > resource resolver: loadtime 0.008 seconds, 1 scans with
> > scantime 0.001 seconds, 0 shared scans, 31 found files, scanned paths:
> > /home/aragorn/texmf
> > mkiv lua stats  > stored bytecode data: 437 modules (0.238 sec), 93
> tables
> > (0.015 sec), 530 chunks (0.253 sec)
> > mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
> > 1323
> > mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> > mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
> > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> > mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
> > instances (re)created, 55 calls
> > mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
> > objects flushed, logfile: vladimir.synctex
> > 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: internal: 177, file: 180, direct: 2, late:
> 2,
> > function 534, total: 895
> > mkiv lua stats  > randomizer: initialized with value 0.55005725985393
> > mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> > mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
> > objectcompresslevel 3
> > mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
> > lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> > mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> > instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
> > time 0.227 seconds
> > mkiv lua stats  > metapost: 0.001 seconds, loading: 0.017, execution:
> > 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
> > mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
> > texmf-linux-64
> > mkiv lua stats  > used engine: luatex version 1.08 with functionality
> level
> > 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> > mkiv lua stats  > control sequences: 46536 of 65536 + 100000
> > mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 81 MB
> (ctx:
> > 81 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> > mkiv lua stats  > runtime: 0.562 seconds, 1 processed pages, 1 shipped
> > pages, 1.779 pages/second
> > mtx-context     | run 3: luatex
> >
> --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> > --jobname="vladimir"
> >
> --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> > --no-parse-first-line --c:currentrun=3 --c:fulljobname="./vladimir"
> > --c:input="./vladimir" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall
> > "cont-yes.mkiv"
> >
> > This is LuaTeX, Version 1.08.0 (TeX Live 2018)
> >  system commands enabled.
> >
> > resolvers       > trees > analyzing 'home:texmf'
> > open source     > level 1, order 1, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> > system          >
> > system          > ConTeXt  ver: 2018.08.25 10:04 MKIV beta  fmt:
> 2018.8.25
> > int: english/english
> > system          >
> > system          > 'cont-new.mkiv' loaded
> > open source     > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > beware: some patches loaded from cont-new.mkiv
> > close source    > level 2, order 2, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> > system          > files > jobname 'vladimir', input './vladimir', result
> > 'vladimir'
> > fonts           > latin modern fonts are not preloaded
> > languages       > language 'en' is active
> > open source     > level 2, order 3, name '/home/aragorn/vladimir.tex'
> > system          > synctex functionality is enabled, expect 5-10 pct
> runtime
> > overhead!
> > fonts           > preloading latin modern fonts (second stage)
> > fonts           > 'fallback modern-designsize rm 12pt' is loaded
> > structure       > sectioning > chapter @ level 2 : 0.1 -> First chapter
> > metapost        > initializing instance 'metafun:1' using format
> 'metafun'
> > and method 'default'
> > metapost        > loading 'metafun' as
> >
> '/home/aragorn/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
> > using method 'default'
> > metapost        > initializing number mode 'scaled'
> > open source     > level 3, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> > close source    > level 3, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/sample/common/ward.tex'
> > backend         > xmp > using file
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> > pages           > flushing realpage 1, userpage 1, subpage 1
> > close source    > level 2, order 4, name '/home/aragorn/vladimir.tex'
> > close source    > level 1, order 4, name
> >
> '/home/aragorn/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> >
> > mkiv lua stats  > used config file:
> selfautoparent:/texmf/web2c/texmfcnf.lua
> > mkiv lua stats  > used cache path:
> >
> /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> > mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 1 scans with
> > scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths:
> > /home/aragorn/texmf
> > mkiv lua stats  > stored bytecode data: 437 modules (0.217 sec), 93
> tables
> > (0.015 sec), 530 chunks (0.232 sec)
> > mkiv lua stats  > traced context: maxstack: 1328, freed: 5, unreachable:
> > 1323
> > mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> > mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 14
> > attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> > mkiv lua stats  > node list callback tasks: 8 unique task lists, 6
> > instances (re)created, 55 calls
> > mkiv lua stats  > synctex tracing: 2 referenced files, 5 files ignored, 3
> > objects flushed, logfile: vladimir.synctex
> > 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: internal: 177, file: 180, direct: 2, late:
> 2,
> > function 534, total: 895
> > mkiv lua stats  > randomizer: resumed with value 0.55005725985393
> > mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> > mkiv lua stats  > result saved in file: vladimir.pdf, compresslevel 3,
> > objectcompresslevel 3
> > mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf,
> > lmroman10-bold.otf, lmroman10-regular.otf, lmroman12-regular.otf
> > mkiv lua stats  > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> > instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
> > time 0.221 seconds
> > mkiv lua stats  > metapost: 0.001 seconds, loading: 0.018, execution:
> > 0.001, n: 1, average: 0.019, instances: 1, luacalls: 8, memory: 2.635 M
> > mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
> > texmf-linux-64
> > mkiv lua stats  > used engine: luatex version 1.08 with functionality
> level
> > 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> > mkiv lua stats  > control sequences: 46536 of 65536 + 100000
> > mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 86 MB
> (ctx:
> > 85 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> > mkiv lua stats  > runtime: 0.536 seconds, 1 processed pages, 1 shipped
> > pages, 1.866 pages/second
> > mtx-context     | purged files: vladimir.log, vladimir.tuc
> > system          | total runtime: 2.525 seconds
> >
> >
> > TeX Output finished at Wed Aug 29 11:54:03
>
> So no error this time, how about the resulted PDF file?
>
> >> Could you show in full your ~/.emacs file? Do you use AUCTeX or bare
> >> Emacs ?
>
> > I use AUCTEX but I d not know bare Emacs
>
> I assumed that you installed auctex package, like
>
>   $ sudo pacman -S auctex
>
> and do
>
>   (load "auctex")
>
> in your ~/.emacs file. If you do not use auctex or not load it the Emacs
> will use it's own (builtin) support for LaTeX and ConTeXt file (a
> limited one).
>
> > (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)
>
> These settings looks good. Hope you resolved your problem.
>
> P.S. Why you install auctex as MELPA and don't use Archlinux package?
>
> > Thanks
> > Fabrice
>
> [...]
>
> ---
> WBR, Vladimir Lomov
>
> --
> A memorandum is written not to inform the reader, but to protect the
> writer.
>                 -- Dean Acheson
>
> ___________________________________________________________________________________
> 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: 33567 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2018-08-30 17:13 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 11:05 Emacs + latest beta 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
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

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).