diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/dox/dox.el')
-rw-r--r-- | Master/texmf-dist/doc/latex/dox/dox.el | 25 |
1 files changed, 25 insertions, 0 deletions
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: |