From 9b6f1d24f9e2f9876df4da6586232eb24f8c4c40 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 13 Jan 1998 04:03:02 +0000 Subject: [PATCH] Override several functions from the stock latex2html to support the module index. It works, it's ugly, and would probably have to be completely redone if we changed latex2html versions. See the comments. ;-( On the other hand, it works. ;-) (Wait for myformat.perl checkin as well.) --- Doc/.latex2html-init | 95 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/Doc/.latex2html-init b/Doc/.latex2html-init index 299a471073..090cdfdd94 100644 --- a/Doc/.latex2html-init +++ b/Doc/.latex2html-init @@ -219,4 +219,99 @@ sub clean_key { } +$idx_module_mark = ''; +$idx_module_title = 'Module Index'; +$idxmodulefile = ''; + +sub add_module_idx { + print "\nDoing the module index ..."; + local($key, @keys, $index); + $index = "

"; + @keys = keys %Modules; + @keys = sort keysort @keys; + foreach $key (@keys) { + $index .= "$Modules{$key}$key
\n" + } + s/$idx_module_mark/$index

/o; +} + + +sub remove_general_markers { + s/$lof_mark/