Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [reftex]

RefTeX is a feature of the emacs plugin AUCTeX, providing an easy way to navigate through your documents. It features an interactive table of contents with optional display of labels and citations.

0
votes
1answer
17 views

RefTeX and enumitem

I'm using RefTeX along with enumitem, and I find that RefTeX seems to interpret a block like \begin{enumerate}[label=\Alph*.] \end{enumerate} as defining a label named \Alph*. That's fine, but then ...
0
votes
1answer
102 views

RefTeX: How to modify the “select a reference format” menu?

I use Emacs + RefTeX + AUCTeX to write .tex files. I use the handy keyboard macro C-c ) for cross-references. This shows a menu named SELECT A REFERENCE FORMAT and I can choose between a number of ...
3
votes
1answer
209 views

Emacs, AUCTeX, RefTeX and biblatex's multicite commands

I've been giving a chance to Emacs (with AUCTeX and RefTeX), but I'm still stumbling quite a lot. I've gotten the hang (and appreciated) the RefTeX way to add a citation (as described in, e.g. how to ...
3
votes
1answer
123 views

biblatex-chicago does not run biber automatically in Emacs

I'm using AUCTeX (version 11.90.2)+RefTeX on Emacs (version 24.5.2). While I'm using the biblatex package, if I do C-c C-c, it would suggest biber as default. However, if I use the package biblatex-...
1
vote
0answers
70 views

automatic tilde(~) before \cite in reftex

The question is the same as in this other post, that I want C-c [ to insert ~\cite instead of just \cite. However, the solution given therein as follows (setq reftex-cite-format '((?\C-m . "~\\cite{...
0
votes
1answer
100 views

How to cross-reference to a specific label with RefTeX

In LaTeX, the labels are defined as \label{eq:1}. When you want to reference to that equation, you could easily search all \label in the document by C-c ) and that command insert reference to that ...
2
votes
1answer
185 views

RefTeX: Is it possible to use regex to search forward to find context?

I am using RefTeX to create/reference labels within LaTeX documents. When writing definitions, I usually write the "name" of whatever I'm defining as emphasised text in the beginning of the ...
0
votes
0answers
94 views

Reftex-citation regex error

When I type M-x reftex-citation after a word (like "xxxx"), the regex message is Regex {&& Regex...}: [xxxx]:. I can't type any citation key after this message, and when I type "TAB", then I ...
1
vote
1answer
285 views

I want auto labeling with auctex+reftex

So first, i define new environment (or new theorem) like \newtheorem{cor}{Corollary} For convenience, I want C-c C-e cor RET then it display \begin{cor} \label{cor:*document name*:number} \...
1
vote
1answer
322 views

AUCTeX+RefTeX compile bibliography without explicitly providing bib file path

I'm using AUCTeX along with RefTeX in Emacs 25.1.1. My question is how to make AUCTeX to compile Bibliography without having to explicitly provide \bibliographystyle and \bibliography in every file. ...
1
vote
1answer
90 views

Reftex and AMSRefs

I have been using Emacs Reftex for labelling and referencing. However, I could not use it with AMSRefs. I tried using Reftex with its standard setup both the ways (i) including the bib entries in the ...
0
votes
0answers
89 views

Cannot load RefTex

I try to automatically load RefTeX for all my LaTeX files. However, when I launch Emacs I get the following error: Error loading autoloads: (void-function defstruct) What this error mean and how ...
1
vote
1answer
483 views

Spacemacs and reftex

I'm trying to configure my spacemacs install to use it with reftex. Actually, I want to change the automatic labels of equation and such so that they include the file name in the label. The end of my ....
3
votes
1answer
112 views

Making Reftex insert `~\cite` instead of `\cite`

I'm a bit new to RefTeX. How can I change the RefTeX configuration so that instead of \cite{ref} it automatically inserts ~\cite{ref} whenever I press C-[ (that ~ adds a space before the citation). ...
3
votes
1answer
171 views

automatic formatting of reference label

I am using emacs and AUCTeX and would like to change one particular behaviour: When I insert a reference using C-c ), if the target reference is an equation, the reference is automatically included in ...
1
vote
1answer
152 views

Reftex cross-reference files in different directories

My latex files are stored in a directory structure as this - main.tex - .dir-locals.el -- sections/ --- sec1.tex, sec2.tex, ... -- tables/ --- table1.tex, table2.tex, ... In main.tex, sec1.tex is "...
1
vote
2answers
306 views

