branch: externals/auctex
commit 55e8842bcec6037ef4d294638388d736a67d14cf
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Treat \choice like \item
    
    * style/exam.el ("exam"): Add "choice" to `LaTeX-item-regexp'.
    Simplify regexp for "subpart" and "subsubpart".
---
 style/exam.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/style/exam.el b/style/exam.el
index a1ce1b5..e84203f 100644
--- a/style/exam.el
+++ b/style/exam.el
@@ -123,14 +123,16 @@ Arguments NAME and TYPE are the same as for the function
 
    ;; Append us only once:
    (unless (and (string-match "question" LaTeX-item-regexp)
-                (string-match "subsub" LaTeX-item-regexp))
+                (string-match "sub" LaTeX-item-regexp))
      (set (make-local-variable 'LaTeX-item-regexp)
           (concat
            LaTeX-item-regexp
            "\\|"
+          "choice\\b"
+          "\\|"
            "\\(titled\\)?question\\b"
            "\\|"
-           "\\(sub\\|subsub\\)?part\\b"))
+           "\\(sub\\)*part\\b"))
      (LaTeX-set-paragraph-start))
 
    (TeX-add-symbols

Reply via email to