Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [reftex-mode]

Reftex mode is a minor mode with distinct support for `\label`, `\ref` and `\cite` in LaTeX.

Filter by
Sorted by
Tagged with
1 vote
1 answer
76 views

Making cleveref insertions globally available

I keep all my commonly used latex packages in one custom package, including the referencing package cleveref. However, reftex is configured to only provide insertion of cleveref referencing commands ...
Alexander Praehauser's user avatar
2 votes
1 answer
88 views

RefTeX reftex-citation not showing all entries and takes preceding word as argument

After initial setting up emacs with AuCTeX and RefTeX everything worked fine. may not be the problem, see edit below Now, for a porject I tried setting up RefTeX to work with markdown-mode with this ...
lukeflo's user avatar
  • 195
0 votes
1 answer
43 views

reftex customizing tags for cleveref

Is it possible to customize reftex so that for an equation (when I type "e" after invoking reftex) I get \eqref{eq:blah} but for anything else (theorem, lemma) I want to get \vref{thm:abc}. ...
Vikram's user avatar
  • 337
4 votes
1 answer
135 views

Company Reftex slow when searching for labels

I am writing on a large LaTeX Document using Emacs with AUCTeX, RefTeX and Company for autocompletion. RefTeX for citations is working fine and finds my bibliography entries really fast. However, when ...
ls.ptr's user avatar
  • 61
1 vote
1 answer
208 views

How to make Org writing similar to AUCTeX?

I'm deciding whether to use AUCTeX or Org to write my Master's thesis. I tried Org mode with the new Org-cite + Citar package, and I'm very happy about it. Then, trying AUCTeX, I found its RefTeX ...
Alessandro Bertulli's user avatar
3 votes
1 answer
88 views

How to debug reftex not working with multiple files

I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
hsgreenside's user avatar
0 votes
2 answers
221 views

How do I add a new bibtex entry while working in Emacs?

I am attempting to create bibtex entries of any sort (especially WWW links) while writing a paper on Emacs without having to get out of the buffer. I would need to know how to create on the fly these ...
Emmanuel Goldstein's user avatar
0 votes
1 answer
189 views

reftex does not recognize references even though default bibliography file is defined

reftex-citep does not suggest any possible completions, even though the variable reftex-default-bibliography is set to the correct bibtex file. What else do I need to do to get reftex to detect the ...
soap's user avatar
  • 103
2 votes
0 answers
93 views

custom labels of environment in auctex

I want to customize label of an environment I've created. I use Emacs/AucTex/Reftex. I've customized my .emacs file and it works well so far to automatically create a label when inserting my ...
Guillaume's user avatar
  • 189
2 votes
1 answer
84 views

How to use labels inserted in .dtx files?

I wonder if there is a way to have reftex print and use labels inserted in a .dtx file from the TOC menu. As every line in a .dtx file begins with %, reftex seems unable to display labels. For ...
Robert Alessi's user avatar
1 vote
2 answers
104 views

Org-ref-like interface in reftex

I am currently typesetting my Ph.D. thesis with AucTeX and RefTeX and I would like to be able to interact with my citations in a way that is similar to what happens in org-modewith org-refe.g. being ...
Muril's user avatar
  • 11
1 vote
1 answer
70 views

reftex select buffer

I use auctex/reftex with pdftools for preview. I use a vertical split C-x 3 of the emacs frame with the left buffer being the pdf preview and the right buffer being the latex file. When I invoke ...
Vikram's user avatar
  • 337
2 votes
0 answers
95 views

Custom folding citations in AUCTeX

