diff --git a/Doc/.latex2html-init b/Doc/.latex2html-init index 481b956afd3..96962935695 100644 --- a/Doc/.latex2html-init +++ b/Doc/.latex2html-init @@ -95,4 +95,105 @@ sub process_command { $ref_contents; } +sub top_navigation_panel { + + # Now add a few buttons with a space between them + "
\n" +} + +sub bot_navigation_panel { + + # Start with a horizontal rule (3-d dividing line) + "\n\n" +} + + +# similar to make_index_entry(), but includes the string in the result +# instead of the dummy filler. +# +sub make_str_index_entry { + local($br_id,$str) = @_; + # If TITLE is not yet available (i.e the \index command is in the title + # of the current section), use $ref_before. + $TITLE = $ref_before unless $TITLE; + # Save the reference + local($nstr) = "$str###" . ++$global{'max_id'}; # Make unique + $index{$nstr} .= &make_half_href("$CURRENT_FILE#$br_id"); + "$str<\/a>"; +} + +sub add_idx { + print "\nDoing the index ..."; + local($key, $str, @keys, $index, $level, $count, + @previous, @current); + @keys = keys %index; + @keys = sort keysort @keys; + $level = 0; + foreach $key (@keys) { + @current = split(/!/, $key); + $count = 0; + while ($current[$count] eq $previous[$count]) { + $count++; + } + while ($count > $level) { + $index .= "