Where are the PDF files put together? | topic started 6/30/2002; 9:39:27 AM last post 7/12/2002; 8:34:29 AM |
|
|
Jason Farmer - Re: Where are the PDF files put together? 7/12/2002; 8:34:29 AM (reads: 1850, responses: 0) |
Finally,
a solution to our notorious problem! After a lot of hard work by Ed
Oakes at Radford (thank you again Ed!), we have come across several
solutions to our problems regarding downloading problems in PDF form. Our version of latex2html is latex2html-2002-1 and the changes we needed for everything to work properly on our Solaris system were these... Things that we learned from this were: >Programs used to generate typeset files: (latex2html) >-------------------------------------------------- >latex2html -> CALLS -> ps2img (MUST BE MODIFIED) > >Programs used to generate formatted text: >--------------------------------------- >tth (MUST SET PATH in webwork/system/lib/Global.pm) > >Program used to generate Downloadable files >---------------------------------------- > >NOTE: webwork/system/cgi/cgi-scripts/welcomeAction.pl > calls all of these routines. > >1. If Graphics Exist in file use gif2eps to > convert the gif file to eps. > webwork/system/scripts/gif2eps (requires netpbm) > >2. After tex file is created from various problems > we will use latex (requires teTex) to convert > this to a dvi. > >3. After dvi file is created we use dvips (from teTex) > to create a PS file. > >4. After PS file is created we use gs (from Ghostscript) > to create a PDF file. > FIXES DEPLOYED on July 9th 2002 ========================== > >latex2html Fixes >------------- >1. local/latex2html-99/local.pm MODIFIED > Add "-verbose " to pnmcrop line so that it now reads > as follows: > PNMCROP = '/home/webwork2/local/netpbm/bin/pnmcrop -verbose '; > >2. local/latex2html-99/ps2img MODIFIED > ## -sides added as an additional option when > ## pnmcrop is called with -bot or -$edge > > if ($edge =~ /[tblra]/) { > if ($edge =~ /b/) { $cmd .= "| $PNMCROP -bot -sides " } > elsif ($edge =~ /a/) { $cmd .= "| $PNMCROP " } > else { $cmd .= "| $PNMCROP -$edge -sides " } > } elsif ($edge =~ /s/) { > print "Running $cmd > $tmp\n" if $DEBUG; > rename ($tmp,$in) unless system("$cmd > $tmp"); > > #RRM: shave at most 2 rows of white from the bottom > $cmd = "$PNMCROP -bot -sides < $in "; > > >Ghostscript Fixes >-------------- >Uncompress std and other fonts into the directory >~webwork2/local/share/ghostscript/fonts > >gif2eps Fixes >---------- >Modify webwork/system/scripts/gif2eps and add the >option -nosetpage to the pnmtops command. > >cat $1 | $GIFTOPNM | $PPMTOPGM | $PNMTOPS -noturn -nosetpage 2>/dev/null >> $2 We want to thank everyone once again for the support that Rochester and other WeBWorK users have given! |