emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex a76afdf 49/78: Add abstract env only to classes


From: Tassilo Horn
Subject: [elpa] externals/auctex a76afdf 49/78: Add abstract env only to classes defining it.
Date: Mon, 19 Oct 2015 09:10:58 +0000

branch: externals/auctex
commit a76afdf6fec49e2a81d5513aacc1700acb05c33a
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Add abstract env only to classes defining it.
    
    * latex.el (LaTeX-common-initialization): Remove "abstract"
    environment, it is not defined in latex.ltx.
    
    * style/amsart.el ("amsart"): Add "abstract" environment.
    
    * style/amsbook.el ("amsbook"): Ditto.
    
    * style/article.el ("article"): Ditto.
    
    * style/memoir.el ("memoir"): Ditto.
    
    * style/report.el ("report"): Ditto.
    
    * style/scrartcl.el ("scrartcl"): Ditto.
    
    * style/scrreprt.el ("scrreprt"): Ditto.
---
 ChangeLog         |   19 +++++++++++++++++++
 latex.el          |    2 +-
 style/amsart.el   |    3 ++-
 style/amsbook.el  |    3 ++-
 style/article.el  |    3 ++-
 style/memoir.el   |    2 ++
 style/report.el   |    5 +++--
 style/scrartcl.el |    3 ++-
 style/scrreprt.el |    1 +
 9 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a585737..3fd1716 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2015-09-25  Mos� Giordano  <address@hidden>
+
+       * latex.el (LaTeX-common-initialization): Remove "abstract"
+       environment, it is not defined in latex.ltx.
+
+       * style/amsart.el ("amsart"): Add "abstract" environment.
+
+       * style/amsbook.el ("amsbook"): Ditto.
+
+       * style/article.el ("article"): Ditto.
+
+       * style/memoir.el ("memoir"): Ditto.
+
+       * style/report.el ("report"): Ditto.
+
+       * style/scrartcl.el ("scrartcl"): Ditto.
+
+       * style/scrreprt.el ("scrreprt"): Ditto.
+
 2015-09-24  Mos� Giordano  <address@hidden>
 
        * tex.el (TeX-doc): Use default argument of `completing-read'.
diff --git a/latex.el b/latex.el
index 2aa2d94..0db24fd 100644
--- a/latex.el
+++ b/latex.el
@@ -5971,7 +5971,7 @@ i.e. you do _not_ have to cater for this yourself by 
adding \\\\' or $."
 
    "sloppypar" "picture" "tabbing" "verbatim" "verbatim*"
    "flushright" "flushleft" "displaymath" "math" "quote" "quotation"
-   "abstract" "center" "titlepage" "verse" "eqnarray*"
+   "center" "titlepage" "verse" "eqnarray*"
 
    ;; The following are not defined in latex.el, but in a number of
    ;; other style files.  I'm to lazy to copy them to all the
diff --git a/style/amsart.el b/style/amsart.el
index 8e3ae5c..26a054c 100644
--- a/style/amsart.el
+++ b/style/amsart.el
@@ -5,7 +5,8 @@
 (TeX-add-style-hook "amsart"
  (function
   (lambda ()
-    (TeX-run-style-hooks "amsmath" "amsthm")))
+    (TeX-run-style-hooks "amsmath" "amsthm")
+    (LaTeX-add-environments "abstract")))
  LaTeX-dialect)
 
 ;;; amsart.el ends here.
diff --git a/style/amsbook.el b/style/amsbook.el
index 192b807..0bdbe3a 100644
--- a/style/amsbook.el
+++ b/style/amsbook.el
@@ -5,7 +5,8 @@
 (TeX-add-style-hook "amsbook"
  (function
   (lambda ()
-    (TeX-run-style-hooks "amsmath" "amsthm")))
+    (TeX-run-style-hooks "amsmath" "amsthm")
+    (LaTeX-add-environments "abstract")))
  LaTeX-dialect)
 
 ;;; amsbook.el ends here.
diff --git a/style/article.el b/style/article.el
index d4842f1..4bfd881 100644
--- a/style/article.el
+++ b/style/article.el
@@ -14,7 +14,8 @@
    (LaTeX-largest-level-set "section")
    (LaTeX-add-counters "part" "section" "subsection" "subsubsection" 
"paragraph"
                       "subparagraph" "figure" "table")
-   (LaTeX-add-pagestyles "headings" "myheadings"))
+   (LaTeX-add-pagestyles "headings" "myheadings")
+   (LaTeX-add-environments "abstract"))
  LaTeX-dialect)
 
 ;;; article.el ends here
diff --git a/style/memoir.el b/style/memoir.el
index 68b74dc..563adbe 100644
--- a/style/memoir.el
+++ b/style/memoir.el
@@ -65,6 +65,8 @@
 
     "leadpagetoclevel")
 
+   (LaTeX-add-environments "abstract")
+
    ;; Emulated packages.  The `memoir' class contains a list of files
    ;; emulated at the end of the class-file
    (TeX-run-style-hooks
diff --git a/style/report.el b/style/report.el
index 6a4e638..7fa96b2 100644
--- a/style/report.el
+++ b/style/report.el
@@ -11,11 +11,12 @@
 
 (TeX-add-style-hook
  "report"
- (lambda () 
+ (lambda ()
    (LaTeX-largest-level-set "chapter")
    (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection"
                       "paragraph" "subparagraph" "figure" "table")
-   (LaTeX-add-pagestyles "headings" "myheadings"))
+   (LaTeX-add-pagestyles "headings" "myheadings")
+   (LaTeX-add-environments "abstract"))
  LaTeX-dialect)
 
 ;;; report.el ends here
diff --git a/style/scrartcl.el b/style/scrartcl.el
index 74b83d5..101ce1c 100644
--- a/style/scrartcl.el
+++ b/style/scrartcl.el
@@ -20,7 +20,8 @@
    (lambda ()
      (LaTeX-largest-level-set "section")
      ;; load basic definitons
-     (TeX-run-style-hooks "scrbase"))
+     (TeX-run-style-hooks "scrbase")
+     (LaTeX-add-environments "abstract"))
    LaTeX-dialect)
 
 ;;; scrartcl.el ends here
diff --git a/style/scrreprt.el b/style/scrreprt.el
index 57ec0af..636b14e 100644
--- a/style/scrreprt.el
+++ b/style/scrreprt.el
@@ -43,6 +43,7 @@
     '("setpartpreamble" [ TeX-arg-KOMA-setpreamble ] [ "Width" ] t)
     '("setchapterpreamble" [ TeX-arg-KOMA-setpreamble ] [ "Width" ] t)
     '("dictum" [ "Author" ] t))
+   (LaTeX-add-environments "abstract")
    (LaTeX-section-list-add-locally '("addchap" 1))
    (make-local-variable 'LaTeX-section-label)
    (setq LaTeX-section-label (append



reply via email to

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