[tex4ht] [bug #310] Need automated way to prevent duplicate files when using -d option

Nasser M. Abbasi nma at 12000.org
Sun Jun 5 06:06:10 CEST 2016


URL:
  <http://puszcza.gnu.org.ua/bugs/?310>

                 Summary: Need automated way to prevent duplicate files when
using -d option
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sun 05 Jun 2016 07:06:10 AM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Minor
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I've posted this before about this issue here
http://tug.org/pipermail/tex4ht/2016q2/001474.html  and thought will be good
idea to enter it as bug so to remember it and record it.

-----------------------------
When building with -d <folder_name>, as in

      make4ht foo.tex -d some_folder

----------------------------------

(or using htlatex), what happens is this: all the files generated during the
build, the html files and the small image files (one for each math expression)
are first generated in the current folder (where the latex file is), then  at
the end they are _copied_ to the destination folder.

So one ends up with 1000's of duplicate small files (.htm and many .png or
.svg, which are used for the math) in two places.

Here is MWE, say one is in  /home/A/ folder:

-------------------------------
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\frac{\sin(x)}{2}$
\end{document}
----------------------------------

compile with

make4ht foo.tex  -d foo

Now there will copy of foo0x.png and foo.htm and foo.css in both A/* (where
the latex file was) and also in A/foo/*

It will be nice to have the build or some automated command to safely  remove
the duplicated files that are generated during the build only from the current
folder when using -d option.

TL 2015





    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?310>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list