diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2025-01-14 22:48:35 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2025-01-14 23:26:44 +0100 |
| commit | cf8a3f15ee1c80b874be10cbdd34496b84560f59 (patch) | |
| tree | c7a77d6938c6d8d539a6ae1e72160732d440ccf5 /guides/applications/emacs/AUCTeX.org | |
| parent | faf50994d58d2651a2ab1bb1ed94dce1feb246bd (diff) | |
| download | memory-leaks-cf8a3f15ee1c80b874be10cbdd34496b84560f59.tar.xz | |
Sort guides up a bit
Diffstat (limited to 'guides/applications/emacs/AUCTeX.org')
| -rw-r--r-- | guides/applications/emacs/AUCTeX.org | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/guides/applications/emacs/AUCTeX.org b/guides/applications/emacs/AUCTeX.org new file mode 100644 index 0000000..0082759 --- /dev/null +++ b/guides/applications/emacs/AUCTeX.org @@ -0,0 +1,24 @@ +* Completion for cross-references +To integrate AUCTeX with reftex and get completion for ~\cite~ +(bibliography) and ~\ref~ (intra-document labels): +#+begin_src elisp +;; In init file: +(put 'TeX-auto-save 'safe-local-variable 'booleanp) +(put 'TeX-parse-self 'safe-local-variable 'booleanp) +(add-hook 'LaTeX-mode-hook 'turn-on-reftex) +(setq reftex-plug-into-AUCTeX t) +(setq reftex-label-illegal-re "[^-a-zA-Z0-9_+=:;,./]") ; Allow slashes. +(setq TeX-auto-local ".auctex") + +;; Top-level .dir-locals.el: +((latex-mode + . ((TeX-auto-save . t) + (TeX-parse-self . t))) + (bibtex-mode + . ((TeX-auto-save . t) + (TeX-parse-self . t)))) + +;; .dir-locals.el files in subfolders: +((latex-mode + . ((TeX-master . "../path/to/main.tex")))) +#+end_src |
