ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Ash <mash@econs.umass.edu>
To: ntg-context@ntg.nl
Subject: Re: Configure AUCTeX to run context not texec
Date: Fri, 8 Nov 2013 16:03:40 -0500	[thread overview]
Message-ID: <CAKTWfUMrxzkj_yA1xLD8p2L3RkegNZLf1+7-0p5j9a=cmcMs_w@mail.gmail.com> (raw)
In-Reply-To: <CAKTWfUMYw2a21amDyUQe=QxJWMyf627yvwrYN0-oaH4Uh+nszg@mail.gmail.com>


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

Thank you very much for the advice on configuring AUCTeX to compile context
files.

Inserting the following snippet in my .emacs (emacs configuration) file
worked.

--8<---------------cut here---------------start------------->8---
(eval-after-load 'tex
  '(add-to-list
      'TeX-command-list
      '("ConTeXt" "context --nonstopmode %t"
        TeX-run-TeX nil (context-mode) :help "Run ConTeXt")))
--8<---------------cut here---------------end--------------->8---

This fix is imperfect because even though context runs properly, AUCTeX
reports "ConTeXt: problems after [0] pages"

AUCTeX doesn't believe that the file has been compiled and C-c C-c offers
to run context again. It is necessary to select "View"

Some googling suggests that the return codes from context are not properly
interpreted by AUCTeX.  I'm not sure if this is a context
non-standardization or an AUCTeX problem.  thoughts?

Best,
Michael




On Fri, Nov 8, 2013 at 12:47 PM, Michael Ash <mash@econs.umass.edu> wrote:

> Dear all,
>
> I have a working version of context
>
> mash-laptop:~$ context --version
>
> mtx-context     | ConTeXt Process Management 0.60
> mtx-context     |
> mtx-context     | main context file:
> /usr/share/texmf/tex/context/base/context.mkiv
> mtx-context     | current version: 2013.11.07 15:28
>
>
> However, I edit files in emacs/AUCTeX and the compile command "C-c C-c"
> calls "texexec" instead of "context" and so can't compile in emacs.  Does
> anyone know how to change the command from "texexec" to "context" in
> emacs/AUCTeX?
>
> Thanks.
>
> Best,
> Michael
>
>
>
> --
> Michael Ash, Chair, Department of Economics
> Professor of Economics and Public Policy
> University of Massachusetts Amherst
> Amherst, MA 01003
> Email mash@econs.umass.edu
> Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash
>



-- 
Michael Ash, Chair, Department of Economics
Professor of Economics and Public Policy
University of Massachusetts Amherst
Amherst, MA 01003
Email mash@econs.umass.edu
Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash

[-- Attachment #1.2: Type: text/html, Size: 4625 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2013-11-08 21:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08 17:47 Michael Ash
2013-11-08 17:49 ` Peter Münster
2013-11-08 18:19 ` Roland Thiers
2013-11-08 21:03 ` Michael Ash [this message]
2013-11-08 23:14   ` Peter Münster
2014-06-27  7:16     ` Gour
2014-06-27  8:13       ` Peter Münster
2013-11-09  2:09   ` Jean Magnan de Bornier
2013-11-09 10:13     ` Peter Münster
2013-11-09 14:32       ` Jean Magnan de Bornier
2013-11-10 21:38         ` Peter Münster
2013-11-11  8:10           ` Jean Magnan de Bornier
2013-11-11 22:36             ` Peter Münster
2013-11-12  7:21               ` Jean Magnan de Bornier

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='CAKTWfUMrxzkj_yA1xLD8p2L3RkegNZLf1+7-0p5j9a=cmcMs_w@mail.gmail.com' \
    --to=mash@econs.umass.edu \
    --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).