From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Fwd: Problem of compiling a file with Emacs
Date: Thu, 2 Aug 2018 00:13:56 +0200 [thread overview]
Message-ID: <CACyK-eoiCbo3ndsVuV19WCKCjuq3NtOhe6YmOZQWGR55JNbv7g@mail.gmail.com> (raw)
In-Reply-To: <CACyK-eq5WXRRZ8Y3ZH-zzPGtg18mpPRPju=dz13SLU3HECh43w@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 16336 bytes --]
---------- Forwarded message ----------
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Date: 2018-08-02 0:07 GMT+02:00
Subject: Re: [NTG-context] Problem of compiling a file with Emacs
To: Lizardo Reyna <farliz@disroot.org>
Hello,
I tried this :
\starttext
\startMPcode
draw outlinetext.f
("\bf 1")
(withcolor "lightgray")
ysized 50pt ;
\stopMPcode
\startMPcode
pickup pencircle scaled 1mm ;
path p ; p := fullcircle scaled 3cm ;
draw p withcolor .625yellow ;
vardef do (expr str) =
save currentpicture ; picture currentpicture ;
currentpicture := thelabel(str,origin) ;
draw boundingbox currentpicture withpen pencircle scaled .5pt ;
currentpicture
enddef ;
\stopMPcode
\stoptext
The first code does not compile; I get a small rectangle instead of the
number 1.
The second code compiles correctly.
We will have tried, thank you !
Fabrice
2018-08-01 16:27 GMT+02:00 Lizardo Reyna <farliz@disroot.org>:
> The issue is very strange, the log file shows no errors. However, the
> metapost code is not showed in the pdf file when is complied from emacs
> (only in your computer).
>
> This happen with any metapost code?
>
> I can't find what is not working well.
>
>
>
> On 31/07/18 16:51, Fabrice Couvreur wrote:
> > Hi,
> > I do not think the installation is incorrect (I have nevertheless
> > reinstalled the latest version) because the compilation works perfectly
> > with this :
> >
> > [aragorn@fab ~]$ /home/aragorn/context/tex/texmf-linux-64/bin/context
> > Test.tex
> >
> > I compiled with Emacs using the standalone version by putting (setenv
> > "PATH" "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) in my
> > ~/.emacs but still without success, it's still strange.
> >
> >
> > Running `ConTeXt' on `Test' with ``context --once --texutil --nonstop
> > Test.tex''
> > resolvers | trees | analyzing 'home:texmf'
> > mtx-context | run 1: luatex
> > --fmt="/home/aragorn/context/tex/texmf-cache/luatex-cache/co
> ntext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
> > --interaction="nonstopmode" --jobname="Test"
> > --lua="/home/aragorn/context/tex/texmf-cache/luatex-cache/co
> ntext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
> > --no-parse-first-line --c:currentrun=1 --c:fulljobname="./Test.tex"
> > --c:input="./Test.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode
> > --c:once --c:texutil "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.07.27 19:12 MKIV beta fmt:
> > 2018.7.30 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 'Test', input './Test', result 'Test'
> > fonts > latin modern fonts are not preloaded
> > languages > language 'en' is active
> > open source > level 2, order 3, name '/home/aragorn/Test.tex'
> > fonts > preloading latin modern fonts (second stage)
> > fonts > 'fallback modern-designsize rm 12pt' is loaded
> > structure > sectioning > title @ level 2 : 0.0 -> Sommaire
> > 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
> > structure > sectioning > chapter @ level 2 : 0.1 -> Espaces
> > probabilisés
> > 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'
> > structure > sectioning > subsection @ level 4 : 0.1.0.1 ->
> > Expérience aléatoire et univers
> > structure > sectioning > subsection @ level 4 : 0.1.0.2 ->
> Événements
> > pages > flushing realpage 2, userpage 2
> > close source > level 2, order 3, name '/home/aragorn/Test.tex'
> > close source > level 1, order 3, name
> > '/home/aragorn/context/tex/texmf-context/tex/context/base/
> mkiv/cont-yes.mkiv'
> >
> > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/te
> xmfcnf.lua
> > mkiv lua stats > used cache path:
> > /home/aragorn/context/tex/texmf-cache/luatex-cache/context/5
> fe67e0bfe781ce0dde776fb1556f32e
> > mkiv lua stats > resource resolver: loadtime 0.007 seconds, 1 scans
> > with scantime 0.000 seconds, 0 shared scans, 29 found files, scanned
> > paths: /home/aragorn/texmf
> > mkiv lua stats > stored bytecode data: 429 modules (0.228 sec), 93
> > tables (0.014 sec), 522 chunks (0.242 sec)
> > mkiv lua stats > traced context: maxstack: 1325, freed: 4, unreachable:
> > 1321
> > mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> > mkiv lua stats > node memory usage: 2 glue, 2 kern, 3 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, 114 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: 332, file: 200, direct: 2, late:
> > 4, function 577, total: 1115 (1115 per page)
> > mkiv lua stats > loaded patterns: en::2, load time: 0.000
> > mkiv lua stats > result saved in file: Test.pdf, compresslevel 3,
> > objectcompresslevel 3
> > mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf,
> > lmroman10-regular.otf, lmroman12-regular.otf
> > mkiv lua stats > font engine: otf 3.104, afm 1.513, tfm 1.000, 9
> > instances, 4 shared in backend, 3 common vectors, 1 common hashes, load
> > time 0.307 seconds
> > mkiv lua stats > metapost: 0.001 seconds, loading: 0.101, execution:
> > 0.000, n: 1, average: 0.102, instances: 1, luacalls: 4, memory: 2.602 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: 46515 of 65536 + 100000
> > mkiv lua stats > lua properties: engine: lua 5.3, used memory: 96 MB
> > (ctx: 96 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf
> (τεχ)
> > mkiv lua stats > runtime: 0.81 seconds, 2 processed pages, 2 shipped
> > pages, 2.469 pages/second
> > system | total runtime: 1.166 seconds
> >
> >
> > TeX Output finished at Tue Jul 31 23:45:34
> >
> >
> > Fabrice
> >
> > 2018-07-31 19:04 GMT+02:00 Lizardo M. Reyna Bowen <farliz@disroot.org
> > <mailto:farliz@disroot.org>>:
> >
> > I tested the file and conTeXt works well from emacs. The problem
> > seems to be related with your conTeXt standalone installation. when
> > the file is compiled, emacs create a log buffer *... output*. You
> > could post that information to look the possible error.
> >
> > Have you tried reinstalling conTeXt?
> >
> > attached test.pdf
> >
> >
> > On 07/31/2018 04:43 AM, Fabrice Couvreur wrote:
> >> With (setenv "PATH"
> >> "/home/aragorn/texlive/2018/bin/x86_64-linux/context:$PATH" t) It
> >> works properly with C-c C-c
> >>
> >>
> >> With (setenv "PATH"
> >> "/home/aragorn/context/tex/texmf-linux-64/bin:$PATH" t) It does
> >> not work with C-c C-c
> >>
> >> The compilation is however correct by using a terminal without
> >> Emacs from the standalone version
> >> Fabrice
> >>
> >> 2018-07-31 10:18 GMT+02:00 Fabrice Couvreur
> >> <fabrice1.couvreur@gmail.com <mailto:fabrice1.couvreur@gmail.com>>:
> >>
> >> Hello,
> >> I did the same thing as you, but nothing changes. Have you
> >> tested the file? The expected result is to have the title of
> >> the chapter with the chapter number in large and light gray
> >> color. All compiles except the macro that allows to have the
> >> chapter number; I get a small rectangle instead.
> >> Fabrice
> >>
> >> 2018-07-30 16:02 GMT+02:00 Lizardo Reyna <farliz@disroot.org
> >> <mailto:farliz@disroot.org>>:
> >>
> >>
> >> I had a similar issue in emacs few months ago. I use an
> >> Ubuntu based
> >> GNU/Linux distribution.
> >>
> >> My solution was start a new terminal to execute the
> >> commands in .bashrc
> >> file. When it works, a message will appear in the top of
> >> the terminal.
> >> "Setting "/home/farliz/context/tex" as ConTeXt root."
> >>
> >> Then execute emacs from that terminal typing $ emacs &.
> >> This was the
> >> only way I got run conTeXt from emacs.
> >>
> >> I'm not advanced GNU/Linux user, but there are three
> >> configuration
> >> files when login; .bashrc, .bash_profile, and .profile. I
> >> don't know why
> >> this files were not execute automatically when I login, so
> >> the path to
> >> conTeXt bin is not added and setuptex file is not execute.
> >> For this
> >> reason it was necessary to start a new terminal.
> >>
> >> I have my system upgraded and now I don't have problem
> >> with that.
> >>
> >> Regards
> >>
> >>
> >> On 30/07/18 05:45, Fabrice Couvreur wrote:
> >> > Hi,
> >> > I made the changes that you recommend, but it does not
> work
> >> >
> >> > ./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")
> >> > '(custom-enabled-themes (quote (leuven)))
> >> > '(package-selected-packages (quote (nova-theme auctex))))
> >> > (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)
> >> > (package-initialize))
> >> >
> >> > ;;(setenv "PATH"
> >> "/home/aragorn/context/tex/texmf-linux-64/bin/:$PATH" t)
> >> >
> >> >
> >> > (setq ConTeXt-mode-hook
> >> > (lambda () (setq TeX-command-extra-options
> >> "--purgeall")))
> >> >
> >> > (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)
> >> >
> >> >
> >> > ./bashrc
> >> >
> >> > export
> >> PATH=$PATH:/home/aragorn/context/tex/texmf-linux-64/bin
> >> > source ~/context/tex/setuptex
> >> > export TEXROOT=/home/aragorn/context/tex
> >> > export
> >> PATH=$PATH:/home/aragorn/texlive/2018/bin/x86_64-linux
> >> >
> >> >
> >> >
> >> >
> >> > 2018-07-30 4:16 GMT+02:00 Lizardo M. Reyna Bowen
> >> <farliz@disroot.org <mailto:farliz@disroot.org>
> >> > <mailto:farliz@disroot.org <mailto:farliz@disroot.org>>>:
> >> >
> >> > 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
> >> >
> >> >
> >> >
> >>
> >> --
> >> Dr. Lizardo M. Reyna Bowen
> >> Profesor
> >> 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
> >>
> >>
> >>
> >
> > --
> > 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
> >
> >
>
> --
> Dr. Lizardo M. Reyna Bowen
> Profesor
> 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
>
>
[-- Attachment #1.2: Type: text/html, Size: 24797 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
___________________________________________________________________________________
prev parent reply other threads:[~2018-08-01 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 23:13 Fabrice Couvreur
2018-07-30 2:16 ` Lizardo M. Reyna Bowen
[not found] ` <CACyK-eqH_Bjj1y=+eAdLig9sAWcwySVK=v-dKzg9Crzna7wUQA@mail.gmail.com>
[not found] ` <40e9844f-dc59-3253-065d-f35293fe09e2@disroot.org>
[not found] ` <CACyK-ep9q-6rpjOYHUWfc4G68rkddtLOnat0fnct8YZfWRoFFg@mail.gmail.com>
[not found] ` <CACyK-eq+fS7AGwDEi5UiS7d+v89J4Us=uB6mQGWm0oX-afguNg@mail.gmail.com>
2018-07-31 17:04 ` Lizardo M. Reyna Bowen
[not found] ` <CACyK-eo_SFaE3OyuirKqQE8+eUnsHqpy02P0BXoE2McxLgN7oA@mail.gmail.com>
2018-08-01 14:27 ` Lizardo Reyna
[not found] ` <CACyK-eq5WXRRZ8Y3ZH-zzPGtg18mpPRPju=dz13SLU3HECh43w@mail.gmail.com>
2018-08-01 22:13 ` Fabrice Couvreur [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACyK-eoiCbo3ndsVuV19WCKCjuq3NtOhe6YmOZQWGR55JNbv7g@mail.gmail.com \
--to=fabrice1.couvreur@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).