# Tag Info

19

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: (org-reftex-citation) ...

7

The essential part is to load latex instead of tex, see the first line. (also I did some small cleanups) (use-package latex :mode ("\\.tex\\'" . latex-mode) :bind (:map LaTeX-mode-map ("M-<delete>" . TeX-remove-macro) ("C-c C-r" . reftex-query-replace-document) ("C-c C-g" . reftex-grep-document)) :init ...

6

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/...

5

You can do this with helm-bibtex, available through MELPA or GitHub. Just use C-SPC to select entries and then TAB and "insert citation".

4

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',...

3

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 ...

3

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.

3

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.

2

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: (require 'reftex-dcr) (defun my-reftex-view-pandoc-cite () "View ...

2

@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: (eval-...

2

Try this (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. Update: As suggested in the comments, it might be a little safer to use the ...

2

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") Documentation: Flags governing label insertion. First flag DERIVE, second flag PROMPT. If DERIVE is t, RefTeX will try to derive a sensible label from context. A section ...

2

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'" :group 'reftex-citation-support :type '(repeat string)) (defun reftex-global-bibfile-list () "Just returns reftex-global-bibfile-list'. Can be used as ...

1

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.

1

Partial answer: 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. ...

1

In this case [ ] any means press the space key.

1

Reftex has this feature. It's called reftex-view-crossref. See the manual about this here. It is invoked by pressing C-c & while your pointer is on the argument of the \ref{argument}.

1

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 () (setq-local reftex-cite-format '((?\C-m . "cite:%l") (?f . "footcite:%l") (?a . ...

1

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.

1

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. e.g., main.tex: \documentclass{article} \include{snippeds} \begin{document} \mysnippedA'' is a macro. I have a second macro: \mysnippedB. \end{document} snippeds.tex: \newcommand{\mysnippedA}{ ...

1

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.

1

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? ")) (goto-char (point-max)) (unless (bolp) (newline)) ...

Only top voted, non community-wiki answers of a minimum length are eligible