[l2h] Problems with larger documents when generationg images
Duke, Mark
Mark.Duke at SIMPACK.de
Wed Jan 25 23:46:49 CET 2012
Hi Ross,
Sadly that didn't help and it is still generating the files with only 3 digits. I've tried sifting through the latex2html and still can't work out where the number of digits is controlled. You wouldn't have any ideas, would you?
Thanks,
Mark
________________________________________
From: Ross Moore [ross.moore at mq.edu.au]
Sent: 24 January 2012 20:54
To: Duke, Mark
Cc: latex2html at tug.org list
Subject: Re: [l2h] Problems with larger documents when generationg images
Hi Mark,
On 24/01/2012, at 11:28 PM, Mark Duke wrote:
> Hi Ross and Jos,
>>
>>> Hi Mark,
>>>
>>> Search the latex2html source for "%.3d" and change 3 to 4 or whatever.
>>>
>>>
>>
>> The line you want is approx. 4096:
>>
>> $psname = sprintf("%s%.3d", "$TMPDIR$dd$IMAGE_PREFIX", $new_num);
>>
>> changing to "%s%.4d" will allow LaTeX2HTML to generate file names
>> with 4 digits.
>> This then passes the problem on to LaTeX, dvips and Ghostscript, as
>> to whether they will correctly generate and process all those files.
>> Should be OK.
>>
>>
> Thanks for your help! latex2html now correctly searches for files with 4 digits, but generates the intermediate files still with 3 digits. Have you got an ideas on how to force it to generate the intermediate files with the 4 digits?
Good question.
This would require an optional parameter to dvips .
Dunno for sure, but it looks like -n 10000 might help.
http://amath.colorado.edu/documentation/LaTeX/basics/steps/help_dvips.html
So within your l2hinit.pl initialisation file, you want to include a line:
$DVIPSOPT .= ' -n 10000 ';
or you could add this extra parameter within the subroutine
sub make_off_line_images (line# ~3780 in latex2html)
Hopefully this will cause 4+ numbering digits in the file names
written out by dvips .
> This is a list of the files generated:
> "> ls -l /scratch/l2h_images/l2h20851/
> total 5312
> -rw-rw-r-- 1 simdoc 84249 Jan 24 12:12 image001.ps
> -rw-rw-r-- 1 simdoc 82675 Jan 24 12:12 image002.ps
> -rw-rw-r-- 1 simdoc 83644 Jan 24 12:12 image003.ps
> ........"
>
> latex2html is now correctly looking for files with the 4 digits:
> "Error while converting image
>
> Error: Cannot read 'simpack_documentationimg2.png': No such file or directory
> Converting image #1
> pstoimg: Error: Cannot find file "/scratch/l2h_images/l2h20851/image0001.ps": No such file or directory"
>
>
> Sorry for troubling you and thank you loads for your help.
>
> Mark
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the latex2html
mailing list