# -*-perl-*- ###################################################################### # # File: t2h_singular.init init file for singular t2h # # we only redefine things which ar of relevance to singular # all the others we simply "include" # -prefix # Set the output file prefix, prepended to all .html, .png and .pl files. set_from_init_file('PREFIX', 'sing'); # -expand # if set to "tex" (or, "info") expand @iftex and @tex (or, @ifinfo) sections # else, neither expand @iftex, @tex, nor @ifinfo sections @EXPAND = ('html', 'tex'); # if set, creates one html file per node set_from_init_file('SPLIT', 'node'); #if set cross-references are given without section numbers set_from_init_file('SHORT_REF', 1); # if set, chatter about what we are doing set_from_init_file('VERBOSE', 1); # print index summary for 'cp' index set_from_init_file('IDX_SUMMARY', 'cp'); my $T2H_SING_base_images = '../singular_images/'; # inside set_from_init_file('BODYTEXT','lang="en" background="'.${T2H_SING_base_images}.'Mybg.png"'); # after $AFTER_BODY_OPEN = < $PRE_BODY_CLOSE = <\n" . # &$anchor('', $Texi2HTML::HREF{Contents}, "Table of Contents") . # "\n
\n" . # &$anchor('', $Texi2HTML::HREF{About}, "About this document") . # ""; # # &$print_foot_navigation($fh); # print $fh "$SMALL_RULE\n"; # if ($SPLIT) # { # &$print_navigation($fh, $buttons); # &$print_page_foot($fh); # } my $fh = shift; #my $buttons = shift; #my $nwords = shift; my $end_page = shift; my $buttons = \@TOP_BUTTONS; print $fh "
\n" . &$anchor('', $Texi2HTML::HREF{Contents}, "Table of Contents") . "\n
\n" . &$anchor('', $Texi2HTML::HREF{About}, "About this document") . "
"; &$print_foot_navigation($fh); print $fh "$DEFAULT_RULE\n"; #if ($SPLIT) if ($end_page) { print $fh "".&$print_navigation($buttons); &$print_page_foot($fh); } } # footer of page sub T2H_SING_print_page_foot { my $fh = shift; print $fh <             User manual for Singular version $main::value{VERSION}, $main::value{VERSION_DATE}, generated by $Texi2HTML::THISDOC{'program_and_version'}. $PRE_BODY_CLOSE EOT } sub singular_banner { my $result = ''; $result .= <Top EOT # print $fh $result if (defined($fh)); return $result; } # always use bottom navigation set_default('WORDS_IN_PAGE', 0); set_from_init_file('VERTICAL_HEAD_NAVIGATION', 1); @SECTION_BUTTONS = ( \&singular_banner, 'Back', 'Forward', 'FastBack', 'FastForward', 'Up', 'Top', 'Contents', 'Index', 'About' ); @NODE_FOOTER_BUTTONS = @SECTION_BUTTONS; # buttons for misc stuff @MISC_BUTTONS = (\&singular_banner, 'Top', 'Contents', 'Index', 'About'); @TOP_BUTTONS = (\&singular_banner, 'Top', 'Contents', 'Index', 'About'); set_from_init_file('ICONS', 1); if ($T2H_BLUE_BUTTONS) { %ACTIVE_ICONS = ( 'Top', 'blue_top.png', 'Contents', 'blue_dir.png', 'Overview', '', 'Index', 'blue_readme.png', 'Back', 'blue_prev.png', 'FastBack', 'blue_pprev.png', 'Prev', 'blue_pprev.png', 'Up', 'blue_up.png', 'Next', 'blue_nnext.png', 'Forward', 'blue_next.png', 'FastForward', 'blue_nnext.png', 'About' , 'blue_help.png', ' ', '' ); %PASSIVE_ICONS = ( 'Top', 'blue_top.png', 'Contents', 'blue_dir.png', 'Overview', '', 'Index', 'blue_readme.png', 'Back', 'blue_prev.png', 'FastBack', 'blue_pprev.png', 'Prev', 'blue_pprev.png', 'Up', 'blue_up.png', 'Next', 'blue_nnext.png', 'Forward', 'blue_next.png', 'FastForward', 'blue_nnext.png', 'About' , 'blue_help.png', ); } else { %ACTIVE_ICONS = ( 'Top', 'a_top.png', 'Contents', 'a_tableofcon.png', 'Overview', '', 'Index', 'a_index.png', 'Back', 'a_left.png', 'FastBack', 'a_leftdouble.png', 'Prev', 'a_leftdouble.png', 'Up', 'a_up.png', 'Next', 'a_rightdouble.png', 'Forward', 'a_right.png', 'FastForward', 'a_rightdouble.png', 'About' , 'a_help.png', ' ', 'a_empty.png' ); %PASSIVE_ICONS = ( 'Top', 'a_top_na.png', 'Contents', 'a_tableofcon_na.png', 'Overview', '', 'Index', 'a_index_na.png', 'Back', 'a_left_na.png', 'FastBack', 'a_leftdouble_na.png', 'Prev', 'a_leftdouble_na.png', 'Up', 'a_up_na.png', 'Next', 'a_rightdouble_na.png', 'Forward', 'a_right_na.png', 'FastForward', 'a_rightdouble_na.png', 'About' , 'a_help_na.png', ); } foreach my $hash_ref((\%ACTIVE_ICONS, \%PASSIVE_ICONS)) { foreach my $key (keys(%$hash_ref)) { next if ($hash_ref->{$key} eq ''); $hash_ref->{$key} = $T2H_SING_base_images.$hash_ref->{$key}; } } sub T2H_SING_pre_about { return <Singular version $main::value{VERSION}, $main::value{VERSION_DATE}.
For questions and comments about Singular, send email to singular\@mathematik.uni-kl.de.

This document was generated by $Texi2HTML::THISDOC{'program_and_version'} and LaTeX2HTML and is best viewed with a 16 or 18 point screen font.

EOT } $PRE_ABOUT = \&T2H_SING_pre_about; # a whole menu $menu = \&t2h_sing_menu; sub t2h_sing_menu($) { my $text = shift; if ($text =~ /\S/) { return "
\n" . $text. "
\n"; } return ''; } 1; # This must be the last line