From fad14ce9984f43d36cadf39d656df97bb7c8b78e Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 22 Jun 2016 11:30:16 -0400 Subject: Inform reftex of math environments --- .emacs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index 301f062..d3d7c01 100644 --- a/.emacs +++ b/.emacs @@ -34,7 +34,16 @@ TeX-source-correlate-mode t TeX-source-correlate-method 'synctex ;; use reftex to get ToC: C-c = to explore structure of TeX doc - reftex-plug-into-AUCTeX t))) + reftex-plug-into-AUCTeX t + reftex-label-alist '(("axiom" ?a "ax:" "~\\ref{%s}" nil ("axiom" "ax.") -3) + ("theorem" ?h "theorem:" "~\\ref{%s}" t ("theorem" "th.") -3) + ("proposition" ?p "prop:" "~\\ref{%s}" t ("proposition" "prop.") -3) + ("definition" ?d "def:" "~\\ref{%s}" t ("definition" "def.") -3) + ("corollary" ?c "cor:" "~\\ref{%s}" t ("corollary" "cor.") -3) + ("lemma" ?l "lemma:" "~\\ref{%s}" t ("lemma" "lem.") -3) + ("conjecture" ?j "conj:" "~\\ref{%s}" t ("conjecture" "conj.") -3) + ) + ))) (use-package auto-complete :ensure t -- cgit v1.2.3