Eitan Gurari wrote:
> >If you prefer jpg, it would be better to hack the tex4ht configuration file,> > I had a look at the tex4ht configuration file and it doesn't look easy> to hack in order to use jpg format! Since there's an advantage in A command line option `jpg' should provide the mentioned output format. For instance, htlatex file "html,jpg" -eitan
Yes, I found that in the log file after you pointed it out, thanks. It changes the html source code properly, so no need of Search & Replace.
But first it seems it is needed to generate the .png files with htlatex. 1. copy demoarticle.tex (or something.tex) and drawing.eps to C:\demo 2. "htlatex demoarticle.tex" to produce the .png files and html. 3. "htlatex demoarticle.tex "html,jpg" changes the names in source code 4. "mogrify -format jpg *.png" change all the .png to .jpg keeps .png ImageMagicks mogrify batches a wizard's spell within the htlatex potion. Regards, Stephen
drawing.eps
Description: PostScript document
%%% Any text after a % mark on a line is a comment % specify that you are writing an article and you want to use 12pt font \documentclass[12pt]{article} % These page sizes are good for the printers in the department \textheight 9.75in \topmargin -1.in \textwidth 6.25in \oddsidemargin 0.0in % Indentation for new paragraphs \parindent=0.3in % Packages epsfig for importing graphics and amsmath for maths fonts \usepackage {epsfig, amsmath} % Put your name, the title of the work and the date in the header \pagestyle{myheadings} \markright{Hilary Spencer, The first report on my work, \today} %must appear after the preamble and before the text of the report \begin{document} \title{The First Report on my Work} % Acknowledge your supervisors \author{Hilary Spencer \thanks{University of Reading, Department of Meteorology, supervised by Prof J Slingo and Dr MK Davey at the Hadley Centre}} % Fix the date to when this report was due if you want (note this is % different to the date in the header) \date{Thursday 7 December 2000} \maketitle % Articles have sections, subsections, subsubsections etc \section{Introduction} \label{secn:intro} % Label all sections etc so you can refer to them and LaTeX will % automatically get the numbering right The cubic equation: % (I've put a comment line here so that the equation is not a new paragraph) \begin{equation} \alpha x^3 + \beta x^2 + \gamma x + \delta = 0 \label{eqn:cubic} \end{equation} % has an analytical solution which will be presented. It will be calculated for a number of cases and plotted on a graph. \section{Method} \label{sec:method} In section \ref{secn:intro} the cubic equation, equation \ref{eqn:cubic}, was presented. Solutions will be found using the analytical solution: % \begin{equation} \begin{matrix} p = \frac{\gamma}{\alpha} - \frac{\beta^2}{3 \alpha^2}, \quad % \quad creates a space in maths mode q = \frac{2 \beta^3}{27 \alpha^3} - \frac{\beta \gamma}{3 \alpha^2} + \frac{\delta}{\alpha} \\ \\ D = (\frac{p}{3})^3 + (\frac{q}{2})^2 \\ \\ u = \sqrt[3]{-\frac{q}{2} + \sqrt{D}} , \quad v = \sqrt[3]{-\frac{q}{2} - \sqrt{D}} \\ \\ \text{number of roots} = \begin{cases} 1 & \text{if } D > 0 \\ 2 & \text{if } D = 0 \\ 3 & \text{if } D < 0 \\ \end{cases} \\ \\ x_1 = u + v, \quad x_{2,3} = -\frac{u+v}{2} \pm \frac{u-v}{2} i \sqrt{3} \end{matrix} \label{eqn:cubicSoln} \end{equation} % if you want to include maths in the main part of the text, enclose % in $ signs The roots will be found for the values of $\alpha$, $\beta$, $\gamma$ and $\delta$ given in table \ref{tbl:abcdVals}. % a table is a floating object that contains table \begin{table} \centering % a tabular specifies how many columns the table should have and how % they should be aligned. This tabular has 1 left justified and 4 % centred columns with a vertical line outside and between each \begin{tabular}{|l|c|c|c|c|} \hline % a horizontal line Case & $\alpha$ & $\beta$ & $\gamma$ & $\delta$ \\ \hline \hline 1 & 1 & 2 & 3 & 4 \\ 2 & 2 & 3 & 4 & 5 \\ \hline \end{tabular} \caption{Values of the coefficients of the cubic equation for which roots are sought} \label{tbl:abcdVals} \end{table} \section{Results} \label{secn:res} I couldn't be bothered to find roots of the equation or draw a graph, so a completely different plot is shown in figure \ref{fig:curve}. \begin{figure} \centering \epsfig{file = drawing.eps, width=3in, angle=11} \caption{A pretty dodgy graph} \label{fig:curve} \end{figure} % must appear once at the end of every document \end{document}