[l2h] calling latex2html with -dir . fails

Patrice Dumas pertusus at free.fr
Sat Sep 14 23:46:31 CEST 2024


Hello,

With the current latex2html in debian testing:
$ latex2html -v
This is LaTeX2HTML Version 2024 (Released January 1, 2024)

Calling with -dir . leads to errors instead of the expected run with the
same result as not setting -dir at all.  It is not so important, as it
is always possible to avoid using -dir at all, but still.

Example:
$ cat titi.tex 
\documentclass{article}

\begin{document}

$$ a+b $$

\end{document}


$ latex2html -dir . titi.tex 
This is LaTeX2HTML Version 2024 (Released January 1, 2024)
...producing markup for HTML version 5.0  

.......

OPENING /home/dumas/tmp/nnnnnn/titi.tex 

Cannot create directory ./: File exists, reusing it.
Error (Make_directory_absolute): chdir "" failed: No such file or directory
 at /usr/bin/latex2html line 770.

Note: Working directory is 
Note: Images will be generated in /tmp/l2h7558

texexpand V2024 (Released January 1, 2024)

texexpand: Error: Cannot open style file '/TMP/styles': No such file or directory
 texexpand  failed: No such file or directory


/usr/bin/latex2html line 770 is:
       $DESTDIR = L2hos->Make_directory_absolute($DESTDIR);

PS: I am not subscribed.

-- 
Pat


More information about the latex2html mailing list.