Adding a line like the following is enough to tell org-mode which .bib file to consult:
#+BIBLIOGRAPHY: refs plain
refs is the name of the BibTeX file (.bib extension omitted), and plain is the bibliographystyle.
You can then call org-reftex-citation (bound to C-c C-x [ by default) to insert references.
From the documentation:
The essential part is to load latex instead of tex, see the first line.
(also I did some small cleanups)
("\\.tex\\'" . latex-mode)
("M-<delete>" . TeX-remove-macro)
("C-c C-r" . reftex-query-replace-document)
("C-c C-g" . reftex-grep-document))
I think you need to put the local variables in two places, which is the org file and the bib file. The issue is that the notes functions are called while the bibtex buffer is active, so the local variables in the org file do not affect them.
In my org file I put something like
* File Local Variables
# Local Variables:
# org-ref-bibliography-notes: "/Users/...
It seems that ox-bibtex is not included in the latest org package (8.2.10-34-gc41bbc-elpa). So I searched it online and put into directory /org/lisp/ once downloaded. But I ran into the following error when trying to do an export involving some bibtex.
Symbol's function definition is void: org-element-insert-before
Then I check the file 'org-element.el',...
This feature should work out-of-the-box, provided that TeX-master is correctly set. The format of that variable is described at (info "(auctex)Multifile"). In particular, in the secondary files TeX-master should be a string with the relative path to the master file, without extension. Thus, if your master file is called main.tex and resides in the same ...
reftex-cleveref-cref is defined on the fly in reftex-ref.el from the contents of reftex-ref-style-alist. No autoload is associated with it. So it is defined only when reftex-ref.el is loaded which, in turn, is provoked by the autoload cookie on reftex-reference.
reftex-using-biblatex-p is a simple function that finds whether the tex package biblatex is used by searching the text. The error may occur when the org file to be parsed is very large. So you can try a small file, or disable this function temporarily by (fset 'reftex-using-biblatex-p 'ignore), and see if reftex works.
Unfortunately, the format of citations is hard-coded as the latex one in reftex source code (see function reftex-view-crossref in file reftex-dcr.el), so there's no easy way to change it. However, if what you need is just to be able to look up the citation at point, the following does it:
(defun my-reftex-view-pandoc-cite ()
@Tyler suggested that Helm could be simply disabled for reftex-citation. After a bit of digging, I found that this can be done by modifying the helm-completing-read-handlers-alist variable. I would recommend reading the documentation on it (using C-h v helm-completing-read-handlers-alist), but adding this line to you init.el file will do the trick:
(push '("frametitle" 2) TeX-outline-extra)
See the documentation for TeX-outline-extra. The first element of the list being added is a regexp and the second is the imenu level. You can also see LaTeX-section-list for the default levels that imenu uses for latex.
As suggested in the comments, it might be a little safer to use the ...
RefTeX has a variable called reftex-insert-label-flags. From the docstring:
reftex-insert-label-flags is a variable defined in reftex-vars.el.
Its value is ("s" "sft")
Flags governing label insertion. First flag DERIVE, second flag
If DERIVE is t, RefTeX will try to derive a sensible label from
context. A section ...
You can locally override the behavior of reftex-get-bibfile-list to return the global bibliographies.
(defcustom reftex-global-bibfile-list '()
"List of global bibliographies for `reftex-mode'"
:type '(repeat string))
(defun reftex-global-bibfile-list ()
"Just returns `reftex-global-bibfile-list'.
Can be used as ...
The regular expression b* matches the empty string, thus the search for matching entries in the bib file won't make any progress.
I have fixed that in emacs' master branch so it will be in 25.1. With that, you get an error when you try searching for bib entries with a regular expression which matches the empty string.
auctex (not bundled with emacs) is the definitive package for writing and compiling LaTeX documents. It is truly excellent and can be installed from ELPA easily.
reftex (also bundled with emacs) is for creating and referring to all kinds of labels and citations in those documents. It insinuates well into auctex and is equally awesome.
Maybe you can use a mode hook function to set buffer-local variables. e.g. use setq-local in the hook function. Here is an example of customizing it for org-mode.
(add-hook 'org-mode-hook (lambda ()
'((?\C-m . "cite:%l")
(?f . "footcite:%l")
(?a . ...
The indentation is set by variable reftex-level-indent. Its default value is 2, that is why indentation is 1,3,5 etc.
-- User Option: reftex-level-indent
Number of spaces to be used for indentation per section level.
You may simply set it to 0.
This way, all levels are indented at 1, I don't know how to get rid of the remaining initial space.
This might do what you want: store your 'snippeds' in a .tex file, and use use AucTex's auto-complete to look them up for you.
``\mysnippedA'' is a macro. I have a second macro: \mysnippedB.
org-ref (https://github.com/jkitchin/org-ref) handles this nicely in org-mode, and it recognizes \label, #+label, label: #+tblname, and more that can be used as a ref in LaTeX.
org-ref uses helm and helm-bibtex as completion tools by default, but it is possible to use reftex too.
Inserting a new heading is actually done by org-link-search. The
relevant part of the function (currently) looks like this:
((and (not org-link-search-inhibit-query)
(eq org-link-search-must-match-exact-headline 'query-to-create)
(y-or-n-p "No match - create this as a new heading? "))
(unless (bolp) (newline))