auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to auctex/style/natbib.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/style/natbib.el,v
Date: Sun, 19 Aug 2007 17:27:39 +0000

CVSROOT:        /cvsroot/auctex
Module name:    auctex
Changes by:     Ralf Angeli <angeli>    07/08/19 17:27:39

Index: natbib.el
===================================================================
RCS file: /cvsroot/auctex/auctex/style/natbib.el,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- natbib.el   23 Oct 2005 10:13:01 -0000      1.7
+++ natbib.el   19 Aug 2007 17:27:39 -0000      1.8
@@ -67,16 +67,19 @@
                
"\\)\\(\\[[^]\n\r\\%]*\\]\\)*{\\([^{}\n\r\\%,]*,\\)*\\([^{}\n\r\\%,]*\\)")
        4 'LaTeX-bibitem-list "}")))
 
-    ;; Add fontification for references
+    ;; Fontification
     (when (and (featurep 'font-latex)
               (eq TeX-install-font-lock 'font-latex-setup))
-      (setq font-latex-match-reference-keywords-local
-           (append font-latex-match-reference-keywords-local
-                   '("cite" "citet" "citet*" "citealt" "citealt*"
-                     "citep" "citep*" "citealp" "citealp*" 
-                     "citeauthor" "citeauthor*" "citefullauthor"
-                     "citeyear" "citeyearpar""shortcites")))
-      (font-latex-match-reference-make))
+      (font-latex-add-keywords '(("citet" "*[[{")
+                                ("citealt" "*[[{")
+                                ("citep" "*[[{")
+                                ("citealp" "*[[{")
+                                ("citeauthor" "*[[{")
+                                ("citefullauthor" "[[{")
+                                ("citeyear" "[[{")
+                                ("citeyearpar" "[[{")
+                                ("shortcites" "{"))
+                              'reference))
 
     ;; Tell RefTeX
     (if (fboundp 'reftex-set-cite-format)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]