auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Small modification of graphicx.el


From: Mads Jensen
Subject: [AUCTeX-devel] Small modification of graphicx.el
Date: Fri, 04 Feb 2011 21:59:36 +0100
User-agent: Thunderbird 2.0.0.24 (X11/20101027)

I found that it is a mistake that graphicx.el neglects
\DeclareGraphicsRule and \DeclareGraphicsExtension and I have therefore
added them; the modifications are conviently attached in a diff-file.
-- 
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
--- graphicx.el 2011-02-04 21:56:04.000000000 +0100
+++ graphicx.el.mads    2011-02-04 21:55:04.000000000 +0100
@@ -41,7 +41,10 @@
     '("resizebox*" "Width" "Total height" "Argument")
     '("rotatebox" [ "Options" ] "Angle" "Argument")
     '("scalebox" "Horizontal scale" [ "Vertical scale" ] "Argument")
-    '("includegraphics" LaTeX-arg-includegraphics))
+    '("includegraphics" LaTeX-arg-includegraphics)
+    '("DeclareGraphicsRule" "Extension" "Type" "Read-file" "Command (e.g., 
`gunzip -c'")
+    '("DeclareGraphicsExtension" "Extension"))
+   
    ;; Fontification
    (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
@@ -49,7 +52,10 @@
                                ("resizebox" "*{{{")
                                ("rotatebox" "[{{")
                                ("scalebox" "{[{"))
-                             'textual)
+                              'textual)
+     (font-latex-add-keywords '(("DeclareGraphicsRule" "{{{{")
+                                '("DeclareGraphicsExtension" "{")
+                                  'function))
      (font-latex-add-keywords '(("includegraphics" "*[[{")) 'reference))))
 
 (defun LaTeX-includegraphics-extensions (&optional list)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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