[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 31c42ca 23/35: Indent \[...\] display math as a
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 31c42ca 23/35: Indent \[...\] display math as a normal environment. |
Date: |
Sun, 22 Mar 2015 09:27:05 +0000 |
branch: externals/auctex
commit 31c42ca3e46faa0121299ff1a0e054b3701bde77
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Indent \[...\] display math as a normal environment.
* latex.el (LaTeX-end-regexp): Add "\]".
(LaTeX-indent-calculate): Indent "\[...\]" display math as a
regular environment.
---
ChangeLog | 6 ++++++
latex.el | 6 +++++-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1cebd1e..fb17b04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-09 Mos� Giordano <address@hidden>
+
+ * latex.el (LaTeX-end-regexp): Add "\]".
+ (LaTeX-indent-calculate): Indent "\[...\]" display math as a
+ regular environment.
+
2015-03-08 Arash Esbati <address@hidden>
* Makefile.in (STYLESRC): Add new style.
diff --git a/latex.el b/latex.el
index fc5ebdb..c232c24 100644
--- a/latex.el
+++ b/latex.el
@@ -2948,7 +2948,7 @@ indentation level in columns."
:group 'LaTeX-indentation
:type 'regexp)
-(defcustom LaTeX-end-regexp "end\\b"
+(defcustom LaTeX-end-regexp "end\\b\\|\\]"
"*Regexp matching macros considered ends."
:group 'LaTeX-indentation
:type 'regexp)
@@ -3141,6 +3141,10 @@ outer indentation in case of a commented line. The
symbols
;; End brace in the start of the line.
(- (LaTeX-indent-calculate-last force-type)
TeX-brace-indent-level))
+ ((and (texmathp)
+ ;; Display math \[...\], treat as a generic environment.
+ (equal "\\[" (car texmathp-why)))
+ LaTeX-indent-level)
(t (LaTeX-indent-calculate-last force-type))))))
(defun LaTeX-indent-level-count ()
- [elpa] externals/auctex adf90e9 09/35: Simplify TeX-pdf-tools-sync-view, (continued)
- [elpa] externals/auctex adf90e9 09/35: Simplify TeX-pdf-tools-sync-view, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b858aae 10/35: Make TeX-pdf-tools-sync-view work with region files, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b2957c8 11/35: Fix bug in pdf-tools support, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 86f4a1e 12/35: Add a hook that's run after an environment is modified, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 566426b 08/35: New style for color.sty, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 3cf92fc 14/35: Fix font-locking issue, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 39badf0 15/35: New defcustom LaTeX-fill-excluded-macros, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 83306b4 13/35: Add some expl3 support, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 074af82 16/35: Add docs for LaTeX-fill-excluded-macros, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 61ed48c 19/35: Replace add-to-list with pushnew, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 31c42ca 23/35: Indent \[...\] display math as a normal environment.,
Tassilo Horn <=
- [elpa] externals/auctex 41c5f9a 24/35: Improve error/warning reporting when file cannot be determined., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 59f9440 26/35: Fix void-function error occuring if cl is not loaded, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 4034de2 21/35: New style for caption.sty., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex a2a4777 25/35: Add TeX-after-TeX-LaTeX-command-finished-hook, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex b853739 17/35: Add uninstall rules to Makefiles., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex d23de0a 18/35: Style for bidibeamer which delegates to beamer, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex a375093 20/35: New style enumitem.el, Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 69b02a0 22/35: New style for geometry.sty., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex 003f475 28/35: New style ltablex.el., Tassilo Horn, 2015/03/22
- [elpa] externals/auctex f16c051 31/35: Fix header of style/mn2e.el., Tassilo Horn, 2015/03/22