From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Question about reftex mode in org-mode
Date: Sat, 06 Apr 2013 23:55:19 +0200 [thread overview]
Message-ID: <87hajjcojc.fsf@pank.iue.private> (raw)
In-Reply-To: 515DC4AA.6050401@sift.info
"Robert P. Goldman" <rpgoldman@sift.info> writes:
> Quite some time ago, I incorporated reftex into my use of org mode, per
> a suggestion on Worg:
>
> ;;;---------------------------------------------------------------------------
> ;;; Use reftex with org-mode, per Worg
> ;;;---------------------------------------------------------------------------
>
> (autoload 'turn-on-reftx "reftex" "Turn on RefTeX mode." t)
> (defun org-mode-reftex-setup ()
> (turn-on-reftex))
> (add-hook 'org-mode-hook 'org-mode-reftex-setup)
>
> Now I find that this has a bad behavior at least with Aquamacs: it can
> cause attempts to use the menu bar to be interrupted by a cryptic popup
> file selector that says "Master file:"
>
> This seems to be reftex trying to set a value for TeX-master.
>
> So maybe reftex is unhappy when it's not invoked inside of AucTeX (where
> TeX-master is defined and set).
>
> Anyone else seen this? Have a solution (e.g., have org files assume
> that TeX-master is t)?
I haven't seen it. This is my setup:
#+begin_src emacs-lisp
(setq reftex-default-bibliography
(quote ("~/documents/literature/lit.bib")))
(defun org-mode-reftex-setup ()
(load-library "reftex")
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all))
(make-local-variable 'reftex-cite-format)
(setq reftex-cite-format 'org)
(define-key org-mode-map (kbd "C-c )") 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)
(eval-after-load 'reftex-vars
'(progn
(add-to-list 'reftex-cite-format-builtin
'(org "Org-mode citation"
((?\C-m . "[[cite:%l]]")
(?t . "[[textcite:%l]]")
(?p . "[[parencite:%l]]")
(?s . "[[citepos:%l]]")
(?a . "[[citeauthor:%l]]")
(?y . "[[citeyear:%l]]")
(?n . "%l")
;; the following depends on org-link-search-must-match-exact-headline
(?o . "[[file:~/documents/literature/lit.org::*%t][%2a (%y). %T]]"))))))
#+end_src
--
A page of history is worth a volume of logic
prev parent reply other threads:[~2013-04-06 21:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 18:21 Question about reftex mode in org-mode Robert P. Goldman
2013-04-05 23:10 ` Bastien
2013-04-06 21:55 ` Rasmus [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
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=87hajjcojc.fsf@pank.iue.private \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/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).