How may one set the equation counter in AUCTeX?

When inserting an equation with C-c C-e in Emacs, by default AUCTeX (probably in collaboration with RefTeX) also produces an autonumbered simple label for it of the form \label{eq:1}, and so on. There'...
1
vote
0answers
211 views

Problem with Reftex - how to get it to index bib for all files?

edit : here's a screencast of the problem for me : https://vid.me/uBHN I have cloned this project : https://github.com/vermiculus/smppaper I have then created a new file in the sections directory ...
9
votes
2answers
5k views

how to cite using emacs+auctex+reftex

I recently switched from TeXStudio to Emacs/AUCTEX. The problem is that I don't know how to cite a paper. Here is a MWE: \documentclass{article} \usepackage[backend=biber,style=apa,apabackref=true,...
2
votes
1answer
297 views

AUCTeX beamer class does not auto-insert section label

I am now using AUCTeX 11.89.1 on emacs. When I start a beamer class document, the label is not automatically added after using C-c C-s to start a new section. I have to use C-c C-( to add the label ...
3
votes
1answer
150 views

Make Emacs ignore “mismatched” \index parentheses

I'm indexing a LaTeX document using Emacs and AUCTeX and RefTeX. One thing that makes it harder to match delimiters in the document (or to spot mismatched ones) is the propensity of Emacs (or maybe ...
4
votes
1answer
136 views

Indexing support similar to RefTeX

I've been a happy TeXShop user for many years and have hardly felt that it missed anything crucial. But since I'm doing more and more indexing from scratch, I started to look for a tool, that will ...
0
votes
1answer
141 views

reftex-cite-format customizations not loading

RefTeX will no longer load my custom citations commands when using the lines from Setting up RefTeX with biblatex citation commands in my init file. Nothing changed in my init file, but it no longer ...
1
vote
1answer
192 views

Emacs' RefTeX reftex-reference unconditionally surrounding `eq:…` reference with parens

Whenever I insert a reference to a label starting with eq: RefTeX seems to decide to surround it with (), e.g. it will insert (\ref{eq:1)) into the buffer. This is particularly annoying if I am using ...
1
vote
1answer
470 views

How to get \cref to print “Fig.” in emacs?

I'm having trouble using \cref in emacs' AUCTeX + RefTeX mode. The pdf shows the reference to a picture as "section 1.3" instead of "Fig.1a" (see snapshot below) as it should, when \usepackage{...
8
votes
1answer
573 views

How to properly make reftex work with multiple biblatex bibs?

I saw a comment in here that support for multiple addbibresource has been integrated into Emacs. However I'm using a few custom stys from where I require biblatex package with all the necessary ...
1
vote
2answers
129 views

reftex: include from `tex/`

In order to keep doc dir clean, I keep a master file in the top level of the doc, and other files in folders: . ├── bib │ └── refs.bib ├── img │ ├── img1.png │ └── img2.png ├── tex │ ├── ...
5
votes
1answer
514 views

auctex 11.88 bug(?) on LaTeX-env-label, cannot automatically insert label

I have recently been trying auctex 11.88 on emacs 24.4(win7+mac). it's great so far! I used to have the following in my .emacs emacs file when I was using auctex11.87 (I bumped into it on ...
1
vote
0answers
73 views

How to make Reftex menu recursive (or nested)?

I have the fllowing lines in my .emacs: (add-hook 'reftex-load-hook 'imenu-add-menubar-index) (add-hook 'reftex-mode-hook 'imenu-add-menubar-index) (global-set-key [down-mouse-3] 'imenu) It produces ...
1
vote
1answer
231 views

ams math + AUCTeX + refTeX causing label references to always be \eqref not the desired \vref

As stated on the reftex documentation “Note that this is automatically done by the ‘amsmath.el’ style file of AUCTEX, see Section 7.8.2, page 38 – so if you use AUCTEX, this configuration will not be ...
1
vote
1answer
84 views

How to use RefTex search when search item contains special characters?

After hitting C-[ for entering a citation with RefTex, I want to search for an author that has an umlaut (\"u or ü) in the name. Let's say the guy's name is Müller. I tried Muller Müller M\"uller ...
2
votes
1answer
905 views

How to use reftex in multiple files

I tried some solutions but fail so far. I divide large data into multiple files and then include all of them in main file. I used emacs24. Here is general of my main.tex file \include{chapter1} \...
1
vote
0answers
176 views

eqref in reftex [closed]

I'm using Emacs + AUCTeX + refTeX. I've added (setq reftex-plug-into-AUCTeX t) to my init.elfile and everything seems to work fine except for one thing. When I choose to reference a label using C-c ) ...
1
vote
1answer
89 views

AUCTeX/ RefTeX: ignore files by extension

I'm writing a very long document with dozens of figures that are all generated with matplotlib and exported as pgf files. Each figure environment then looks something like \begin{figure} \input{...
4
votes
1answer
705 views

How can I set RefTex default reference format?

I'm using RefTex and cleveref. When I want to add a cross-reference I need to enter C-c ) C <SPC> to select the uppercase (\Cref) reference format and show all label types. I use this method to ...
2
votes
1answer
208 views

How can I link together outline-mode with RefTeX-TOC?

The question title says it, pretty much. How can I link together RefTeX's TOC functionality with outline-mode such that I can fold sections/subsections/etc.?
1
vote
1answer
192 views

Problem with \addtocounter that doen't affect \label

I've a little issue with \label. here's the code: \chapter{previous chapter} \phantomsection \addtocounter{chapter}{1} \addcontentsline{toc}{chapter}{\Alph{chapter}~~ the chapter} \label{chap:...
3
votes
0answers
152 views

How can I 'uniquify' RefTeX label defaults?

When you create a new section within AUCTeX (using C-c C-s) and give the section a name, RefTeX will prompt you for a title, insert the section, and then prompt you for a label. This label is auto-...
8
votes
3answers
860 views

RefTeX: shortcut to open the .bib file of the current document

I would like the have a simple keyboard shortcut/command in emacs that opens the .bib file of the current (possible multifile) document. This should be possible with RefTeX, as it can figure out the ...
6
votes
1answer
1k views

Multiple bibliography/addbibresource in reftex

It seems that reftex only scans the file associated with the first bibliography/addbibresource command: \usepackage[backend=biber,bibencoding=utf8,url=false, isbn=false, doi=false, ...
14
votes
1answer
2k views

Disabling the “select reference format” menu in reftex

I'm not sure if this is the right place to ask this question, so if not, please let me know where it would be more appropriate. Since upgrading to Ubuntu 13.10, something seems to have gone wonky ...
1
vote
1answer
197 views

Extra characters in reftex citation yasnippet

I am having an issue with a YASnippet for inserting a RefTeX citation. As many others have, I'm trying to use this snippet from GitHub with the following syntax \cite{${1:label$(unless yas/modified-...
3
votes
1answer
573 views

Cross-ref an equation using RefTeX, AUCTeX and cleveref

After an updated of AUCTeX (to 11.87) the solution that worked wonderful from this answer stopped working. In particular, I got the following error: reftex-reference: Wrong number of arguments: (...
2
votes
0answers
150 views

AUCTeX/RefTeX, the `import` package and cross reference

Today I switched to the import package with the hope that it will simplify the management of the files of my text. It surely did that, but.... It broke RefTex in emacs. Now, I cannot lookup my labels ...
2
votes
1answer
2k views

RefTex Multiple files problems

I have multi files and each file refers to the master file properly and the document can be compiled without problems .... RefTeX can only refer to the environments , figures, equations, etc when it ...
7
votes
1answer
2k views

Cleveref: AUCTeX and RefTeX set-up

How can I set up cleveref to work with AUCTeX and RefTeX? I have tried the advice on Emacs, RefTeX and Cleveref – can they work together? but it didn't work. Additionally, when I hit enter, \ref{} ...
3
votes
1answer
884 views

Using \eqref with RefTeX

How can I open the equation selection buffer in RefTeX automatically when entering \eqref in Emacs? I have the following line in my .emacs file (setq reftex-label-alist '((nil ?e nil "~\\eqref{%s}" ...
5
votes
1answer
4k views

Problem with tilde in \bibliography using BibTeX and RefTeX

I have a problem using a tilde in the \bibliography{}. Consider the following code \documentclass{article} \begin{document} \cite{ref09:man} \bibliographystyle{plain} \bibliography{~/bug.bib} \end{...
2
votes
1answer
135 views

How to create label based on filename with reftex?

I'm using reftex under emacs. In my document, my label policy is the following : \label{<buffer name>:<env>:<key>} for example \label{derivability:thm:Rolle} Is there a way to do ...
0
votes
1answer
328 views

Reftex \cite command binding [closed]

I have a computer where the char [ is made with AltGr+è so I can't use the command Ctrl+[ of RefTeX. Is there a solution to this?