[l2h] Problems with larger documents when generationg images
Ross Moore
ross.moore at mq.edu.au
Tue Jan 24 20:54:53 CET 2012
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