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

2016-06-04 Thread Nasser M. Abbasi
URL:
  

 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 , 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:

  

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



[tex4ht] [bug #309] tex4ht does not work with package savetrees

2016-06-04 Thread Nasser M. Abbasi
URL:
  

 Summary: tex4ht does not work with package savetrees
 Project: tex4ht
Submitted by: nma123
Submitted on: Sun 05 Jun 2016 06:55:15 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:

This MWE

\documentclass[12pt]{book}% 
\usepackage[subtle]{savetrees}
\begin{document}
test
\end{document}

Gives an error when compiled with make4ht or htlatex:

(/usr/local/texlive/2015/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2015/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./foo.aux)
! You can't use `\relax' after \the.
\NoHtmlEnv 0pt\ht:everypar {\the \ht:everypar 
  }
l.3 \begin{document}

? 


TL 2015 on Linux
 




___

Reply to this item at:

  

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



Re: [tex4ht] Bug identified: tex4ht to .odt (also identifying bugs in MiKTeX's setup)

2016-06-04 Thread Karl Berry
Thank you for the detailed report.  I hope we (Michal ...?) can
look into the tex4ht stuff.

As for the miktex bug:

the first command line above needs a space after "xhtml,":
1. htlatex test "xhtml, ooffice" "ooffice/! -cmozhtf" "-coo -cvalidate"
If you don't leave a space, MiKTeX's latex get confused, and can't run.

needs to be reported in whatever way miktex likes.  I don't think anyone
here has any particular knowledge of (or even uses) miktex.  I don't,
for sure.

Thanks again.  --karl