By default, only \cite is folded by AUCTeX. If you want other citation commands to be folded as well, you have to add them to LaTeX-fold-macro-spec-list manually. For example, with (push '("[nc]&...
Vitus Schäfftlein's user avatar
0 votes
0 answers
43 views

RefTex theorem-type environments

Following discussions here and documentation here, I tried to customize my init.el in other to add my own way of managine envs. I put up this code (setq reftex-label-alist '(("theorem" ...
PinkCollins's user avatar
0 votes
0 answers
37 views

Stop reftex-toc from opening a new window if only one window is currently open

Currently when I choose an entry from RefTex's table of contents (opened using the C-c = keybinding), if I only have a single window open, the chosen file is opened in a new window to the right of the ...
Noel's user avatar
  • 1
0 votes
1 answer
110 views

Get different RefTeX references for Eq. vs. Equation, Fig. vs. Figure

When invoking RefTeX to generate LaTeX code for a reference (to an equation, figure) I need a short unbreakable space (LaTeX: \,) when the abbreviation is used (Eq.\,\ref{}, Fig.\,\ref{}) and a long ...
AstroFloyd's user avatar
1 vote
1 answer
351 views

can't get company-reftex-labels to work properly

I have tried to set the company-backend as described on their github page and did not end up with the sweet resulting pop-up completion, in ref as in their image My image: their image: What am I ...
Jakob Guldberg Aaes's user avatar
0 votes
0 answers
200 views

"#+BIBLIOGRAPHY" tag not working

I have a simple file looking like this, #+TITLE: Title Here #+AUTHOR: Author Name Citation here [[cite:key_name]] #+BIBLIOGRAPHY: refs plain In the same directory I have refs.bib, @MISC {key_name, ...
scribe's user avatar
  • 1,035
0 votes
1 answer
185 views

bibtex customize sort-field in bibtex-entry-format

I am trying to customize the behavior of M-x bibtex-entry-format function to reformat a bibtex entry in a bib file. I want that the various fields in an entry are sorted to a given ordering. In my ...
PinkCollins's user avatar
1 vote
2 answers
104 views

Omit ~ before the \ref command (with RefTeX+AUCTeX)

The default behaviour of C-c ) is to insert \ref and prefix it with~. I don't need the tilde after \S (i.e. I need the output to look like \S\ref{label}, rather than \S~\ref{label}). Is there a short ...
Jabot's user avatar
  • 15
1 vote
1 answer
99 views

Additional key binding for RefTeX to add new bibliography entry

Nowadays I often insert @Online entries into my bibliography files. Unfortunately, the RefTeX doesn't have the Online-Entry bound to any key by default. I tried to add something like ;; I often use ...
Jan's user avatar
  • 373
1 vote
0 answers
118 views

RefTeX won't find bibliography file

I asked this question already on TeX.SE, but I think, it is more related to Emacs.SE. I am using the latest Aquamacs on MacOS (and I am wondering why all these emacs-related questions are posted in ...
Jan's user avatar
  • 373
1 vote
0 answers
98 views

How to instruct reftex to automatically pick the .bib file in local directory?

Whenever I press C-c [ in the main.tex file I get the message No valid bibliography in this document, and no default available. How do I set the default? Using helm-bibtex seems way to easy, using the ...
Kirk Walla's user avatar
1 vote
1 answer
110 views

Label format in RefTex

I am trying to configure RefTeX/AUCTeX so that the smart label-creation, invoked with C-c ( has the following sets of behaviors: for \section-type labels, i.e., for \section, \subsection, etc. ...
Bernhard's user avatar
  • 365
2 votes
0 answers
160 views

AUCTeX: 'reftex-cleveref-cref' inserts '\eqref' instead of '\cref' for equations

When I run 'reftex-cleveref-cref', which is supposed to insert a '\cref' command in my LaTeX file, I get the expected behaviour for figures and sections, but not for equations: I get the '\eqref' ...
Giuseppe's user avatar
  • 455
0 votes
1 answer
93 views

AUCTeX: Command 'reftex-cleveref-cref' not recognized before 'reftex-reference' is run

I have a strange behavior in AUCTeX with RefTeX: the command 'reftex-reference' (C-c )) needs to be run before the command 'reftex-cleveref-cref' gets recognized, on a newly-started emacs session. In ...
Giuseppe's user avatar
  • 455
1 vote
1 answer
96 views

How to fix reftex-toc numbering?

I have used reftex-toc for a while without problem, but a while back it started to show the wrong numbering in the toc-buffer. I don't think I have changed any settings. The latex-output is not ...
trmdttr's user avatar
  • 253
1 vote
0 answers
159 views

Automatically loading a bibliography file depending on buffer filename

I use org-mode to write a paper, with RefTeX as minor-mode to insert quotations from a BibTeX (.bib) file. RefTeX needs to be told which .bib file to use. This is done by assigning a value to reftex-...
henning no longer feeds AI's user avatar
2 votes
1 answer
279 views

What is the difference or functionality between the available tex packages enumrated below

sorry to disturb you. I am trying to migrate all the workflow of writing tex files and managing citations into emacs but I'm completely lost by the overwhelmed plethora of packages and I'm not sure ...
Kirk Walla's user avatar
0 votes
1 answer
60 views

reftex (select a label type)

When I use Reftex to insert a reference (i.e., M-x reftex-reference or C-c )), I am prompted to select a label type in a new window: SELECT A LABEL TYPE: -------------------- [ ] any [e] ...
Bruno's user avatar
  • 1
2 votes
1 answer
345 views

Jump to equation by label in auctex

While writing latex I sometimes have to reference an equation. I do that using reftex-reference (bound to C-c ( by default). However, I sometimes want to copy some text from the equation text I just ...
Tohiko's user avatar
  • 1,649
1 vote
0 answers
38 views

Can I generate and show two table of contents with reftex simultaneously?

I work in a main tex-document, where I use reftex to display the table of contents. But I also have another buffer where I want to show a toc. Is this possible? Now the *toc*-buffer is overtaken ...
trmdttr's user avatar
  • 253
4 votes
1 answer
130 views

Evil keybindings in reftex-toc

I would like to bind j to reftex-toc-next and k to reftex-toc-previous whilst in a reftex-toc buffer. According to the documentation, the keymap active in *toc* buffers is reftex-toc-map. I'm using ...
red's user avatar
  • 53
0 votes
2 answers
135 views

lose reftex-isearch-minor-mode after refresh

I want to activate reftex-isearch-minor-mode and tried the solution in this post offered by giordano, (add-hook 'TeX-mode-hook (lambda () (reftex-isearch-minor-mode))) ; for AUCTeX it works when I ...
davyjones's user avatar
  • 127
1 vote
1 answer
432 views

Use RefTeX to manage a global bib database

I would like to have the following workflow. First, I create a global bib file, which contains all bibliography entries that I may use across all projects. Then, for each project, I can create an ...
xuhdev's user avatar
  • 1,921
8 votes
1 answer
5k views

Emacs setup for LaTeX after (use-package) verse

How to make this configuration file work with use-package with regard to AucTeX, RefTeX and LaTeX. I usually write latex rahter than pure tex documents. Current Working Emacs Configuration (load "...
doctorate's user avatar
  • 1,829
1 vote
0 answers
178 views

How to debug a(n) .emacs that doesn't work correctly, but also doesn't throw any errors? [closed]

I currently have an Emacs/AucTeX setup where emacs --debug-init doesn't throw any errors, but things still don't work as expected. This being the case, I don't really know how to debug my .emacs file ...
Lustique's user avatar
  • 119
8 votes
1 answer
2k views

Org-Ref: Managing multiple projects, each with own notes.org files and bibtex-pdfs folders

When using org-ref, the bibliography:ref.bib directive in the notes.org file can be used to direct it to the corresponding ref.bib bibliography. Is there a similar such directive or approach to enable ...
nyameko's user avatar
  • 555
1 vote
1 answer
195 views

How to add Beamer `\frametitle` to `imenu`?

I know that there is RefTeX with its TOC, and I know how to include \frametitle there (see here). Nevertheless, I would like to see \frametitle also appear in imenu. What would be the minimal way to ...
Timm's user avatar
  • 1,589
0 votes
1 answer
89 views

Change reftex-cite-format based on file type

I'm currently trying to transition my personal research writing from straight LaTeX to Rmarkdown to allow me to do better reproducible research, and I've run into one little snag. Currently I have ...
Ryan's user avatar
  • 4,049
0 votes
1 answer
54 views

Can I remove the indentation in {reftex-toc}?

I am new user of auctex/reftex and the reftex-toc-function is brilliant. However, on my small screen a lot of space is wasted when I have a document with only chapters, or even sections. (I put the ...
trmdttr's user avatar
  • 253
2 votes
1 answer
442 views

Browse and search text snippets in emacs and insert them as LaTeX input

Suppose I have a lot of small text snippets (including some LaTeX-code). Now I want to create a LaTeX document with emacs which includes some of the text snippets. I know yasnippet which can expand ...
student's user avatar
  • 1,109
1 vote
0 answers
52 views

Reftex compatibility with newclude

I want to use RefTex with newclude. In particular I want Reftex to recognize \include* as a legitimate include file command. I've already added include* in Reftex include file command but it doesn't ...
Gonenc's user avatar
  • 111
1 vote
0 answers
19 views

Overlapping table of figure (and tables) label when running auctex from a non master file

The problem is: When I run C-c C-a (TeX-command-run-all) from the master file it goes well and produce the following output, but then, when I edit other .tex file (abstract.tex for instance) and run ...
Nasser Alkmim's user avatar
2 votes
1 answer
416 views

Make reftex-toc work with multiple files

I'm using Emacs 24.5 with AUCTeX and RefTex to edit a multi-file project. It consists of one main file with %%% TeX-master: t to mark as master. The 'slave' files all have %%% TeX-master: main to link ...
filipeamoreira's user avatar
0 votes
1 answer
66 views

emacs reftex hangs up while Scanning bibliography database

I've a strange reftex-issue. When i insert a cite from a bib-file, emacs hangs up. I've tried this on two different machines: Windows 7 and on Mac OS X. (GNU Emacs 24.5.1) Insert a cite: Open emacs, ...
user9584's user avatar
11 votes
2 answers
1k views

RefTex searching for multiple articles with Helm

I recently started using Helm and am really enjoying it. However, I use emacs to write a lot of LaTeX. When I cite articles, I often need to cite several in the same cite macro - I could search my ...
user2178117's user avatar
1 vote
0 answers
116 views

How can I print a full reference using reftex?

I would like to embedd full references of BibTeX entries in selected sections of my org-mode files or at least have the ability to quickly open the full reference in a new buffer. How can I do that? ...
Christoph's user avatar
  • 399
5 votes
1 answer
416 views

Can RefTeX be used with Org #+LABEL:?

RefTeX doesn't support Org #+LABEL: syntax by default, but can it be customized to do so? For example, if I have #+LABEL: foo, I'd like to be able to insert a reference to that label using RefTeX. I'...
mankoff's user avatar
  • 4,226
3 votes
1 answer
326 views

Make reftex-mode work with a different citation format

By default reftex-mode recognizes LaTeX-like citations, which have a format like \cite{Smith15}. (Locating the cursor above a reference shows a description of it in the mini-buffer and pressing C-&...
scaramouche's user avatar
  • 1,744