[17085] in Athena Bugs

home help back first fref pref prev next nref lref last post

latex2html amazing bug, quick fix.

daemon@ATHENA.MIT.EDU (Craig A. Counterman)
Mon Aug 23 16:54:51 1999

Message-Id: <199908232054.QAA104469@selenium.mit.edu>
To: bug-infoagents@MIT.EDU
Cc: ccount@MIT.EDU
Reply-To: ccount@MIT.EDU
Date: Mon, 23 Aug 1999 16:54:41 -0400
From: "Craig A. Counterman" <ccount@MIT.EDU>


latex2html doesn't work if run in a directory with a . in the name.

The problem is dvips, which with the -i argument and the -o argument,
mishandles the -o argument.  dvips truncates the _path_ given for -o
as if it were a filename

E.g.

allegretto% dvips -S 1 -M -i -o /mit/ccount/www/6.013/images images.dvi
This is dvips 5.76 Copyright 1997 Radical Eye Software (www.radicaleye.com)
' TeX output 1999.08.23:1644' -> /mit/ccount/www/6.013/images
(-> /mit/ccount/www/6.001) <tex.pro>[1] (-> /mit/ccount/www/6.002) <tex.pro>
[2] (-> /mit/ccount/www/6.003) <tex.pro>[3] (-> /mit/ccount/www/6.004) 
<tex.pro>[4] (-> /mit/ccount/www/6.005) <tex.pro>[5] 
(-> /mit/ccount/www/6.006) <tex.pro>[6] (-> /mit/ccount/www/6.007) <tex.pro>
[7] (-> /mit/ccount/www/6.008) <tex.pro>[8] 

And it's created /mit/ccount/www/6.00*, rather than
/mit/ccount/www/6.013/images*

This may be a bug in dvips, but latex2html is where it's being a
problem.  Noone in a course locker can use latex2html.

The fix is simple:  put a dot in the name that latex2html asks dvips
to output:


< $IMAGE_PREFIX = ((defined $image_pre)? $image_pre : '_image');
---
> $IMAGE_PREFIX = ((defined $image_pre)? $image_pre : '_image.');


This could also be fixed in Override.pm, but I think this is good.

Let me know when this is fixed.

Thanks,
Craig




home help back first fref pref prev next nref lref last post