bugtex4ht - Bugs: bug #429, htlatex: Does not delete...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #429: htlatex: Does not delete intermediate files

Submitted by:  Hilmar Preusse <hpreusse>
Submitted on:  Tue Jul 2 16:12:16 2019  
 
Category: NonePriority: 5 - Normal
Severity: 3 - MinorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun Jul 28 16:29:55 2019, comment #5:

OK, I accept your explanation. Feel free to close the case. Thanks!

Hilmar Preusse <hpreusse>
Fri Jul 5 13:13:13 2019, comment #4:

You can use a simple wrapper around htlatex if you don't mind the issues I described in my previous post. This version is for Unix based OSes:

#!/bin/bash
htlatex "$@"
base=${1%.tex}
rm $base.dvi
rm $base.idv
rm $base.lg
rm $base.tmp
# following files should be kept IMHO
# the log file can be usefull for error investigation
rm $base.log
# these files are reused between TeX runs, it is not a good idea to delete them
rm $base.4tc
rm $base.4ct
rm $base.aux
rm $base.xref

I would say that deleting the dvi, idv, lg and tmp files should be quite safe, as they are generated every time from the scratch and the subsequent compilations don't depend on them.

Michal Hoftich <michal_h21>
Project Member
Fri Jul 5 11:36:59 2019, comment #3:

I'm aware that TeX related programs are not very good in deleting intermediate files. However in this case we speak about htlatex, some kind of wrapper script. I would expect that this script cares about intermediate files, which are not needed any more.
Note that we speak about the files, which were created by tex4ht & t4ht i.e. the files generated by the post-processor.

Feel free to lower that bug to wish list and introduce a clear switch if you think it is not a good idea to delete all intermediate files by default.

Many thanks,
Hilmar

Hilmar Preusse <hpreusse>
Wed Jul 3 07:58:02 2019, comment #2:

Hi Hilmar, as Karl and Nasser said, there is no cleanup performed by htlatex or other tex4ht scripts by default. The auxilary files are in fact quite important for the correct conversion, so it is not a good idea to delete them after every compilation. For example some complex tables may need more than three compilations by LaTeX to correctly resolve the structure, so you would never get a correct result with removed aux files.

Michal Hoftich <michal_h21>
Project Member
Tue Jul 2 21:25:07 2019, comment #1:

Hi Hilmar - What cleanup is attempted now? I wasn't aware that htlatex etc. removed anything.

In any case, I don't think it would be a good idea to change the behavior at this late date. Those intermediate files can be helpful for debugging and bug reports. I could imagine adding an option for such cleaning (if there isn't one already ... I haven't checked).

Thanks for the suggestion.

Karl Berry <karl>
Project Administrator
Tue Jul 2 16:12:16 2019, original submission:

https://bugs.debian.org/554637

I've noticed that running

htlatex test.tex "xhtml,ooffice,enumerate+" "ooffice/! -cunihtf -utf8" "-coo"

pollutes current directory with the following intermediate files:

test.4ct
test.4tc
test.dvi
test.idv
test.tmp
test.xref

As htlatex is actually trying to do some cleanup, I think these should be removed as well. I only expect the following files to stay:

test.lg
test.odt

Test input file:
\documentclass{article}
\begin{document}
test
\end{document}

Hilmar Preusse <hpreusse>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by hpreusse (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Aug 19 01:08:50 2019karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray