diff --new-file -r sgml-tools-1.0.9-org/lib/SGMLTools/Html2Html.pm sgml-tools-1.0.9/lib/SGMLTools/Html2Html.pm
246c246
<     $outfh->print("<HR>\n") unless ($top);
---
>     $outfh->print("<HR NOSHADE SIZE=\"1\">\n") unless ($top);
253,260c253
<     # Next link (first)
<     my $next = $use_imgs  
<                   ? qq(<IMG SRC="next.gif" ALT="$nextlabel">)
<                   : qq($nextlabel);
<     $next = qq(<A HREF="$firstname-$myfilenum.$fileext">$next</A>)
<        if ($myfilenum < $filecount);
<     $next = join "", $next, "\n";
<     $outfh->print($next);
---
>     $outfh->print("<CENTER>\n");
263,264c256,260
<     my $prev = $use_imgs  
<                   ? qq(<IMG SRC="prev.gif" ALT="$prevlabel">)
---
>     my $prev;
>     if ($myfilenum >= 3)
>     {
>       $prev = $use_imgs  
>                   ? qq(<IMG SRC="prev_on.gif" ALT="$prevlabel" BORDER="0">)
265a262,268
>     }
>     else
>     {
>       $prev = $use_imgs  
>                   ? qq(<IMG SRC="prev_off.gif" ALT="$prevlabel" BORDER="0">)
>                   : qq($prevlabel);
>     }
267c270
<                      qq(.$fileext">$prev</A>)
---
>                      qq(.$fileext" REL="prev">$prev</A>)
269c272
<     $prev = join "", $prev, "\n";
---
>     $prev = join "", $prev, "";
273,274c276,286
<     my $toc = $use_imgs 
<                 ? qq(<IMG SRC="toc.gif" ALT="$toclabel">)
---
>     my $toc;
>     if ($outfh->fileno != STDOUT->fileno)
>     {
>       $toc = $use_imgs 
>                 ? qq(<IMG SRC="toc_on.gif" ALT="$toclabel" BORDER="0">)
>                 : qq($toclabel);
>     }
>     else
>     {
>       $toc = $use_imgs 
>                 ? qq(<IMG SRC="toc_off.gif" ALT="$toclabel" BORDER="0">)
275a288
>     }
277c290
<                     &section_num($secnr, 0), qq(">$toc</A>)
---
>                     &section_num($secnr, 0), qq(" REL="contents">$toc</A>)
279c292
<     $toc = join "", $toc, "\n";
---
>     $toc = join "", $toc, "";
282c295,316
<     print($outfh "<HR>\n") if ($top);
---
>     # Next link (first)
>     my $next;
>     if ($myfilenum < $filecount)
>     {
>       $next = $use_imgs  
>                   ? qq(<IMG SRC="next_on.gif" ALT="$nextlabel" BORDER="0">)
>                   : qq($nextlabel);
>     }
>     else
>     {
>       $next = $use_imgs  
>                   ? qq(<IMG SRC="next_off.gif" ALT="$nextlabel" BORDER="0">)
>                   : qq($nextlabel);
>     }
>     $next = qq(<A HREF="$firstname-$myfilenum.$fileext" REL="next">$next</A>)
>        if ($myfilenum < $filecount);
>     $next = join "", $next, "\n";
>     $outfh->print($next);
> 
>     $outfh->print("</CENTER>\n");
> 
>     print($outfh "<HR NOSHADE SIZE=\"1\">\n") if ($top);
343c377
<     $outfh->print("</HEAD>\n<BODY>\n");
---
>     $outfh->print("</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\">\n");
diff --new-file -r sgml-tools-1.0.9-org/lib/dist/fmt_latex2e.pl sgml-tools-1.0.9/lib/dist/fmt_latex2e.pl
18a19,26
> # ps2pdf available?
> my $values = [ "dvi", "tex", "ps" ];
> my $pdfdir;
> foreach $pdfdir (split (":", $ENV{'PATH'}))
> {
>     $values =  [ "dvi", "tex", "ps", "pdf" ] if -x "$pdfdir/ps2pdf";
> }
> 
27c35
<      'values' => [ "dvi", "tex", "ps" ], short => "o" },
---
>      'values' => $values, short => "o" },
169c177,179
<       $latex2e->{makeindex})
---
>       $latex2e->{makeindex} ||
>       $latex2e->{output} eq "pdf" ||
>       $latex2e->{output} eq "ps")    
181c191,201
<             }  
---
>             }
> 	  if ($latex2e->{output} eq "ps" ||
>               $latex2e->{output} eq "pdf")
>             {
>  	      $_ = $_ . "\\usepackage{palatino}\n" 
>                 if (/^\\documentclass/);
>               $_ = $_ . "\\usepackage\[ps2pdf,colorlinks=true,citecolor=black,linkcolor=black,pagecolor=black,filecolor=black,menucolor=black,urlcolor=black\]{hyperref}\n" 
> 		if (/^\\usepackage{epsfig}/);
>               $_ = "\\def\\htmlurl#1#2{\\href{#1}{#2}}\n"  
> 	        if (/^\\def\\htmlurl/);
> 	    }
239,240c259,267
<   $global->{debug} || unlink ("$filename.dvi", "$filename.tex");
< 
---
>   
>   if ($latex2e->{output} eq "ps")
>     {
>       $global->{debug} || unlink ("$filename.dvi", "$filename.tex", "$filename.out");
>       return 0;
>     }
>    
>   `ps2pdf -sPAPERSIZE=$global->{papersize} $filename.ps`;
>   $global->{debug} || unlink ("$filename.dvi", "$filename.tex", "$filename.ps", "$filename.out");
diff --new-file -r sgml-tools-1.0.9-org/lib/dist/sgmltool/html/mapping sgml-tools-1.0.9/lib/dist/sgmltool/html/mapping
69,70c69,70
< <abstract>	+	"<P><HR>\n<EM>"
< </abstract>		"</EM>\n<HR>"		+
---
> <abstract>	+	"<P><HR NOSHADE SIZE=1>\n<FONT SIZE=-1 FACE=\"Helvetica, Arial\">"
> </abstract>		"</FONT>\n<HR NOSHADE SIZE=1>"		+
diff --new-file -r sgml-tools-1.0.9-org/lib/dist/sgmltool/latex2e/mapping sgml-tools-1.0.9/lib/dist/sgmltool/latex2e/mapping
15a16
> 			"\\def\\htmlurl#1#2{#2}\n"
30a32
> 			"\\def\\htmlurl#1#2{#2}\n"
46a49
> 			"\\def\\htmlurl#1#2{#2}\n"
261c264
< <htmlurl>		"\\onlynameurl{[NAME]}"
---
> <htmlurl>		"\\htmlurl{[URL]}{[NAME]}"
297,298c300,301
< <quote> +       "\\begin{quotation}"    +
< </quote>        +       "\\end{quotation}"      +
---
> <quote>		+       "\\begin{quote}"    +
> </quote>        +       "\\end{quote}"      +
