[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex d298219d0f: Add new style/inlinegraphicx.el
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex d298219d0f: Add new style/inlinegraphicx.el |
Date: |
Thu, 7 Nov 2024 03:57:30 -0500 (EST) |
branch: externals/auctex
commit d298219d0f335faa1094a8606018460225b2cd1f
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Add new style/inlinegraphicx.el
* NEWS.org (Added): Announce new style.
* style/inlinegraphicx.el: New file.
---
NEWS.org | 4 +--
style/inlinegraphicx.el | 65 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 2 deletions(-)
diff --git a/NEWS.org b/NEWS.org
index 2837183157..df1bbc6ce0 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -24,8 +24,8 @@
- Add new custom option ~TeX-fold-alert-color~ which determines the
color used when folding the ~\alert~ macro, defaults to ~red~.
-- Add new support file =style/minted2.el= (=style/minted.el= is updated
- to package v3.1.2).
+- Add new support files =style/inlinegraphicx.el= and =style/minted2.el=
+ (=style/minted.el= is updated to package v3.1.2).
- Add preliminary support for parsing =\graphicspath= in
=style/graphicx.el=.
diff --git a/style/inlinegraphicx.el b/style/inlinegraphicx.el
new file mode 100644
index 0000000000..cd08f09a89
--- /dev/null
+++ b/style/inlinegraphicx.el
@@ -0,0 +1,65 @@
+;;; inlinegraphicx.el --- AUCTeX style for `inlinegraphicx.sty' -*-
lexical-binding: t; -*-
+
+;; Copyright (C) 2024 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <arash@gnu.org>
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2024-11-07
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by the
+;; Free Software Foundation; either version 3, or (at your option) any
+;; later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+;; for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; This file adds support for `inlinegraphicx.sty' v0.1.0 from
+;; 2024-11-06.
+
+;;; Code:
+
+(require 'tex)
+(require 'latex)
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+ "font-latex"
+ (keywords class))
+
+(TeX-add-style-hook
+ "inlinegraphicx"
+ (lambda ()
+
+ (TeX-run-style-hooks "graphicx")
+
+ (TeX-add-symbols
+ '("inlinegraphics"
+ [TeX-arg-key-val (("scale") ("strut"))]
+ LaTeX-arg-includegraphics)
+
+ '("inlinegraphics*"
+ [TeX-arg-key-val (("scale") ("strut"))]
+ LaTeX-arg-includegraphics))
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("inlinegraphics" "*[{"))
+ 'reference)))
+ TeX-dialect)
+
+(defvar LaTeX-inlinegraphicx-package-options nil
+ "Package options for the inlinegraphicx package.")
+
+;;; inlinegraphicx.el ends here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/auctex d298219d0f: Add new style/inlinegraphicx.el,
ELPA Syncer <=