Powered by
Movable Type 5.2.7

 March 2012 Archives

2012, March 07 (Wed)

Web Dump \autoref completion in AUCTeX

you can use this code


(add-hook 'LaTeX-mode-hook
          (lambda ()
            (TeX-add-style-hook
             "hyperref"
             (lambda ()
               (TeX-add-symbols
                '("autoref" TeX-arg-label))))
            (add-to-list 'TeX-complete-list
                         '("\\\\autoref{\\([^{}\n\r\\%,]*\\)"
                           1 LaTeX-label-list "}"))))

(Complete by C-c RET RET TAB or M-TAB)