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...@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.qaa21...@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 > > ___________________________________________________________________________________
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
___________________________________________________________________________________ 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 ___________________________________________________________________________________