ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Roland Thiers <roland.thiers@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Configure AUCTeX to run context not texec
Date: Fri, 8 Nov 2013 19:19:16 +0100	[thread overview]
Message-ID: <03557B29-FC7D-4144-AFE7-B82454706D19@gmail.com> (raw)
In-Reply-To: <CAKTWfUMYw2a21amDyUQe=QxJWMyf627yvwrYN0-oaH4Uh+nszg@mail.gmail.com>


Le 8 nov. 2013 à 18:47, Michael Ash a écrit :

> 
> 
>  Does anyone know how to change the command from "texexec" to "context" in emacs/AUCTeX?
> 
I have that  in my preference.el (I use aquamacs) :
--8<---------------cut here---------------start------------->8---
(defun rol-context () 
(interactive)
   (save-current-buffer
(save-buffer)
(TeX-save-document "")
(setq TeX-PDF-mode nil)
 (let ((nomdufichiersansextension (file-name-sans-extension (buffer-file-name))))

    (shell-command (format "context --autopdf %s.tex" nomdufichiersansextension))
(TeX-view))))
--8<---------------cut here---------------end--------------->8---

I have bound this function rol-context to the key "F7", it works fine but it's definitely non optimal !
Regards, 
Roland 
(math teacher in a high school)


___________________________________________________________________________________
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 18:19 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 [this message]
2013-11-08 21:03 ` Michael Ash
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=03557B29-FC7D-4144-AFE7-B82454706D19@gmail.com \
    --to=roland.thiers@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).