[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 3aef308 58/67: Skip macros and en
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 3aef308 58/67: Skip macros and environments from pythontex |
Date: |
Fri, 8 Feb 2019 11:40:40 -0500 (EST) |
branch: externals/auctex
commit 3aef308ed406794665705279a736d11b1d64b7c1
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Skip macros and environments from pythontex
* tex-ispell.el (TeX-ispell-skip-cmds-list): Add document macros
of pythontex package.
(TeX-ispell-skip-envs-list): Add environments provided by
pythontex package.
Add general verbatim macros.
---
tex-ispell.el | 50 +++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 45 insertions(+), 5 deletions(-)
diff --git a/tex-ispell.el b/tex-ispell.el
index 995221c..daf5094 100644
--- a/tex-ispell.el
+++ b/tex-ispell.el
@@ -1,6 +1,6 @@
;;; tex-ispell.el --- AUCTeX skip additions for Ispell
-;; Copyright (C) 2016-2017 Free Software Foundation, Inc.
+;; Copyright (C) 2016--2018 Free Software Foundation, Inc.
;; Author: Arash Esbati <address@hidden>
;; Maintainer: address@hidden
@@ -59,6 +59,7 @@
;; mdframed.sty
;; minted.sty
;; nameref.sty
+;; pythontex.sty
;; siunitx.sty
;; splitidx.sty
;; tabularx.sty
@@ -190,6 +191,14 @@
;; nameref.sty
("nameref" . 1)
("Nameref" . 1)
+ ;; pythontex.sty: Only add the macros which will be used in the
+ ;; document; others should be in the preamble
+ ("setpythontexfv" . 1)
+ ("useprintpythontex" . 1)
+ ("usestdoutpythontex" . 1)
+ ("inputpygments" . 1)
+ ("setpygmentsfv" . 1)
+ ("setpygmentspygopt" . 1)
;; siunitx.sty
("num" . 1)
("si" . 1)
@@ -280,6 +289,29 @@ argument and spell check the mandatory one."))
"lstlisting"
;; minted.sty
"minted"
+ ;; pythontex.sty
+ "pycode"
+ "pysub"
+ "pyverbatim"
+ "pyblock"
+ "pyconsole"
+ "pyconcode"
+ "pyconverbatim"
+ "pylabcode"
+ "pylabsub"
+ "pylabverbatim"
+ "pylabblock"
+ "pylabconsole"
+ "pylabconcode"
+ "pylabconverbatim"
+ "sympycode"
+ "sympysub"
+ "sympyverbatim"
+ "sympyblock"
+ "sympyconsole"
+ "sympyconcode"
+ "sympyconverbatim"
+ "pygments"
;; tikz.sty
"tikzpicture")
"List of LaTeX environments which will be skipped entirely.
@@ -307,14 +339,22 @@ not be quoted. An opening brace `{', asterisk `*' and
at-sign
:group 'TeX-misc
:type 'string)
-;; listings.sty & fancyvrb.sty: With opt. argument only before verb content:
+;; listings.sty, fancyvrb.sty, pythontex.sty: With opt. argument only
+;; before verb content:
(TeX-ispell-skip-setcar
- `((,(concat "\\" (regexp-opt '("Verb" "lstinline")))
+ `((,(concat "\\" (regexp-opt '("Verb" "lstinline"
+ "py" "pyc" "pys" "pyv" "pyb"
+ "pycon" "pyconc" "pyconv"
+ "pylab" "pylabc" "pylabs" "pylabv"
"pylabb"
+ "pylabcon" "pylabconc" "pylabconv"
+ "sympy" "sympyc" "sympys" "sympyv"
"sympyb"
+ "sympycon" "sympyconc" "sympyconv")))
TeX-ispell-tex-arg-verb-end)))
-;; minted.sty: With opt. and mandatory argument before verb content:
+;; minted.sty: With opt. and mandatory argument before verb content.
+;; pythontex.sty: With one mandatory argument before verb content:
(TeX-ispell-skip-setcar
- `((,(concat "\\" (regexp-opt '("mint" "mintinline")))
+ `((,(concat "\\" (regexp-opt '("mint" "mintinline" "pygment")))
TeX-ispell-tex-arg-verb-end 1)))
- [AUCTeX-diffs] [elpa] externals/auctex 38f9d72 63/67: Remove compatibility code for older emacsen, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 38f9d72 63/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 34eab00 66/67: Improve indenting and filling in "Form" environments, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex f319b9f 60/67: Override some bindings in `TeX-mode-map' in Texinfo mode, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex ca16d88 59/67: Update style/enumitem.el to package version 3.6, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 9d8369a 39/67: ; Silence the compiler in styles for `font-latex-update-font-lock', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 5147a27 48/67: Revise description about CJK support, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 40ba5b6 37/67: Improve handling of `TeX-insert-macro-default-style' in styles, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 761ffc3 27/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex b13bebb 28/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 235f93c 46/67: ; Silence the compiler in styles for pstricks, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 3aef308 58/67: Skip macros and environments from pythontex,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 3b5cea2 56/67: Improve completion for \url between url.el and hyperref.el, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 906ac31 55/67: Add new style/pythontex.el, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 33329c3 57/67: ; * doc/auctex.texi (Completion): Fix typo., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 6e8aa67 41/67: ; Silence the compiler in styles for `font-latex-add-quotes', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 4fed4a7 64/67: Remove combatibility code for older emasen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex a4576a1 49/67: ; * tex.el (TeX-math-toggle-off-input-method): Fix doc string., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex c893152 50/67: Redefine support for \url in hyperref, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 5827aeb 34/67: Remove TeX-mark-active, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 2c73857 51/67: ; * style/pst-plot.el (LaTeX-pstplot-cleanup): Fix typo., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 45ad237 35/67: Remove TeX-maybe-remove-help,, Tassilo Horn, 2019/02/08