Hello, I'm starting a new discussion about compiling a file with Emacs. I will try to be clear: 1. Compilation without Emacs in a terminal (Xterm): /home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex Ok! / home / aragorn / context / tex / linux-64 / bin / context Test.tex Ok! 2. Compiling with a Emacs terminal shell command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) / home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex No Ok! / home / aragorn / context / tex / tex-linux-64 / bin / context Test.tex No Ok! 3. Compiling with an Emacs terminal shell command by commenting this in my ~ / .emacs file ;; (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) / home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex Ok! / home / aragorn / context / tex / linux-64 / bin / context Test.tex Ok! 4. Compiling with the C-C C-C command by commenting this in my ~ / .emacs file ;; (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) OK ! 5. Coming with the C-c C-c command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) (that's what I do with all other files) No OK ! Thanks. My file Test.tex % macros=mkvi \setuppagenumbering[location=footer] \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 \starttitle[title={Sommaire}] \start \placelist [chapter,section,subsection] [criterium=all, alternative=c] \stop \stoptitle \startchapter[title=Espaces probabilisés] \startsubsection[title=Expérience aléatoire et univers] \stopsubsection \startsubsection[title=Événements] \stopsubsection \stopchapter \stoptext
I understand that you can not compile the document with C-c C-c in Emacs. I have the following setup of my .bashrc and .init files. BASH: export PATH=$PATH:/home/farliz/context/tex/texmf-linux-64/bin source ~/context/tex/setuptex export OSFONTDIR="~/.fonts" export TEXROOT=~/context/tex EMACS: (custom-set-variables '(ConTeXt-Mark-version "IV") '(ConTeXt-engine "luatex")) Using this setup I compile all documents with C-c C-c (AucTex mode). Cheers -- Dr. Lizardo M. Reyna Bowen Docente Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí [Dirección] Lodana, Santa Ana, Manabí, Ecuador [Móvil] +593 982924637 PGP Key: 0xa35a15b90ee64e8d
participants (2)
-
Fabrice Couvreur
-
Lizardo M. Reyna Bowen