emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] orgmode and auctex


From: Christopher Witte
Subject: Re: [O] orgmode and auctex
Date: Fri, 24 Feb 2012 09:57:44 +0100

It's been working for me so far so I think I'll stick with it.
Thanks for all your help.

Chris.

On 24 February 2012 06:34, Nick Dokos <address@hidden> wrote:
Christopher Witte <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]