CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 07/08/19 17:27:26
Index: graphicx.el
===================================================================
RCS file: /cvsroot/auctex/auctex/style/graphicx.el,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- graphicx.el 25 May 2006 07:50:56 -0000 1.16
+++ graphicx.el 19 Aug 2007 17:27:26 -0000 1.17
@@ -45,18 +45,12 @@
;; Fontification
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
- (add-to-list 'font-latex-match-textual-keywords-local "reflectbox")
- ;; Fontification of optional and mandantory arguments of \resizebox,
- ;; \rotatebox and \scalebox should be improved.
- ;; (add-to-list 'font-latex-match-textual-keywords-local "resizebox")
- ;; (add-to-list 'font-latex-match-textual-keywords-local "rotatebox")
- ;; (add-to-list 'font-latex-match-textual-keywords-local "scalebox")
- (add-to-list 'font-latex-match-reference-keywords-local "includegraphics")
- ;; Tell font-lock about the update.
- (font-latex-match-textual-make)
- (font-latex-match-reference-make)
- (setq font-lock-set-defaults nil)
- (font-lock-set-defaults))))
+ (font-latex-add-keywords '(("reflectbox" "{")
+ ("resizebox" "*{{{")
+ ("rotatebox" "[{{")
+ ("scalebox" "{[{"))
+ 'textual)
+ (font-latex-add-keywords '(("includegraphics" "*[[{")) 'reference))))
(defun LaTeX-includegraphics-extensions (&optional list)
"Return appropriate extensions for input files to \\includegraphics."
_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs