emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Christopher Witte <chris@witte.net.au>
Cc: Thomas Alexander Gerds <tagteam@sund.ku.dk>,
	nicholas.dokos@hp.com, Org Mode <emacs-orgmode@gnu.org>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: orgmode and auctex
Date: Fri, 24 Feb 2012 00:34:37 -0500	[thread overview]
Message-ID: <6358.1330061677@alphaville> (raw)
In-Reply-To: Message from Christopher Witte <chris@witte.net.au> of "Mon\, 20 Feb 2012 13\:57\:37 +0100." <CAALnB3GRy9kx9rRrYoKu8oa9nJP_9+AKEa26FV=ARkDVYz3Frw@mail.gmail.com>

Christopher Witte <chris@witte.net.au> wrote:

> Hi all,
> 
> (setq TeX-auto-save t)
> (setq TeX-parse-self t)
> (setq-default TeX-master nil)
> (make-variable-buffer-local 'TeX-master) ;; I think this is need because the variable is not buffer
> local until Auctex is active
> 
> (defun org-mode-reftex-setup ()
>   (setq TeX-master t)
>   (load-library "reftex")
>   (and (buffer-file-name)
>        (file-exists-p (buffer-file-name))
>        (progn
>      (reftex-parse-all)
>      (reftex-set-cite-format "[[cite:%l][%l]]")))
>   (define-key org-mode-map (kbd "C-c )") 'reftex-citation)
>   (define-key org-mode-map (kbd "C-c (") 'org-mode-reftex-search))
> (add-hook 'org-mode-hook 'org-mode-reftex-setup)
> 
> This appears to work for me.  This should make the buffer local version of TeX-master "t" for all
> org buffer and keep it the default otherwise.  Is this a good way to work around this problem?
> 

I think so - at least, I can't think of a better way.

Nick

  reply	other threads:[~2012-02-24  5:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 17:55 orgmode and auctex Christopher Witte
2012-02-07 18:15 ` Nick Dokos
2012-02-09 16:42   ` Christopher Witte
2012-02-09 19:59     ` Thomas Alexander Gerds
2012-02-09 20:08       ` Nick Dokos
2012-02-11 17:21         ` Christopher Witte
2012-02-11 17:33           ` Nick Dokos
2012-02-11 17:40         ` Carsten Dominik
2012-02-11 18:11           ` Nick Dokos
2012-02-20 12:57             ` Christopher Witte
2012-02-24  5:34               ` Nick Dokos [this message]
2012-02-24  8:57                 ` Christopher Witte

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6358.1330061677@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=carsten.dominik@gmail.com \
    --cc=chris@witte.net.au \
    --cc=emacs-orgmode@gnu.org \
    --cc=tagteam@sund.ku.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).