[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 4ad82777c0 08/24: Add new test fo
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 4ad82777c0 08/24: Add new test for indent |
Date: |
Mon, 21 Feb 2022 02:38:46 -0500 (EST) |
branch: externals/auctex
commit 4ad82777c0d31d8121a20b19b1577e893ffd86fe
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Add new test for indent
* tests/latex/latex-test.el (LaTeX-indent-tabular): Add cookie to
recognize \usepackage.
* tests/latex/tabular-in.tex:
* tests/latex/tabular-out.tex:
Add \usepackage to deal with align and aligned environments.
Add new test involving aligned environment.
---
tests/latex/latex-test.el | 2 ++
tests/latex/tabular-in.tex | 14 ++++++++++++++
tests/latex/tabular-out.tex | 14 ++++++++++++++
3 files changed, 30 insertions(+)
diff --git a/tests/latex/latex-test.el b/tests/latex/latex-test.el
index e02b2185c1..aff0adcc60 100644
--- a/tests/latex/latex-test.el
+++ b/tests/latex/latex-test.el
@@ -55,6 +55,8 @@
(with-temp-buffer
(insert-file-contents LaTeX-indent-tabular-test/in)
(LaTeX-mode)
+ (let ((TeX-parse-self t))
+ (TeX-update-style t))
(indent-region (point-min) (point-max))
(buffer-string))
(with-temp-buffer
diff --git a/tests/latex/tabular-in.tex b/tests/latex/tabular-in.tex
index 8f75ab72db..faaf4057d1 100644
--- a/tests/latex/tabular-in.tex
+++ b/tests/latex/tabular-in.tex
@@ -1,4 +1,5 @@
\documentclass{article}
+\usepackage{amsmath}
\begin{document}
\begin{tabular}{llll}
Lorem ipsum dolor & sit amet, ei mei
@@ -39,6 +40,19 @@ detraxit & no. & Ne sea doming & deserunt.
9
\end{align}
+% Example given by Uwe Brauer <oub@mat.ucm.es>.
+% (https://lists.gnu.org/r/auctex-devel/2022-01/msg00055.html)
+\begin{equation}
+ \begin{aligned}
+&n u m=\left[\begin{array}{ll}
+2 & 25
+\end{array}\right] \\
+&d e n=\left[\begin{array}{lll}
+1 & 4 & 25
+\end{array}\right]
+\end{aligned}
+\end{equation}
+
% Next table tests filling with a control symbol \& inside a cell; the
% function `LaTeX-indent-tabular' now (March 2017) detects \&, see:
% https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26010
diff --git a/tests/latex/tabular-out.tex b/tests/latex/tabular-out.tex
index 73521d2d05..9e4cec1a72 100644
--- a/tests/latex/tabular-out.tex
+++ b/tests/latex/tabular-out.tex
@@ -1,4 +1,5 @@
\documentclass{article}
+\usepackage{amsmath}
\begin{document}
\begin{tabular}{llll}
Lorem ipsum dolor & sit amet, ei mei
@@ -39,6 +40,19 @@
9
\end{align}
+% Example given by Uwe Brauer <oub@mat.ucm.es>.
+% (https://lists.gnu.org/r/auctex-devel/2022-01/msg00055.html)
+\begin{equation}
+ \begin{aligned}
+ &n u m=\left[\begin{array}{ll}
+ 2 & 25
+ \end{array}\right] \\
+ &d e n=\left[\begin{array}{lll}
+ 1 & 4 & 25
+ \end{array}\right]
+ \end{aligned}
+\end{equation}
+
% Next table tests filling with a control symbol \& inside a cell; the
% function `LaTeX-indent-tabular' now (March 2017) detects \&, see:
% https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26010
- [AUCTeX-diffs] [elpa] externals/auctex updated (a24ec9d7cb -> 484df614d8), Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 0a2d9be447 01/24: ; Fix some documentations, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex bf03300296 09/24: Add M-RET support for smallmatrix variants, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex afd2691e56 19/24: Update style/ltxdoc.el to class version 2.1d, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 3cd7a352d3 07/24: Add support for indent for environments with alignment, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex ddb0f08ff1 10/24: Add default entries to LaTeX-indent-environment-list (bug#28405), Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 4ad82777c0 08/24: Add new test for indent,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 9073b5e117 03/24: * tex-ispell.el: Skip the arguments of stabular*? environments., Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex efb39c16c0 15/24: Add NEWS item, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 36a6d80e1b 11/24: Improve query for opt. arguments of \parbox and minipage, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 27c91a0336 14/24: Consider environments defined with newfloat package, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 2b91d0cf05 17/24: ; * style/footmisc.el: Fix year in last commit., Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 0744b687b3 02/24: Add macros to skip from caption package, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex b89b8cdd44 18/24: Update footmisc package options to v6.0b, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex c8a176ca7c 22/24: ; Release_13.1, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex 497847f193 16/24: Update footmisc package options to v6.0a, Tassilo Horn, 2022/02/21
- [AUCTeX-diffs] [elpa] externals/auctex da5bb8e28d 05/24: Re-run LaTeX when .toc|lof|lot is missing, Tassilo Horn, 2022/02/21