[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] 2014-02-10; \intertext-macro not properly indented inside a
From: |
Simon Campese |
Subject: |
[Bug-AUCTeX] 2014-02-10; \intertext-macro not properly indented inside align-environments |
Date: |
Thu, 14 Aug 2014 07:39:34 +0200 |
Hello,
I just recognized that when typing mathematics inside align or align*
environments (which are provided by the amsmath package), \intertext
macros are not recognized as being typeset on a new line by auctex. For example,
autoindenting the code
\begin{align*}
F_1 &= 1 \\
F_2 &= 2
\intertext{and}
F_{n+1} &= (n+1) F_n
\end{align*}
yields
\begin{align*}
F_1 &= 1 \\
F_2 &= 2
\intertext{and}
F_{n+1} &= (n+1) F_n
\end{align*}
instead of
\begin{align*}
F_1 &= 1 \\
F_2 &= 2
\intertext{and}
F_{n+1} &= (n+1) F_n
\end{align*}
Unfortunately I don't know enough Elisp to fix this myself but I guess
that the parser just checks for '\\' to recognize a new line and a
simple cases statement including '\intertext' has to be added.
And while you're at it, I guess the same is true for '\shortintertext'
from the mathtools package.
Best,
Simon
Emacs : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
of 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
Package: 2014-02-10
current state:
==============
(setq
AUCTeX-date "2014-02-10"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("/usr/local/var/auctex"
"/home/simon/.emacs.d/el-get/auctex/auctex/style"
"/home/simon/.emacs.d/auctex/auto"
"/home/simon/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save t
TeX-parse-self t
TeX-master t
TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX
nil (plain-tex-mode ams-tex-mode texinfo-mode) :help
"Run plain TeX")
("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode
doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with HTML output")
("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t"
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt" "texexec --once --texutil %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
(context-mode) :help "Run ConTeXt until completion")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run
BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
("View" "%V" TeX-run-discard-or-function t t :help "Run
Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help "View the
printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
"Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t :help "Create
index file")
("Xindy" "texindy %s" TeX-run-command nil t :help "Run
xindy to create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for common mistakes")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
t :help "Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help "Delete
generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
"Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help "Run an arbitrary
command"))
)
- [Bug-AUCTeX] 2014-02-10; \intertext-macro not properly indented inside align-environments,
Simon Campese <=