Hi all,

I would like to enhance the support for Japanese class files in AUCTeX.
May I change Makefile.in as the attached diff?  As you can see, this
change breaks the three-files-per-row format partially.  Or should I
stick to preserving the format?

[reason for this change]
I'm going to add four new AUCTeX style files, tarticle.el, tbook.el,
treport.el and jsreport.el.  The formar three correspond to
t{article,book,report}.cls, which are are counterparts of 
j{article,book,report}.cls and designed for vertical writing.  I think
inserting these three next to j{article,book,report}.el in Makefile.in
is not a problem.  It is the last one, jsreport.el, that breaks the
three-files-per-row format.

This jsreport.el is for jsreport.cls released newly this month --- you
can retrieve it by updating TeXLive with tlmgr --- and forms `jsclasses'
family together with jsarticle.cls and jsbook.cls.  So I think
js{article,book,report}.el look coherent if I pick up jsarticle.el and
jsbook.el from other lines in Makefile.in and align the three in the
same way as j-{article,book,report}.el, j{article,book,report}.el and
t{article,book,report}.el.

What do you think about it?

Regards,
Ikumi Keita

diff -r a73c217d6546 Makefile.in
--- a/Makefile.in	Sat Mar 18 10:09:44 2017 +0100
+++ b/Makefile.in	Thu Mar 23 15:20:47 2017 +0900
@@ -97,6 +97,8 @@
 	   style/dutch.el     style/german.el    style/dk.el \
 	   style/j-article.el style/j-book.el    style/j-report.el \
 	   style/jarticle.el  style/jbook.el     style/jreport.el \
+	   style/tarticle.el  style/tbook.el     style/treport.el \
+	   style/jsarticle.el style/jsbook.el    style/jsreport.el \
 	   style/dinbrief.el  style/virtex.el    style/plfonts.el \
 	   style/plhb.el      style/harvard.el	 style/swedish.el \
 	   style/danish.el    style/slovak.el    style/czech.el \
@@ -113,8 +115,8 @@
 	   style/alltt.el     style/italian.el   style/doc.el \
 	   style/ltxdoc.el    style/ltx-base.el	 style/units.el \
 	   style/nicefrac.el  style/url.el       style/listings.el \
-	   style/jurabib.el   style/csquotes.el  style/jsarticle.el \
-	   style/jsbook.el    style/babel.el     style/dk-bib.el \
+	   style/jurabib.el   style/csquotes.el \
+	   style/babel.el     style/dk-bib.el \
 	   style/inputenc.el  style/frenchb.el   style/francais.el \
 	   style/MinionPro.el style/pdfsync.el   style/polish.el \
 	   style/polski.el    style/icelandic.el style/comment.el \
diff -r a73c217d6546 style/j-book.el
--- a/style/j-book.el	Sat Mar 18 10:09:44 2017 +0100
+++ b/style/j-book.el	Thu Mar 23 15:20:47 2017 +0900
@@ -5,7 +5,7 @@
 (TeX-add-style-hook
  "j-book"
  (lambda ()
-   (LaTeX-largest-level-set "chapter"))
+   (LaTeX-largest-level-set "part"))
  LaTeX-dialect)
 
 ;;; j-book.el ends here
diff -r a73c217d6546 style/jarticle.el
--- a/style/jarticle.el	Sat Mar 18 10:09:44 2017 +0100
+++ b/style/jarticle.el	Thu Mar 23 15:20:47 2017 +0900
@@ -1,11 +1,23 @@
-;;; jarticle.el - Special code for jarticle style.
+;;; jarticle.el - Special code for jarticle class.
 
 ;;; Code:
 
+(defvar LaTeX-jarticle-class-options
+  '("a4paper" "a5paper" "b4paper" "b5paper" "a4j" "a5j" "b4j" "b5j"
+    "a4p" "b4p" "b5p" "10pt" "11pt" "12pt" "landscape" "tombow" "tombo"
+    "mentuke" "oneside" "twoside" "onecolumn" "twocolumn"
+    "titlepage" "notitlepage" "leqno" "fleqn"
+    "openbib" "disablejfam" "mathrmmc" "draft" "final")
+  "Class options for the jarticle class.")
+
 (TeX-add-style-hook
  "jarticle"
  (lambda ()
-   (LaTeX-largest-level-set "section"))
+   (LaTeX-largest-level-set "section")
+   (LaTeX-add-counters "part" "section" "subsection" "subsubsection" "paragraph"
+		       "subparagraph" "figure" "table")
+   (LaTeX-add-pagestyles "headings" "myheadings")
+   (LaTeX-add-environments "abstract"))
  LaTeX-dialect)
 
 ;;; jarticle.el ends here
diff -r a73c217d6546 style/jbook.el
--- a/style/jbook.el	Sat Mar 18 10:09:44 2017 +0100
+++ b/style/jbook.el	Thu Mar 23 15:20:47 2017 +0900
@@ -1,11 +1,22 @@
-;;; jbook.el - Special code for jbook style.
+;;; jbook.el - Special code for jbook class.
 
 ;;; Code:
 
+(defvar LaTeX-jbook-class-options
+  '("a4paper" "a5paper" "b4paper" "b5paper" "a4j" "a5j" "b4j" "b5j"
+    "a4p" "b4p" "b5p" "10pt" "11pt" "12pt" "landscape" "tombow" "tombo"
+    "mentuke" "oneside" "twoside" "onecolumn" "twocolumn"
+    "titlepage" "notitlepage" "openright" "openany" "leqno" "fleqn"
+    "openbib" "disablejfam" "mathrmmc" "draft" "final")
+  "Class options for the jbook class.")
+
 (TeX-add-style-hook
  "jbook"
  (lambda ()
-   (LaTeX-largest-level-set "chapter"))
+   (LaTeX-largest-level-set "part")
+   (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection"
+		       "paragraph" "subparagraph" "figure" "table")
+   (LaTeX-add-pagestyles "headings" "myheadings"))
  LaTeX-dialect)
 
 ;;; jbook.el ends here
diff -r a73c217d6546 style/jreport.el
--- a/style/jreport.el	Sat Mar 18 10:09:44 2017 +0100
+++ b/style/jreport.el	Thu Mar 23 15:20:47 2017 +0900
@@ -1,12 +1,23 @@
-;;; jreport.el - Special code for jreport style.
+;;; jreport.el - Special code for jreport class.
 
 ;;; Code:
 
+(defvar LaTeX-jreport-class-options
+  '("a4paper" "a5paper" "b4paper" "b5paper" "a4j" "a5j" "b4j" "b5j"
+    "a4p" "b4p" "b5p" "10pt" "11pt" "12pt" "landscape" "tombow" "tombo"
+    "mentuke" "oneside" "twoside" "onecolumn" "twocolumn"
+    "titlepage" "notitlepage" "openright" "openany" "leqno" "fleqn"
+    "openbib" "disablejfam" "mathrmmc" "draft" "final")
+  "Class options for the jreport class.")
+
 (TeX-add-style-hook
  "jreport"
  (lambda ()
-   (LaTeX-largest-level-set "chapter"))
+   (LaTeX-largest-level-set "chapter")
+   (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection"
+		       "paragraph" "subparagraph" "figure" "table")
+   (LaTeX-add-pagestyles "headings" "myheadings")
+   (LaTeX-add-environments "abstract"))
  LaTeX-dialect)
 
-
 ;;; jreport.el ends here
diff -r a73c217d6546 style/jsarticle.el
--- a/style/jsarticle.el	Sat Mar 18 10:09:44 2017 +0100
+++ b/style/jsarticle.el	Thu Mar 23 15:20:47 2017 +0900
@@ -1,11 +1,27 @@
-;;; jsarticle.el - Special code for jsarticle style.
+;;; jsarticle.el - Special code for jsarticle class.
 
 ;;; Code:
 
+(defvar LaTeX-jsarticle-class-options
+  '("a3paper" "a4paper" "a5paper" "a6paper" "b4paper" "b5paper" "b6paper"
+    "a4j" "a5j" "b4j" "b5j" "a4var" "b5var" "letterpaper" "legalpaper"
+    "executivepaper" "landscape" "slide"
+    "8pt" "9pt" "10pt" "11pt" "12pt" "14pt" "17pt" "20pt" "21pt" "25pt"
+    "30pt" "36pt" "43pt" "12Q" "14Q" "usemag" "nomag" "nomag*"
+    "tombow" "tombo" "mentuke" "oneside" "twoside" "vartwoside"
+    "onecolumn" "twocolumn" "titlepage" "notitlepage" "leqno" "fleqn"
+    "disablejfam" "draft" "final" "mingoth" "wingoth" "jis"
+    "uplatex" "autodetect-engine" "papersize" "english" "jslogo" "nojslogo")
+  "Class options for the jsarticle class.")
+
 (TeX-add-style-hook
  "jsarticle"
  (lambda ()
-   (LaTeX-largest-level-set "section"))
+   (LaTeX-largest-level-set "section")
+   (LaTeX-add-counters "part" "section" "subsection" "subsubsection" "paragraph"
+		       "subparagraph" "figure" "table")
+   (LaTeX-add-pagestyles "headings" "myheadings")
+   (LaTeX-add-environments "abstract"))
  LaTeX-dialect)
 
 ;;; jsarticle.el ends here
diff -r a73c217d6546 style/jsbook.el
--- a/style/jsbook.el	Sat Mar 18 10:09:44 2017 +0100
+++ b/style/jsbook.el	Thu Mar 23 15:20:47 2017 +0900
@@ -1,11 +1,31 @@
-;;; jsbook.el - Special code for jsbook style.
+;;; jsbook.el - Special code for jsbook class.
 
 ;;; Code:
 
+(defvar LaTeX-jsbook-class-options
+  '("a3paper" "a4paper" "a5paper" "a6paper" "b4paper" "b5paper" "b6paper"
+    "a4j" "a5j" "b4j" "b5j" "a4var" "b5var" "letterpaper" "legalpaper"
+    "executivepaper" "landscape" "report"
+    "8pt" "9pt" "10pt" "11pt" "12pt" "14pt" "17pt" "20pt" "21pt" "25pt"
+    "30pt" "36pt" "43pt" "12Q" "14Q" "usemag" "nomag" "nomag*"
+    "tombow" "tombo" "mentuke" "oneside" "twoside" "vartwoside"
+    "onecolumn" "twocolumn" "titlepage" "notitlepage"
+    "openright" "openleft" "openany" "leqno" "fleqn"
+    "disablejfam" "draft" "final" "mingoth" "wingoth" "jis"
+    "uplatex" "autodetect-engine" "papersize" "english" "jslogo" "nojslogo")
+  "Class options for the jsbook class.")
+
 (TeX-add-style-hook
  "jsbook"
- (lambda () 
-   (LaTeX-largest-level-set "chapter"))
+ (lambda ()
+   (if (LaTeX-provided-class-options-member "jsbook" "report")
+       (progn
+	 (LaTeX-largest-level-set "chapter")
+	 (LaTeX-add-environments "abstract"))
+     (LaTeX-largest-level-set "part"))
+   (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection"
+		       "paragraph" "subparagraph" "figure" "table")
+   (LaTeX-add-pagestyles "headings" "myheadings"))
  LaTeX-dialect)
 
 ;;; jsbook.el ends here
diff -r a73c217d6546 style/jsreport.el
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/style/jsreport.el	Thu Mar 23 15:20:47 2017 +0900
@@ -0,0 +1,28 @@
+;;; jsreport.el - Special code for jsreport class.
+
+;;; Code:
+
+(defvar LaTeX-jsreport-class-options
+  '("a3paper" "a4paper" "a5paper" "a6paper" "b4paper" "b5paper" "b6paper"
+    "a4j" "a5j" "b4j" "b5j" "a4var" "b5var" "letterpaper" "legalpaper"
+    "executivepaper" "landscape"
+    "8pt" "9pt" "10pt" "11pt" "12pt" "14pt" "17pt" "20pt" "21pt" "25pt"
+    "30pt" "36pt" "43pt" "12Q" "14Q" "usemag" "nomag" "nomag*"
+    "tombow" "tombo" "mentuke" "oneside" "twoside" "vartwoside"
+    "onecolumn" "twocolumn" "titlepage" "notitlepage"
+    "openright" "openleft" "openany" "leqno" "fleqn"
+    "disablejfam" "draft" "final" "mingoth" "wingoth" "jis"
+    "uplatex" "autodetect-engine" "papersize" "english" "jslogo" "nojslogo")
+  "Class options for the jsreport class.")
+
+(TeX-add-style-hook
+ "jsreport"
+ (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-environments "abstract"))
+ LaTeX-dialect)
+
+;;; jsreport.el ends here
diff -r a73c217d6546 style/tarticle.el
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/style/tarticle.el	Thu Mar 23 15:20:47 2017 +0900
@@ -0,0 +1,15 @@
+;;; tarticle.el - Special code for tarticle class.
+
+;;; Code:
+
+(TeX-load-style "jarticle")
+(defvar LaTeX-tarticle-class-options LaTeX-jarticle-class-options
+  "Class options for the tarticle class.")
+
+(TeX-add-style-hook
+ "tarticle"
+ (lambda ()
+   (TeX-run-style-hooks "jarticle" "plext"))
+ LaTeX-dialect)
+
+;;; tarticle.el ends here
diff -r a73c217d6546 style/tbook.el
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/style/tbook.el	Thu Mar 23 15:20:47 2017 +0900
@@ -0,0 +1,15 @@
+;;; tbook.el - Special code for tbook class.
+
+;;; Code:
+
+(TeX-load-style "jbook")
+(defvar LaTeX-tbook-class-options LaTeX-jbook-class-options
+  "Class options for the tbook class.")
+
+(TeX-add-style-hook
+ "tbook"
+ (lambda ()
+   (TeX-run-style-hooks "jbook" "plext"))
+ LaTeX-dialect)
+
+;;; tbook.el ends here
diff -r a73c217d6546 style/treport.el
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/style/treport.el	Thu Mar 23 15:20:47 2017 +0900
@@ -0,0 +1,15 @@
+;;; treport.el - Special code for treport class.
+
+;;; Code:
+
+(TeX-load-style "jreport")
+(defvar LaTeX-treport-class-options LaTeX-jreport-class-options
+  "Class options for the treport class.")
+
+(TeX-add-style-hook
+ "treport"
+ (lambda ()
+   (TeX-run-style-hooks "jreport" "plext"))
+ LaTeX-dialect)
+
+;;; treport.el ends here
_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to