Re: [l2h] latex2html-2015 problems: chdir to home directory, Illegal seek
On 22 March 2016 at 07:20, Gavin Smithwrote: > Yes, tmp2.pnm has sign 0. size 0, I meant. ___ latex2html mailing list latex2html@tug.org http://tug.org/mailman/listinfo/latex2html
Re: [l2h] latex2html-2015 problems: chdir to home directory, Illegal seek
Thank you for your suggestions and apologies for the delay in replying. Answers below. On 19 February 2016 at 11:59, Shigeharu TAKENOwrote: > shige 02/19 2016 > > > Gavin Smith wrote: > | The second one also gives: > | > | $ /usr/bin/pnmcrop -verbose -bot -sides -black < tmp1.pnm > tmp2.pnm > | pnmcrop: You cannot specify both -sides and either -black or -white > > This command fails. You can check it whether the size of tmp2.pnm equals > zero. Yes, tmp2.pnm has sign 0. > According to config/config.pl, the pnmcrop option "-black" is for old > netpbm (before 9.12), and it may cause the failure. It would be attached > to your bin/pstoimg at configure instruction (config/config.pl has a bug > which it cannot recognize the correct version of Netpbm 10.XX.YY). > > Please edit your bin/pstoimg from > > my $PNMBLACK = ' -black '; > $PNMCROPOPT = $PNMBLACK; > > to > > $PNMCROPOPT = ' -sides '; > > Hope this helps. Thanks a lot, that was the problem. I successfully ran latex2html to create an HTML file with images of an equation in it. ___ latex2html mailing list latex2html@tug.org http://tug.org/mailman/listinfo/latex2html
Re: [l2h] latex2html-2015 problems: chdir to home directory, Illegal seek
On 19 February 2016 at 03:50, Shigeharu TAKENOwrote: > shige 02/19 2016 > > > Gavin Smith wrote: > | There are at least two problems that seem to appear with this: > | * The chdir Perl command is passed an empty string which means it > | changes to my home directory ("/home/g") instead of the directory > | where the input fie is. > > Please try to use the option "-dir ./" instead of "-dir ." This uses the right directory; thank you. > | * Error running pnmcrop - an "Illegal seek" error occurs. > > I don't know well, but the following message gives hints: > > | pstoimg: Error: "/usr/bin/pnmcrop -verbose < /tmp/l2h7172/p7196.pnm | > | /usr/bin/pnmcrop -verbose -bot -sides -black | /usr/bin/pnmcrop > | -verbose -l -sides -black > /tmp/l2h7172/p7196.t00" failed: > | Illegal seek > > Please try: > > 1) Do latex2html with "-debug" option. This remains /tmp/l2h > directory and image files in it. I've attached the output from this. These lines are from pnmcrop: pnmcrop: You cannot specify both -sides and either -black or -white pnmcrop: You cannot specify both -sides and either -black or -white pnmcrop: Background color is #c0c0c0 pnmcrop: Cropping 1 pixel from the left border pnmcrop: Cropping 2 pixels from the right border pnmcrop: Cropping 2 pixels from the top border pnmcrop: Cropping 2 pixels from the bottom border pnmcrop: Background color is white pnmcrop: The image is entirely background; there is nothing to crop. pstoimg: Error: "/usr/bin/pnmcrop -verbose < /tmp/l2h27263/p27287.pnm | /usr/bin/pnmcrop -verbose -bot -sides -black | /usr/bin/pnmcrop -verbose -l -sides -black > /tmp/l2h27263/p27287.t01" failed: > 2) Do each netpbm command in error message without piping: > > % /usr/bin/pnmcrop -verbose < /tmp/l2h/p7196.pnm > tmp1.pnm > ( and '7196' may change to different numbers) > % /usr/bin/pnmcrop -verbose -bot -sides -black < tmp1.pnm > tmp2.pnm > % /usr/bin/pnmcrop -verbose -l -sides -black < tmp2.pnm > tmp3.pnm > > Then, you may know which pnmcrop failed, and the reason. Thank you for the suggestion. The error messages come from the first one: $ /usr/bin/pnmcrop -verbose < /tmp/l2h27263/p27287.pnm >tmp1.pnm pnmcrop: Background color is #c0c0c0 pnmcrop: Cropping 1 pixel from the left border pnmcrop: Cropping 2 pixels from the right border pnmcrop: Cropping 2 pixels from the top border pnmcrop: Cropping 2 pixels from the bottom border pnmcrop: Background color is white pnmcrop: The image is entirely background; there is nothing to crop. The second one also gives: $ /usr/bin/pnmcrop -verbose -bot -sides -black < tmp1.pnm > tmp2.pnm pnmcrop: You cannot specify both -sides and either -black or -white The final one gives a different error message: $ /usr/bin/pnmcrop -verbose -l -sides -black < tmp2.pnm > tmp3.pnm pnmcrop: Too many arguments (2). Only need one: the input filespec Is this a ghostscript bug? out Description: Binary data ___ latex2html mailing list latex2html@tug.org http://tug.org/mailman/listinfo/latex2html