[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/doc/auctex.texi,v
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/doc/auctex.texi,v |
Date: |
Sun, 26 Dec 2010 14:49:47 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 10/12/26 14:49:47
Index: auctex.texi
===================================================================
RCS file: /cvsroot/auctex/auctex/doc/auctex.texi,v
retrieving revision 1.305
retrieving revision 1.306
diff -u -b -r1.305 -r1.306
--- auctex.texi 24 Jun 2010 20:59:03 -0000 1.305
+++ auctex.texi 26 Dec 2010 14:49:47 -0000 1.306
@@ -3698,17 +3698,22 @@
(LaTeX-largest-level-set "chapter")))
@end lisp
-This file specifies that the largest kind of section in a @LaTeX{} document
-using the book document style is chapter. The interesting thing to
-notice is that the style file defines an (anonymous) function, and adds it
-to the list of loaded style hooks by calling @code{TeX-add-style-hook}.
+The example is from the @AUCTeX{} sources and is loaded for any @LaTeX{}
+document using the book document class (or style before @LaTeX{}2e).
+The file specifies that the largest kind of section in such a document
+is chapter. The interesting thing to notice is that the style file
+defines an (anonymous) function, and adds it to the list of loaded style
+hooks by calling @code{TeX-add-style-hook}.
-The first time the user indirectly tries to access some style specific
+The first time the user indirectly tries to access some style-specific
information, such as the largest sectioning command available, the style
hooks for all files directly or indirectly read by the current document
-is executed. The actual files will only be evaluated once, but the
+are executed. The actual files will only be evaluated once, but the
hooks will be called for each buffer using the style file.
+Note that the basename of the style file and the name of the style hook
+should usually be identical.
+
@defun TeX-add-style-hook @var{style} @var{hook}
Add @var{hook} to the list of functions to run when we use the @TeX{}
file @var{style}.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] Changes to auctex/doc/auctex.texi,v,
Ralf Angeli <=