[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f708e1b 29/95: Add new style/preview.el
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f708e1b 29/95: Add new style/preview.el |
Date: |
Sun, 16 Apr 2017 01:26:49 -0400 (EDT) |
branch: externals/auctex
commit f708e1b1a5766cd8e51df333b1e19abeb83bd8d7
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Add new style/preview.el
* Makefile.in (STYLESRC): Add new style.
* style/preview.el: New file.
---
Makefile.in | 2 +-
style/preview.el | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 105 insertions(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 19ef2ab..424bc1d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -163,7 +163,7 @@ STYLESRC = style/prosper.el \
style/bicaption.el style/amsfonts.el style/subfiles.el \
style/dcolumn.el style/mdframed.el style/tcolorboxlib-raster.el \
style/titleps.el style/titlesec.el style/titletoc.el \
- style/exam.el style/breqn.el
+ style/exam.el style/breqn.el style/preview.el
STYLEELC = $(STYLESRC:.el=.elc)
diff --git a/style/preview.el b/style/preview.el
new file mode 100644
index 0000000..26987e1
--- /dev/null
+++ b/style/preview.el
@@ -0,0 +1,104 @@
+;;; preview.el --- AUCTeX style for `preview.sty' (v2010/02/14)
+
+;; Copyright (C) 2017 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <address@hidden>
+;; Maintainer: address@hidden
+;; Created: 2017-02-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 `preview.sty' v2010/02/14.
+;; `preview.sty' is part of TeXLive.
+
+;;; Code:
+
+(defun LaTeX-preview-arg-ifpreview (_optional)
+ "Insert \\else and \\fi part of \\ifPreview command from preview.sty.
+OPTIONAL is ignored."
+ (indent-according-to-mode)
+ (LaTeX-newline)
+ (indent-according-to-mode)
+ (save-excursion
+ (LaTeX-newline)
+ (indent-according-to-mode)
+ (insert TeX-esc "else")
+ (LaTeX-newline)
+ (LaTeX-newline)
+ (indent-according-to-mode)
+ (insert TeX-esc "fi")))
+
+(TeX-add-style-hook
+ "preview"
+ (lambda ()
+
+ (LaTeX-add-environments
+ '("preview")
+ '("nopreview"))
+
+ (TeX-add-symbols
+ '("PreviewMacro" (TeX-arg-conditional (y-or-n-p "With optional arguments?
")
+ ( [ t ] [ nil ] )
+ ())
+ TeX-arg-macro)
+
+ '("PreviewMacro*" (TeX-arg-conditional (y-or-n-p "With optional arguments?
")
+ ( [ t ] [ nil ] )
+ ())
+ TeX-arg-macro)
+
+ '("PreviewEnvironment" (TeX-arg-conditional (y-or-n-p "With optional
arguments? ")
+ ( [ t ] [ nil ] )
+ ())
+ TeX-arg-environment)
+
+ '("PreviewEnvironment*" (TeX-arg-conditional (y-or-n-p "With optional
arguments? ")
+ ( [ t ] [ nil ] )
+ ())
+ TeX-arg-environment)
+
+ '("PreviewSnarfEnvironment" TeX-arg-environment)
+
+ '("PreviewOpen")
+ '("PreviewClose")
+
+ '("ifPreview" LaTeX-preview-arg-ifpreview))
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("PreviewMacro" "*[[{")
+ ("PreviewEnvironment" "*[[{")
+ ("PreviewSnarfEnvironment" "{"))
+ 'function)))
+ LaTeX-dialect)
+
+(defvar LaTeX-preview-package-options
+ '("active" "noconfig" "psfixbb"
+ "dvips" "pdftex" "xetex"
+ "displaymath" "floats" "textmath"
+ "graphics" "sections" "delayed"
+ "auctex" "showlabels" "tightpage"
+ "lyx" "counters" "footnotes"
+ "tracingall" "showbox")
+ "Package options for the preview package.")
+
+;;; preview.el ends here
- [elpa] externals/auctex 1b3f6e8 13/95: Update style/listings.el to use `LaTeX-env-label-as-keyval', (continued)
- [elpa] externals/auctex 1b3f6e8 13/95: Update style/listings.el to use `LaTeX-env-label-as-keyval', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex ec7caff 14/95: Add new style/breqn.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 5708567 26/95: Improve parsing process in style/color.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c21aff6 31/95: ; Add `LaTeX-equation-label' as symbol to `LaTeX-label-alist', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c0f3659 21/95: Fix TeX-view-predicate-list-builtin predicates wrt class opts, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6c91dba 20/95: Fix number of arguments of local-variable-p in XEmacs, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex e18e46e 32/95: * latex.el (LaTeX-label): Eliminate premature returning of label., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex f12dbb2 27/95: Improve parsing process in style/xcolor.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 85c4656 12/95: Add function to put labels in opt. argument of environments, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c112a9e 34/95: ; * style/empheq.el (LaTeX-empheq-item-equation): Delete unnecessary *., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex f708e1b 29/95: Add new style/preview.el,
Tassilo Horn <=
- [elpa] externals/auctex a1091b8 35/95: Improve determination of master file with subfiles class, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4321dcc 41/95: Tweak locale treatment on xemacs., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b0bf9ea 43/95: Partially revert previous commit, will look better later, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 1d7c229 38/95: Make papersize predicate in tex-jp.el to work again., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a49aaa4 44/95: Fix font-latex-make-match-defun to generate intended code., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 664186d 52/95: ; Add fix related with coding system missing in my commit on Feb 14., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7c48c19 49/95: * tex-ispell.el (TeX-ispell-skip-cmds-list): Add hyperref macros., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4054384 25/95: Fix parsing bug in style/xcolor.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b4f304b 36/95: Improve regexp for looking for documentclass macro, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 9876030 23/95: Fix minor problems, Tassilo Horn, 2017/04/16