From e1ad2371d28982edecd1e4f12ff42cdb6f15dcd6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 28 Sep 2009 23:54:47 +0000 Subject: dox 2.1 (28sep09) git-svn-id: svn://tug.org/texlive/trunk@15539 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/dox/NEWS | 6 ++++++ Master/texmf-dist/doc/latex/dox/dox.el | 25 +++++++++++++++++++++++++ Master/texmf-dist/doc/latex/dox/dox.pdf | Bin 114170 -> 119743 bytes Master/texmf-dist/doc/latex/dox/header.inc | 2 +- 4 files changed, 32 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/doc/latex') 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 Binary files a/Master/texmf-dist/doc/latex/dox/dox.pdf and b/Master/texmf-dist/doc/latex/dox/dox.pdf 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 %% -- cgit v1.2.3