emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 130010b 09/23: Add new style/extramarks.el


From: Tassilo Horn
Subject: [elpa] externals/auctex 130010b 09/23: Add new style/extramarks.el
Date: Sat, 23 Jan 2021 04:10:07 -0500 (EST)

branch: externals/auctex
commit 130010b12f0090efe7e172c56fb53f42dea05c02
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Add new style/extramarks.el
    
    * Makefile.in (STYLESRC): Add new style.
    
    * style/extramarks.el: New file.
---
 Makefile.in         |  4 +--
 style/extramarks.el | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index e83c74c..9afc328 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2,7 +2,7 @@
 
 # Maintainer: auctex-devel@gnu.org
 
-# Copyright (C) 2003-2008, 2010, 2013-2015, 2018-2019 Free Software
+# Copyright (C) 2003-2008, 2010, 2013-2015, 2018-2021 Free Software
 #   Foundation, Inc.
 
 # This file is part of AUCTeX.
@@ -173,7 +173,7 @@ STYLESRC = style/prosper.el \
           style/multitoc.el  style/fbox.el      style/xkcdcolors.el \
           style/ltxguide.el  style/revtex4-2.el style/overpic.el \
           style/tex-live.el  style/algorithm.el style/algpseudocode.el \
-          style/appendix.el  style/scholax.el
+          style/appendix.el  style/scholax.el   style/extramarks.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/extramarks.el b/style/extramarks.el
new file mode 100644
index 0000000..b227307
--- /dev/null
+++ b/style/extramarks.el
@@ -0,0 +1,72 @@
+;;; extramarks.el --- AUCTeX style for `extramarks.sty' (v4.0)  -*- 
lexical-binding: t; -*-
+
+;; Copyright (C) 2021 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <arash@gnu.org>
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2021-01-12
+;; 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 AUCTeX; see the file COPYING.  If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `extramarks.sty' (v4.0) from 2021/01/04.
+;; `extramarks.sty' is part of TeXLive.
+
+;;; Code:
+
+(require 'tex)
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+                  "font-latex"
+                  (keywords class))
+
+(TeX-add-style-hook
+ "extramarks"
+ (lambda ()
+
+   ;; New symbols
+   (TeX-add-symbols
+    "firstleftmark"
+    "lastrightmark"
+    "firstrightmark"
+    "lastleftmark"
+    "firstleftxmark"
+    "firstrightxmark"
+    "topleftxmark"
+    "toprightxmark"
+    "lastleftxmark"
+    "lastrightxmark"
+    "firstxmark"
+    "lastxmark"
+    "topxmark"
+    '("extramarks" 2))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("extramarks" "{{"))
+                              'function)))
+ TeX-dialect)
+
+(defvar LaTeX-extramarks-package-options nil
+  "Package options for the extramarks package.")
+
+;;; extramarks.el ends here



reply via email to

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