Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
8 votes
Accepted

Emacs setup for LaTeX after (use-package) verse

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 ...
jue's user avatar
  • 4,576
8 votes
Accepted

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

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 ...
John Kitchin's user avatar
  • 11.9k
3 votes
Accepted

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

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, ...
Fran Burstall's user avatar
3 votes

Evil keybindings in reftex-toc

I faced this exact problem and solved it by using evil-collection just on refTeX. Installed it as an additional package in my dotspacemacs/layers() (setq-default ... dotspacemacs-addtional-...
arifer's user avatar
  • 31
2 votes
Accepted

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

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 ...
justbur's user avatar
  • 1,510
2 votes

Jump to equation by label in auctex

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}.
Zhenyao Sun's user avatar
2 votes
Accepted

Use RefTeX to manage a global bib database

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'" :...
Tobias's user avatar
  • 33.2k
2 votes
Accepted

How to fix reftex-toc numbering?

I had lots of section commands commented out in the file, and reftex-toc picked these up and parsed them anyway. Not sure if this is a bug, but to remove commented section commands solved the ...
trmdttr's user avatar
  • 253
2 votes

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

The doc for the reftex-default-bibliography variable says: List of BibTeX database files which should be used if none are specified. When ‘reftex-citation’ is called from a document which has neither ...
NickD's user avatar
  • 30.4k
2 votes
Accepted

How to use labels inserted in .dtx files?

RefTeX sees the \label macros which are commented out, it just doesn't show them by default. You can access them in the *RefTeX Select* buffer. This is a documented feature. From the manual: 3.2 ...
Arash Esbati's user avatar
  • 1,975
2 votes

Company Reftex slow when searching for labels

I think my question has been answered successfully. There has been no answers but comments to my question; so I thought to answer it myself and point other readers at the solution. If a mod can edit ...
ls.ptr's user avatar
  • 61
2 votes
Accepted

How to make Org writing similar to AUCTeX?

I think your best bet currently is to keep using Org-cite and Citar for citations and use Org-ref v3 for table, figure and equation cross-references within the document. (I have a vague memory that ...
Simka's user avatar
  • 196
2 votes
Accepted

Label format in RefTex

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 ...
Arash Esbati's user avatar
  • 1,975
1 vote
Accepted

Making cleveref insertions globally available

AUCTeX has a clean interface for hand-written LaTeX package files: You can write a corresponding AUCTeX style file and AUCTeX will load it when you use the package. Say your custom package is called ...
Arash Esbati's user avatar
  • 1,975
1 vote
Accepted

How to debug reftex not working with multiple files

The values of reftex-bibpath-environment-variables and reftex-texpath-environment-variables should not be strings but lists of strings. Change the settings (setq-default reftex-bibpath-environment-...
Tobias's user avatar
  • 33.2k
1 vote
Accepted

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

Org-ref has several functions to do this for a doi, or crossref search. There is a function for urls at https://github.com/jkitchin/org-ref/blob/master/org-ref-url-utils.el#L271 that may be what you ...
John Kitchin's user avatar
  • 11.9k
1 vote

Org-ref-like interface in reftex

One strategy that is very simple is to define a function, and bind it to a convenient key. Here is one example. You just type C-o on a key, this function finds the key, then uses bibtex-completion to ...
John Kitchin's user avatar
  • 11.9k
1 vote
Accepted

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

The relevant piece when you make a reference (\ref) to a label is the type-indicator, in this case ?e. You can't have multiple setups around a single type-indicator. In your case, you want to set the ...
Arash Esbati's user avatar
  • 1,975
1 vote
Accepted

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

The following snippet works for me. I use use-package, so it is slightly different, but I hope it is easy enough to edit. You can evaluate this with emacs -q and then calling M-x eval-buffer on the ...
Swarnendu Biswas's user avatar
1 vote

bibtex customize sort-field in bibtex-entry-format

Not tested, but looking at the docstring of bibtex-entry-format, it says: bibtex-entry-format is a variable defined in bibtex.el. Its value is (opts-or-alts required-fields numerical-fields) ...
Arash Esbati's user avatar
  • 1,975
1 vote

Additional key binding for RefTeX to add new bibliography entry

Hurray. I found my mistake. Instead of (define-key reftex-mode-map (kbd "C-c C-e C-O") 'bibtex-Online) one has to write (define-key bibtex-mode-map (kbd "C-c C-e C-O") 'bibtex-Online) You have ...
Jan's user avatar
  • 373
1 vote

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

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 ...
Fran Burstall's user avatar
1 vote

reftex (select a label type)

In this case [ ] any means press the space key.
Tyler's user avatar
  • 22.3k
1 vote

lose reftex-isearch-minor-mode after refresh

Here is the way to go: (defun mylatexhook nil (turn-on-reftex) (add-hook 'reftex-mode-hook (lambda nil (reftex-isearch-minor-mode 1)))) (add-hook 'LaTeX-mode-hook 'mylatexhook) It has ...
Olivier Ramaré's user avatar
1 vote
Accepted

Change reftex-cite-format based on file type

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 () ...
John Kitchin's user avatar
  • 11.9k
1 vote
Accepted

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

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 ...
JeanPierre's user avatar
  • 7,475
1 vote

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

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} \...
Tyler's user avatar
  • 22.3k

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