Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What is the correct way to include images so that Hevea will produce correct html output? I tried the following:

Latex code (test.tex):

\documentclass[12pt]{article}

\usepackage{hevea}
\usepackage{graphicx}

\begin{document}

\section{Introduction}
An image.
\includegraphics{python.jpg}

\end{document}

Compilation

$ hevea test.tex

In the html produced, the image is broken (0 bytes).

Does Hevea not support jpg images? Do they need to be converted to say, eps? I looked at the Hevea documentation, but I found it hard to understand, especially on how imagen should be used.

When I try the same with pdflatex, I am able to get a PDF that shows the image.

I am using this on OS X 10.8.1 with the latest Hevea/MacTeX packages.

share|improve this question
    
JPG should be supported by an *2HTML converter because its a standard WWW format. EPS support however would surprise me. Note that such tools are only border-line on-topic here. –  Martin Scharrer Sep 22 '12 at 10:54
    
OK. Could you suggest a better place to post questions on such tools? I am also struggling with htlatex. Thanks. –  M-V Sep 22 '12 at 15:26

1 Answer 1

HeVeA's guide discusses this problem. You should use \imgsrc to include bitmaps, like so:

\documentclass[12pt]{article}

\usepackage{hevea}

\begin{document}

\section{Introduction}
An image.
\imgsrc{python.jpg}

\end{document}

Alternatively, you should be able to include the normal graphics package.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.