[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] amsthm patch + latex pagestyle

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] amsthm patch + latex pagestyle
Date: Wed, 06 Mar 2013 12:56:45 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Mads Jensen <address@hidden> writes:

Hi Mads,

> I updated amsthm a bit, and also added support for pagestyle
> completion via TeX-complete-list (sorry for merging this into one
> email, but the last change doesn't need a separate email, I think).

--8<---------------cut here---------------start------------->8---
+    (TeX-auto-add-type "amsthmstyle" "LaTeX")
+    (LaTeX-add-amsthmstyles "plain" "definition" "remark")
+    (defvar LaTeX-auto-savebox-regexp-list
+      '(("\\\\newtheoremstyle{\\\\([A-Za-z]+\\)}?" 1 LaTeX-auto-amsthmstyle))
+      "List of regular expressions matching AMS-LaTeX theoremstyles only.")
+    (setq TeX-complete-list
+          (append '(("\\\\newtheoremstyle{\\([A-Za-z]*\\)" 1
+                     LaTeX-amsthmstyle-list "}"))
+                  TeX-complete-list))
--8<---------------cut here---------------end--------------->8---

What's the purpose of the defvar `LaTeX-auto-savebox-regexp-list'?  It's
already defined.  And what do AMS theme styles have to do with

The pagestyle-patch is fine and I've committed it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]