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

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

[elpa] externals/auctex 306a561ad5 03/15: Add new style/authblk.el


From: ELPA Syncer
Subject: [elpa] externals/auctex 306a561ad5 03/15: Add new style/authblk.el
Date: Fri, 19 Jul 2024 18:57:29 -0400 (EDT)

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

    Add new style/authblk.el
    
    * Makefile.in (STYLESRC): Add new style.
    
    * style/authblk.el ("authblk"): New file.
---
 Makefile.in      |  3 ++-
 style/authblk.el | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 8605246e55..d38f7a3d9e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -199,7 +199,8 @@ STYLESRC = style/prosper.el \
           style/physics.el   style/soul.el      style/algpseudocodex.el \
           style/wasysym.el   style/refcount.el  style/simpleicons.el \
           style/changebar.el style/amsrefs.el   style/standalone.el \
-          style/diagbox.el   style/contract.el  style/enotez.el
+          style/diagbox.el   style/contract.el  style/enotez.el \
+          style/authblk.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/authblk.el b/style/authblk.el
new file mode 100644
index 0000000000..9e482d2866
--- /dev/null
+++ b/style/authblk.el
@@ -0,0 +1,73 @@
+;;; authblk.el --- AUCTeX style for `authblk.sty' (v1.3)  -*- lexical-binding: 
t; -*-
+
+;; Copyright (C) 2024 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <arash@gnu.org>
+;; Maintainer: auctex-devel@gnu.org
+;; Created: 2024-07-05
+;; 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 `authblk.sty' (v1.3) from 2001/02/27.
+;; `authblk.sty' is part of TeXLive.
+
+;;; Code:
+
+(require 'tex)
+(require 'latex)
+
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+                  "font-latex"
+                  (keywords class))
+
+(TeX-add-style-hook
+ "authblk"
+ (lambda ()
+   (TeX-add-symbols
+    '("author" ["Footnote marker"] LaTeX-arg-author)
+    '("affil"  ["Footnote marker"] "Affiliation")
+    '("authorcr" 0)
+    "Authfont"
+    "Affilfont"
+    "Authsep"
+    "Authand"
+    "Authands")
+
+   (LaTeX-add-counters "Maxaffil")
+   (LaTeX-add-lengths "affilsep")
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("author" "[{")
+                                ("affil"  "[{"))
+                              'textual)
+     (font-latex-add-keywords '("authorcr")
+                              'warning)))
+ TeX-dialect)
+
+(defvar LaTeX-authblk-package-options
+  '("blocks" "noblocks" "max2" "max3" "max4" "max5" "max6"
+    "auth-sc" "auth-sc-lg" "auth-lg" "affil-sl" "affil-it" "german")
+  "Package options for the authblk package.")
+
+;;; authblk.el ends here



reply via email to

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