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

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

[elpa] externals/auctex 8d30dc1 37/48: Add new style/marginnote.el


From: Tassilo Horn
Subject: [elpa] externals/auctex 8d30dc1 37/48: Add new style/marginnote.el
Date: Sun, 16 Sep 2018 01:47:26 -0400 (EDT)

branch: externals/auctex
commit 8d30dc1db0a1ea626ee97681ed44649d6e2dabd4
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Add new style/marginnote.el
    
    * Makefile.in (STYLESRC): Add new style.
    
    * style/marginnote.el: New file.
---
 Makefile.in         |  2 +-
 style/marginnote.el | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 2ec7882..ec8d76f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -168,7 +168,7 @@ STYLESRC = style/prosper.el \
           style/csquotes.el  style/babel.el     style/dk-bib.el \
           style/floatrow.el  style/moodle.el    style/canadian.el \
           style/arabxetex.el style/australian.el style/newzealand.el \
-          style/xltabular.el
+          style/xltabular.el style/marginnote.el
 
 STYLEELC = $(STYLESRC:.el=.elc)
 
diff --git a/style/marginnote.el b/style/marginnote.el
new file mode 100644
index 0000000..706182f
--- /dev/null
+++ b/style/marginnote.el
@@ -0,0 +1,64 @@
+;;; marginnote.el --- AUCTeX style for `marginnote.sty' (v1.4)
+
+;; Copyright (C) 2018 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2018-07-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 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 `marginnote.sty' (v1.4) from 2018/07/01.
+;; `marginnote.sty' is part of TeXLive.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "marginnote"
+ (lambda ()
+
+   (TeX-add-symbols
+    '("marginnote" [ "Left margin text" ] "Text"
+      [ TeX-arg-length "Vertical offset" ] )
+
+    '("marginnotetextwidth" 0)
+
+    '("marginnotevadjust" 0)
+
+    '("raggedleftmarginnote" 0)
+
+    '("raggedrightmarginnote" 0)
+
+    '("marginfont" 0))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("marginnote"  "[{["))
+                             'reference)))
+ LaTeX-dialect)
+
+(defvar LaTeX-marginnote-package-options
+  '("fulladjust" "heightadjust" "depthadjust" "noadjust"
+    "parboxrestore" "noparboxrestore")
+  "Package options for the marginnote package.")
+
+;;; marginnote.el ends here



reply via email to

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