[tex4ht] [bug #329] Package graphics Error: Division by 0. with tex4ht when using [dvipdfmx]{graphicx}

Nasser M. Abbasi nma at 12000.org
Mon Jul 11 15:55:03 CEST 2016


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

                 Summary: Package graphics Error: Division by 0. with tex4ht
when using [dvipdfmx]{graphicx}
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Mon 11 Jul 2016 04:55:03 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Copy of this question posted here

http://tex.stackexchange.com/questions/318895/package-graphics-error-division-by-0-with-tex4ht-when-using-dvipdfmxgraphic

This MWE

\documentclass[11pt]{scrbook}%
\usepackage{graphicx}
\begin{document}
\includegraphics[width=0.95\textwidth]{image.png}
\end{document}

when compiled using 

    make4ht  -e main.mk4 foo.tex

gives error

(/usr/local/texlive/2016/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./foo.aux)

! Package graphics Error: Division by 0.

See the graphics package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.4 ...ludegraphics[width=0.95\textwidth]{image.png}                          
                       
? 

WIth TL 2016 under linux.

Attached is the png image and the main.mk4 file.

This happens only of few number of files. It compiles OK with pdflatex and
lualatex and the image file can be viewed ok on its own.

Removing the width=... clears the error. Also compiling without main.mk4
removes the error.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 11 Jul 2016 04:55:03 PM EEST  Name: image.png  Size: 5kB   By:
nma123

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=252>
-------------------------------------------------------
Date: Mon 11 Jul 2016 04:55:03 PM EEST  Name: main.mk4  Size: 1kB   By: nma123

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=253>

    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list