Hi, The TODO file mentioned that it would be nice to have completion for counters. Mose Giordano did this, but some style files have to have some counters appended. I've attached patches for memoir.el, article.el, book.el and report.el Actually, it appears that latex.ltx defines the counters tocdepth and secnumdepth, too, so maybe these two should instead be in latex.el and not in the style files?
Memoir defines a few more counters, but I think they should be included
in style files, rather than in memoir.el I think the counters that are
valid for only memoir are now present in the patch.
Since there is now support for completion for counters, could someone
please update the TODO file? It's not under version control, so I don't
know if changes should be recorded in the ChangeLog file.
ChangeLog entries. I'm in doubt whether ("report") etc. is needed. It
was what M-x add-change-log-entry proposed.
2013-01-15 Mads Jensen <[email protected]>
* style/report.el ("report"): Added counters specific for the
report class.
* style/book.el ("book"): Added counters specific for the book
class.
* style/memoir.el ("memoir"): Added counters specific for the
memoir class.
* style/article.el ("article"): Added counters specific for the
article class.
--
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
+45 6168 8518
My brain is my second favorite organ.
-- Woody Allen
Index: article.el =================================================================== RCS file: /sources/auctex/auctex/style/article.el,v retrieving revision 1.4 diff -u -r1.4 article.el --- article.el 17 Mar 2005 10:02:06 -0000 1.4 +++ article.el 15 Jan 2013 10:35:34 -0000 @@ -7,6 +7,11 @@ (TeX-add-style-hook "article" (lambda () - (LaTeX-largest-level-set "section"))) + (LaTeX-largest-level-set "section") + ;; article.cls defines the following counters in addition to the ones + ;; defined in `latex.ltx' + (LaTeX-add-counters "part" "section" "subsection" "subsubsection" + "paragraph" "subparagraph" "figure" "table" "secnumpth" + "tocdepth"))) ;;; article.el ends here
Index: book.el =================================================================== RCS file: /sources/auctex/auctex/style/book.el,v retrieving revision 1.5 diff -u -r1.5 book.el --- book.el 17 Mar 2005 10:02:06 -0000 1.5 +++ book.el 15 Jan 2013 10:35:04 -0000 @@ -6,7 +6,10 @@ (TeX-add-style-hook "book" - (lambda () - (LaTeX-largest-level-set "chapter"))) + (lambda () + (LaTeX-largest-level-set "chapter") + (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection" + "paragraph" "subparagraph" "figure" "table" "tocdepth" + "secnumdepth"))) ;;; book.el ends here
Index: report.el =================================================================== RCS file: /sources/auctex/auctex/style/report.el,v retrieving revision 1.3 diff -u -r1.3 report.el --- report.el 17 Mar 2005 10:02:06 -0000 1.3 +++ report.el 15 Jan 2013 10:22:07 -0000 @@ -7,6 +7,8 @@ (TeX-add-style-hook "report" (lambda () - (LaTeX-largest-level-set "chapter"))) + (LaTeX-largest-level-set "chapter") + (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection" + "paragraph" "subparagraph"))) ;;; report.el ends here
Index: memoir.el
===================================================================
RCS file: /sources/auctex/auctex/style/memoir.el,v
retrieving revision 1.1
diff -u -u -r1.1 memoir.el
--- memoir.el 14 Jan 2013 19:21:55 -0000 1.1
+++ memoir.el 15 Jan 2013 15:03:47 -0000
@@ -77,6 +77,11 @@
"tabularx" "titleref" "titling" "tocbibind" "tocloft"
"verbatim" "verse")
- (LaTeX-largest-level-set "chapter")))
+ (LaTeX-largest-level-set "chapter")
+ ;; counters defined by `memoir.cls'
+ (LaTeX-add-counters "part" "chapter" "section" "subsection" "subsubsection"
+ "paragraph" "subparagraph" "storedpagenumber" "lastpage"
+ "lastsheet" "sheetsequence" "secnumdepth" "tocdepth"
+ "lofdepth" "lotdepth")))
;;; memoir.el ends here
signature.asc
Description: OpenPGP digital signature
_______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
