summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/dox
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-28 23:54:47 +0000
committerKarl Berry <karl@freefriends.org>2009-09-28 23:54:47 +0000
commite1ad2371d28982edecd1e4f12ff42cdb6f15dcd6 (patch)
tree3c69d6e5f4b548cb35e1c87163cd2691ff100a0e /Master/texmf-dist/doc/latex/dox
parentaa68074d07abe15fed1b4269d79c8c7567702100 (diff)
dox 2.1 (28sep09)
git-svn-id: svn://tug.org/texlive/trunk@15539 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/dox')
-rw-r--r--Master/texmf-dist/doc/latex/dox/NEWS6
-rw-r--r--Master/texmf-dist/doc/latex/dox/dox.el25
-rw-r--r--Master/texmf-dist/doc/latex/dox/dox.pdfbin114170 -> 119743 bytes
-rw-r--r--Master/texmf-dist/doc/latex/dox/header.inc2
4 files changed, 32 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/dox/NEWS b/Master/texmf-dist/doc/latex/dox/NEWS
index bdd77517df2..865bcc8a5f1 100644
--- a/Master/texmf-dist/doc/latex/dox/NEWS
+++ b/Master/texmf-dist/doc/latex/dox/NEWS
@@ -17,6 +17,12 @@ version 1999/06/01 or later.
DoX consists of the files listed in the file `README'.
+* Version 2.1
+=============
+** New lisp functions doxitem[s]
+to register new documentation environments with AUC-TeX.
+
+
* Version 2.0
=============
** Optional argument to \doxitem
diff --git a/Master/texmf-dist/doc/latex/dox/dox.el b/Master/texmf-dist/doc/latex/dox/dox.el
index ca6496fb870..04638176083 100644
--- a/Master/texmf-dist/doc/latex/dox/dox.el
+++ b/Master/texmf-dist/doc/latex/dox/dox.el
@@ -37,6 +37,31 @@
'("doxitem" [ "Options" ]
"Function name" "Environment name" "Index category name")))))
+(defun doxitem (envname)
+ "Register a new environment ENVNAME with AUC-TeX.
+
+The effect is to make docTeX mode treat this new environment just like
+the macro and environment ones. Currently, this means avoiding inner
+indentation.
+
+ENVNAME is actually a regexp appearing in a logical group.
+This means that you can register several environments simultaneously
+by means or regexp combination."
+ (make-local-variable 'docTeX-indent-inner-fixed)
+ (push (list
+ (concat (regexp-quote TeX-esc)
+ "\\(begin\\|end\\)[ \t]*{\\("
+ envname
+ "\\)\\*?}")
+ 0 nil)
+ docTeX-indent-inner-fixed))
+
+(defun doxitems (&rest envnames)
+ "Register environments ENVNAMES with AUC-TeX.
+See the function `doxitem' for more information."
+ (mapc #'doxitem envnames))
+
+
;;; Local variables:
diff --git a/Master/texmf-dist/doc/latex/dox/dox.pdf b/Master/texmf-dist/doc/latex/dox/dox.pdf
index ecc1d727932..1bf45de595d 100644
--- a/Master/texmf-dist/doc/latex/dox/dox.pdf
+++ b/Master/texmf-dist/doc/latex/dox/dox.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/dox/header.inc b/Master/texmf-dist/doc/latex/dox/header.inc
index 163ed9c6f68..64062065dae 100644
--- a/Master/texmf-dist/doc/latex/dox/header.inc
+++ b/Master/texmf-dist/doc/latex/dox/header.inc
@@ -37,7 +37,7 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-\ProvidesPackage{dox}[2009/09/21 v2.0 Extensions to the doc package]
+\ProvidesPackage{dox}[2009/09/28 v2.1 Extensions to the doc package]
\endinput
%%