This commit is contained in:
gferg 2001-07-05 17:34:07 +00:00
parent a7d338158a
commit fa6832838a
2 changed files with 7 additions and 5 deletions

View File

@ -8,9 +8,9 @@
# thru htmldoc. # thru htmldoc.
# #
# log: # log:
# 16Oct2000 - initial entry <gferg (at) sgi.com> # 16Oct2000 - 0.1 - initial entry <gferg (at) sgi.com>
# 03Apr2001 - fix for <preface> # 03Apr2001 - 0.2 - fix for <preface>
# # 05Jul2001 - 0.3 - fix for <tt> and -f
# #
sub fix_print_html { sub fix_print_html {
@ -123,6 +123,8 @@ sub fix_print_html {
$buf =~ s/><[\/]*THEAD//g; $buf =~ s/><[\/]*THEAD//g;
$buf =~ s/TYPE=\"1\"\n//gim; $buf =~ s/TYPE=\"1\"\n//gim;
$buf =~ s/<P\nCLASS="LITERALLAYOUT"(.*?)<\/P/<P CLASS="LITERALLAYOUT"><FONT FACE=\"courier\"$1<\/FONT><\/P/gms;
if( $is_article == 0 ) { if( $is_article == 0 ) {
# for books...decrement the headers by 1 and then re-set the # for books...decrement the headers by 1 and then re-set the

View File

@ -52,12 +52,12 @@ $fname_wo_ext =~ s/\.[\w]+$//;
# #
&fix_print_html($ARGV[0], 'body.html', 'title.html'); &fix_print_html($ARGV[0], 'body.html', 'title.html');
my($cmd) = "htmldoc --size universal -t pdf -f ${fname_wo_ext}.pdf " . my($cmd) = "htmldoc --size universal -t pdf -f ${fname_wo_ext}.pdf " .
"--firstpage p1 --titlefile title.html body.html"; "--firstpage p1 --titlefile title.html body.html";
# For postscript output; append onto the above cmd string: # For postscript output; append onto the above cmd string:
# #
# "; htmldoc --size universal -t ps -f -f ${fname_wo_ext}.ps " . # "; htmldoc --size universal -t ps -f ${fname_wo_ext}.ps " .
# "--firstpage p1 --titlefile title.html body.html"; # "--firstpage p1 --titlefile title.html body.html";
# #
system($cmd); system($cmd);