1 | # -*-perl-*- |
---|
2 | ###################################################################### |
---|
3 | # |
---|
4 | # File: t2h_singular.init init file for singular t2h |
---|
5 | # |
---|
6 | |
---|
7 | # we only redefine things which ar of relevance to singular |
---|
8 | # all the others we simply "include" |
---|
9 | |
---|
10 | # -prefix |
---|
11 | # Set the output file prefix, prepended to all .html, .gif and .pl files. |
---|
12 | $T2H_PREFIX = 'sing'; |
---|
13 | |
---|
14 | # -expand |
---|
15 | # if set to "tex" (or, "info") expand @iftex and @tex (or, @ifinfo) sections |
---|
16 | # else, neither expand @iftex, @tex, nor @ifinfo sections |
---|
17 | $T2H_EXPAND = "tex"; |
---|
18 | |
---|
19 | # if set, creates one html file per node |
---|
20 | $T2H_SPLIT = 'node'; |
---|
21 | |
---|
22 | #if set cross-references are given without section numbers |
---|
23 | $T2H_SHORT_REF = 1; |
---|
24 | |
---|
25 | # if set, chatter about what we are doing |
---|
26 | $T2H_VERBOSE = 1; |
---|
27 | |
---|
28 | # print index summary for 'cp' index |
---|
29 | $T2H_IDX_SUMMARY = 'cp'; |
---|
30 | |
---|
31 | # inside <BODY ..> |
---|
32 | $T2H_BODYTEXT = 'LANG="EN" BACKGROUND="Mybg.gif"'; |
---|
33 | |
---|
34 | # after <BODY> |
---|
35 | $T2H_AFTER_BODY_OPEN = <<EOT; |
---|
36 | EOT |
---|
37 | |
---|
38 | # before </BODY> |
---|
39 | $T2H_PRE_BODY_CLOSE = <<EOT; |
---|
40 | EOT |
---|
41 | |
---|
42 | # footer of top_page |
---|
43 | |
---|
44 | $T2H_print_Top_footer = \&T2H_SING_print_Top_footer; |
---|
45 | $T2H_print_page_foot = \&T2H_SING_print_page_foot; |
---|
46 | |
---|
47 | sub T2H_SING_print_Top_footer |
---|
48 | { |
---|
49 | my $fh = shift; |
---|
50 | print $fh "<BLOCKQUOTE>\n" . |
---|
51 | t2h_anchor('', $T2H_HREF{Contents}, "Table of Contents") . |
---|
52 | "\n<BR>\n" . |
---|
53 | t2h_anchor('', $T2H_HREF{About}, "About this document") . |
---|
54 | "</BLOCKQUOTE>"; |
---|
55 | |
---|
56 | &$T2H_print_foot_navigation($fh); |
---|
57 | &$T2H_print_page_foot($fh) if $T2H_SPLIT; |
---|
58 | } |
---|
59 | |
---|
60 | # footer of page |
---|
61 | sub T2H_SING_print_page_foot |
---|
62 | { |
---|
63 | my $fh = shift; |
---|
64 | print $fh <<EOT; |
---|
65 | <FONT SIZE="-1"> |
---|
66 | User manual for <A HREF="https://www.singular.uni-kl.de/"><I>Singular</I></A> version $value{VERSION}, $value{VERSION_DATE}, |
---|
67 | generated by <I>texi2html</I>. |
---|
68 | </FONT> |
---|
69 | $T2H_PRE_BODY_CLOSE |
---|
70 | </BODY> |
---|
71 | </HTML> |
---|
72 | EOT |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | sub singular_banner |
---|
77 | { |
---|
78 | my $fh = shift; |
---|
79 | print $fh <<EOT |
---|
80 | <a href="index.htm"><img |
---|
81 | src="singular-icon-transparent.gif" width="50" |
---|
82 | border="0" ALT="Top"></a> |
---|
83 | EOT |
---|
84 | } |
---|
85 | |
---|
86 | # always use bottom navigation |
---|
87 | $T2H_WORDS_IN_PAGE = 0; |
---|
88 | |
---|
89 | $T2H_VERTICAL_HEAD_NAVIGATION = 1; |
---|
90 | @T2H_SECTION_BUTTONS = |
---|
91 | ( |
---|
92 | \&singular_banner, |
---|
93 | 'Back', 'Forward', 'FastBack', 'FastForward', |
---|
94 | 'Up', 'Top', 'Contents', 'Index', 'About' |
---|
95 | ); |
---|
96 | |
---|
97 | # buttons for misc stuff |
---|
98 | @T2H_MISC_BUTTONS = (\&singular_banner, 'Top', 'Contents', 'Index', 'About'); |
---|
99 | |
---|
100 | $T2H_ICONS = 1; |
---|
101 | |
---|
102 | if ($T2H_BLUE_BUTTONS) |
---|
103 | { |
---|
104 | |
---|
105 | %T2H_ACTIVE_ICONS = |
---|
106 | ( |
---|
107 | 'Top', 'blue_top.gif', |
---|
108 | 'Contents', 'blue_dir.gif', |
---|
109 | 'Overview', '', |
---|
110 | 'Index', 'blue_readme.gif', |
---|
111 | 'Back', 'blue_prev.gif', |
---|
112 | 'FastBack', 'blue_pprev.gif', |
---|
113 | 'Prev', 'blue_pprev.gif', |
---|
114 | 'Up', 'blue_up.gif', |
---|
115 | 'Next', 'blue_nnext.gif', |
---|
116 | 'Forward', 'blue_next.gif', |
---|
117 | 'FastForward', 'blue_nnext.gif', |
---|
118 | 'About' , 'blue_help.gif', |
---|
119 | ' ', '' |
---|
120 | ); |
---|
121 | |
---|
122 | %T2H_PASSIVE_ICONS = |
---|
123 | ( |
---|
124 | 'Top', 'blue_top.gif', |
---|
125 | 'Contents', 'blue_dir.gif', |
---|
126 | 'Overview', '', |
---|
127 | 'Index', 'blue_readme.gif', |
---|
128 | 'Back', 'blue_prev.gif', |
---|
129 | 'FastBack', 'blue_pprev.gif', |
---|
130 | 'Prev', 'blue_pprev.gif', |
---|
131 | 'Up', 'blue_up.gif', |
---|
132 | 'Next', 'blue_nnext.gif', |
---|
133 | 'Forward', 'blue_next.gif', |
---|
134 | 'FastForward', 'blue_nnext.gif', |
---|
135 | 'About' , 'blue_help.gif', |
---|
136 | ); |
---|
137 | } |
---|
138 | else |
---|
139 | { |
---|
140 | %T2H_ACTIVE_ICONS = |
---|
141 | ( |
---|
142 | 'Top', 'a_top.gif', |
---|
143 | 'Contents', 'a_tableofcon.gif', |
---|
144 | 'Overview', '', |
---|
145 | 'Index', 'a_index.gif', |
---|
146 | 'Back', 'a_left.gif', |
---|
147 | 'FastBack', 'a_leftdouble.gif', |
---|
148 | 'Prev', 'a_leftdouble.gif', |
---|
149 | 'Up', 'a_up.gif', |
---|
150 | 'Next', 'a_rightdouble.gif', |
---|
151 | 'Forward', 'a_right.gif', |
---|
152 | 'FastForward', 'a_rightdouble.gif', |
---|
153 | 'About' , 'a_help.gif', |
---|
154 | ' ', 'a_empty.gif' |
---|
155 | ); |
---|
156 | |
---|
157 | %T2H_PASSIVE_ICONS = |
---|
158 | ( |
---|
159 | 'Top', 'a_top_na.gif', |
---|
160 | 'Contents', 'a_tableofcon_na.gif', |
---|
161 | 'Overview', '', |
---|
162 | 'Index', 'a_index_na.gif', |
---|
163 | 'Back', 'a_left_na.gif', |
---|
164 | 'FastBack', 'a_leftdouble_na.gif', |
---|
165 | 'Prev', 'a_leftdouble_na.gif', |
---|
166 | 'Up', 'a_up_na.gif', |
---|
167 | 'Next', 'a_rightdouble_na.gif', |
---|
168 | 'Forward', 'a_right_na.gif', |
---|
169 | 'FastForward', 'a_rightdouble_na.gif', |
---|
170 | 'About' , 'a_help_na.gif', |
---|
171 | ); |
---|
172 | } |
---|
173 | |
---|
174 | sub T2H_SING_pre_about |
---|
175 | { |
---|
176 | return <<EOT; |
---|
177 | This document is the user manual for <A HREF="https://www.singular.uni-kl.de/"><I>Singular</I></A> version $value{VERSION}, $value{VERSION_DATE}. |
---|
178 | <BR> |
---|
179 | |
---|
180 | For questions and comments about Singular, send email to <A href="mailto:singular\@mathematik.uni-kl.de">singular\@mathematik.uni-kl.de</a>. |
---|
181 | |
---|
182 | <P></P> |
---|
183 | This document was generated by <I>$THISPROG</I> |
---|
184 | and is best viewed with a 16 or 18 point screen font. |
---|
185 | <P></P> |
---|
186 | EOT |
---|
187 | } |
---|
188 | |
---|
189 | $T2H_PRE_ABOUT = \&T2H_SING_pre_about; |
---|
190 | |
---|
191 | 1; # This must be the last line |
---|