Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-07-05 Thread Eitan Gurari



  It worked very well with a slight exception. I see well close up,
  and the math equations produced are 15-20% too small. Many people
  could not read them as they are. The .jpgs are not the same size
  as the math equations displayed as when .png files are selected.
  No doubt the remedy is already contained in the documentation.
  
  They are very distinct and not blurry, if you see well close up.
  I also noticed that the tex4ht-bin had been updated May 19, 2006
  and I didn't have it. So I downloaded it and it made no apparent
  change to the quality of the htlatex outputted web page/images.

Typically, the quality of images can be improved by using outline
fonts, changing the parameters of the conversion utilities invoked
through the G-scripts of tex4ht.env, and controlling the size of the
fonts used in the source files.  -eitan





Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-07-05 Thread Eitan Gurari



  It worked very well with a slight exception. I see well close up,
  and the math equations produced are 15-20% too small. Many people
  could not read them as they are. The .jpgs are not the same size
  as the math equations displayed as when .png files are selected.
  No doubt the remedy is already contained in the documentation.
  
  They are very distinct and not blurry, if you see well close up.
  I also noticed that the tex4ht-bin had been updated May 19, 2006
  and I didn't have it. So I downloaded it and it made no apparent
  change to the quality of the htlatex outputted web page/images.

Typically, the quality of images can be improved by using outline
fonts, changing the parameters of the conversion utilities invoked
through the G-scripts of tex4ht.env, and controlling the size of the
fonts used in the source files.  -eitan





Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-07-05 Thread Eitan Gurari



 > It worked very well with a slight exception. I see well close up,
 > and the math equations produced are 15-20% too small. Many people
 > could not read them as they are. The .jpgs are not the same size
 > as the math equations displayed as when .png files are selected.
 > No doubt the remedy is already contained in the documentation.
 > 
 > They are very distinct and not blurry, if you see well close up.
 > I also noticed that the tex4ht-bin had been updated May 19, 2006
 > and I didn't have it. So I downloaded it and it made no apparent
 > change to the quality of the htlatex outputted web page/images.

Typically, the quality of images can be improved by using outline
fonts, changing the parameters of the conversion utilities invoked
through the G-scripts of tex4ht.env, and controlling the size of the
fonts used in the source files.  -eitan





Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-28 Thread Steve Harris

Eitan Gurari wrote:


  I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

  
  tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
  tex4ht demoarticle.tex 


  ] [2] [3] [4
  Renaming `cmmi12.png' to `hzfx.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

  %%
  % tex4ht.env (MiKTeX 2.4.1771)   %
  % Copyright (C) 1997--2004Eitan M. Gurari%

convert
  G.png
  Gif exist zz%%4.ps DEL zz%%4.ps nul
  Gif exist %%3 DEL %%3 nul
  Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2  zz%%4.ps
  Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
-dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch 
-dNOPAUSE zz%%4.ps -c quit
  Gif exist zz%%4.ps DEL zz%%4.ps nul 
   G.

   Gif exist zz%%4.ps DEL zz%%4.ps nul
   Gif exist %%3 DEL %%3 nul
   Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
   Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent #FF 
%%3
   Gif exist zz%%4.ps DEL zz%%4.ps nul
/convert


Can you try in tex4ht.env the following code segment instead of the above one.

   convert
Gif exist zz%%4.ps DEL zz%%4.ps nul
Gif exist %%3 DEL %%3 nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent #FF %%3
Gif exist zz%%4.ps DEL zz%%4.ps nul 
   /convert


   g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
= [1 Mar 05] [12 Nov 04]

-eitan





It worked very well with a slight exception. I see well close up,
and the math equations produced are 15-20% too small. Many people
could not read them as they are. The .jpgs are not the same size
as the math equations displayed as when .png files are selected.
No doubt the remedy is already contained in the documentation.

They are very distinct and not blurry, if you see well close up.
I also noticed that the tex4ht-bin had been updated May 19, 2006
and I didn't have it. So I downloaded it and it made no apparent
change to the quality of the htlatex outputted web page/images.

The conversion with your patch was definitely an improvement
over using mogrify  -format jpg  *.png
I didn't even know this was a bug since Ares reported this
jpg conversion working for him without any editing.

I've tried conversion from to html with Word and Adobe Pro and
they really stink. I was amazed when I saw the quality of
the ~xypic.htm conversion. I've read other people remarking
on how responsive you are to fixing anything that comes up!
They say a picture is worth a thousand words, so I'm sending
yet another attachment of the .png before I edited tex4ht.env
and the aftermath of editing tex4ht.env which does the right
thing with producing the required .jpegs but lacks stature.
Actually, I think both png and jpg output is currently small.

Best regards,
Stephen



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-28 Thread Steve Harris

Eitan Gurari wrote:


  I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

  
  tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
  tex4ht demoarticle.tex 


  ] [2] [3] [4
  Renaming `cmmi12.png' to `hzfx.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

  %%
  % tex4ht.env (MiKTeX 2.4.1771)   %
  % Copyright (C) 1997--2004Eitan M. Gurari%

convert
  G.png
  Gif exist zz%%4.ps DEL zz%%4.ps nul
  Gif exist %%3 DEL %%3 nul
  Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2  zz%%4.ps
  Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
-dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch 
-dNOPAUSE zz%%4.ps -c quit
  Gif exist zz%%4.ps DEL zz%%4.ps nul 
   G.

   Gif exist zz%%4.ps DEL zz%%4.ps nul
   Gif exist %%3 DEL %%3 nul
   Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
   Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent #FF 
%%3
   Gif exist zz%%4.ps DEL zz%%4.ps nul
/convert


Can you try in tex4ht.env the following code segment instead of the above one.

   convert
Gif exist zz%%4.ps DEL zz%%4.ps nul
Gif exist %%3 DEL %%3 nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent #FF %%3
Gif exist zz%%4.ps DEL zz%%4.ps nul 
   /convert


   g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
= [1 Mar 05] [12 Nov 04]

-eitan





It worked very well with a slight exception. I see well close up,
and the math equations produced are 15-20% too small. Many people
could not read them as they are. The .jpgs are not the same size
as the math equations displayed as when .png files are selected.
No doubt the remedy is already contained in the documentation.

They are very distinct and not blurry, if you see well close up.
I also noticed that the tex4ht-bin had been updated May 19, 2006
and I didn't have it. So I downloaded it and it made no apparent
change to the quality of the htlatex outputted web page/images.

The conversion with your patch was definitely an improvement
over using mogrify  -format jpg  *.png
I didn't even know this was a bug since Ares reported this
jpg conversion working for him without any editing.

I've tried conversion from to html with Word and Adobe Pro and
they really stink. I was amazed when I saw the quality of
the ~xypic.htm conversion. I've read other people remarking
on how responsive you are to fixing anything that comes up!
They say a picture is worth a thousand words, so I'm sending
yet another attachment of the .png before I edited tex4ht.env
and the aftermath of editing tex4ht.env which does the right
thing with producing the required .jpegs but lacks stature.
Actually, I think both png and jpg output is currently small.

Best regards,
Stephen



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-28 Thread Steve Harris

Eitan Gurari wrote:


 > I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

 > 
 > tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
 > tex4ht demoarticle.tex 


 > ] [2] [3] [4
 > Renaming `cmmi12.png' to `hzfx.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

 > %%
 > % tex4ht.env (MiKTeX 2.4.1771)   %
 > % Copyright (C) 1997--2004Eitan M. Gurari%

 >   
 > G.png
 > Gif exist zz%%4.ps DEL zz%%4.ps >nul
 > Gif exist %%3 DEL %%3 >nul
 > Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
 > Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
-dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch 
-dNOPAUSE zz%%4.ps -c quit
 > Gif exist zz%%4.ps DEL zz%%4.ps >nul 
 >  G.

 >  Gif exist zz%%4.ps DEL zz%%4.ps >nul
 >  Gif exist %%3 DEL %%3 >nul
 >  Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
 >  Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent "#FF" 
%%3
 >  Gif exist zz%%4.ps DEL zz%%4.ps >nul
 >   


Can you try in tex4ht.env the following code segment instead of the above one.

   
Gif exist zz%%4.ps DEL zz%%4.ps >nul
Gif exist %%3 DEL %%3 >nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent "#FF" %%3
Gif exist zz%%4.ps DEL zz%%4.ps >nul 
   


 >  g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
=> [1 Mar 05] [12 Nov 04]

-eitan





It worked very well with a slight exception. I see well close up,
and the math equations produced are 15-20% too small. Many people
could not read them as they are. The .jpgs are not the same size
as the math equations displayed as when .png files are selected.
No doubt the remedy is already contained in the documentation.

They are very distinct and not blurry, if you see well close up.
I also noticed that the tex4ht-bin had been updated May 19, 2006
and I didn't have it. So I downloaded it and it made no apparent
change to the quality of the htlatex outputted web page/images.

The conversion with your patch was definitely an improvement
over using "mogrify  -format jpg  *.png"
I didn't even know this was a bug since Ares reported this
jpg conversion working for him without any editing.

I've tried conversion from to html with Word and Adobe Pro and
they really stink. I was amazed when I saw the quality of
the ~xypic.htm conversion. I've read other people remarking
on how responsive you are to fixing anything that comes up!
They say a picture is worth a thousand words, so I'm sending
yet another attachment of the .png before I edited tex4ht.env
and the aftermath of editing tex4ht.env which does the right
thing with producing the required .jpegs but lacks stature.
Actually, I think both png and jpg output is currently small.

Best regards,
Stephen



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

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 23 4\\
2 23 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}

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Eitan Gurari

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...
...
   System return: 0 

-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.





Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.







Here is the output after conversion, as you see no .jpg files, only some 
pngs, and not demoarticle0x.png, demoarticle1x.png, demoarticle2x.png

The html source code in demoarticle.html refers to .jpgs though.

I will attach tex4ht.env and the piped demo.txt in this post.
In the next post, the demoarticle.log file.

I think the problem may be due to my older version of ImageMagick.
I will test both of the new 6.2.8 releases for quality of .png
image and to see if the .jpg generation has been fixed. It works
for Ares who has 6.2.8 which is why I suspect this.

C:\ImageMagick 7,176,324 ImageMagick-6.2.3-2-Q16-windows-dll.exe

C:\ares\lyxdemo\lasttest htlatex demoarticle.tex html,jpg  demo.txt

06/27/2006  02:11 PM14,286 demo.txt
06/27/2006  02:11 PM   670 demoarticle.4ct
06/27/2006  02:11 PM   662 demoarticle.4tc
06/27/2006  02:11 PM   556 demoarticle.aux
06/27/2006  02:11 PM 5,253 demoarticle.css
06/27/2006  02:11 PM20,048 demoarticle.dvi
06/27/2006  02:11 PM 7,988 demoarticle.html
06/27/2006  02:11 PM 3,004 demoarticle.idv
06/27/2006  02:11 PM 6,875 demoarticle.lg
06/27/2006  02:11 PM15,350 demoarticle.log
01/31/2003  11:35 AM 3,720 demoarticle.tex
06/27/2006  02:11 PM16 demoarticle.tmp
06/27/2006  02:11 PM   472 demoarticle.xref
01/31/2003  11:35 AM 7,434 drawing.eps
06/27/2006  02:11 PM   264 hzfx0a0b.png
06/27/2006  02:11 PM   302 hzfx0a0c.png
06/27/2006  02:11 PM   264 hzfx0a0d.png
06/27/2006  02:11 PM   265 hzfx0a0e.png

Regards,
Stephen
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e 2003/12/01
Babel v3.8g and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo)) (C:\texmf\tex\generic\tex4ht\tex4ht.sty)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht)
(C:\texmf\tex\latex\graphics\epsfig.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\dvips.def
(C:\texmf\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty (C:\texmf\tex\latex\amsmath\amsgen.sty)
) (C:\texmf\tex\latex\amsmath\amsbsy.sty)
(C:\texmf\tex\latex\amsmath\amsopn.sty))
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
::
 TeX4ht info is available in the log file 
::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht demoarticle ---
(demoarticle.tmp)
l.1388 --- TeX4ht warning --- No file demoarticle.xref ---
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\latex.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\article.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.








I tried again with the newer 6.2.8 ImageMagick.exe about 6.7mb.
It fails like in the first effort. Also attached is the
demoarticle.log from the previous Imagemagick install,
ImageMagick-6.2.3-2-Q16-windows-dll.exe
Next I will try the Imagemagick static.exe which is about 20mb.

6,815,492 ImageMagick-6.2.8-0-Q16-windows-dll.exe

t4ht.c (2004-04-21-00:17 Windows MiKTeX)
t4ht demoarticle.tex
Entering demoarticle.lg
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0e.png DEL hzfx0a0e.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 6  
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0e.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0d.png DEL hzfx0a0d.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 7  
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0d.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0c.png DEL hzfx0a0c.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 8  
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0c.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0b.png DEL hzfx0a0b.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 9  
zzdemoarticle.ps

System return: 0

System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0b.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
Entering demoarticle.css
Entering demoarticle.tmp

-

06/27/2006  02:57 PM   670 demoarticle.4ct
06/27/2006  02:57 PM   662 demoarticle.4tc
06/27/2006  02:57 PM   556 demoarticle.aux
06/27/2006  02:57 PM 5,253 demoarticle.css
06/27/2006  02:57 PM20,048 demoarticle.dvi
06/27/2006  02:57 PM 7,988 demoarticle.html
06/27/2006  02:57 PM 3,004 demoarticle.idv
06/27/2006  02:57 PM 6,875 demoarticle.lg
06/27/2006  02:57 PM15,350 demoarticle.log
01/31/2003  11:35 AM 3,720 demoarticle.tex
06/27/2006  02:57 PM16 demoarticle.tmp
06/27/2006  02:57 PM   472 demoarticle.xref
01/31/2003  11:35 AM 7,434 drawing.eps
02/01/2003  10:06 PM41,878 essential.tex
06/27/2006  02:57 PM   264 hzfx0a0b.png
06/27/2006  02:57 PM   302 hzfx0a0c.png
06/27/2006  02:57 PM   264 hzfx0a0d.png
06/27/2006  02:57 PM   265 hzfx0a0e.png
06/27/2006  04:34 AM 2,676 imagemagick.txt
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (preloaded format=latex 
2006.3.13)  27 JUN 2006 14:11
entering extended mode

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.





ImageMagick-6.2.8-0-Q16-windows-static.exe about 20mb
also failed the same way. I had to run htlatex demoarticle.tex,
then mogrify to change the .pngs to .jpg in order for it to work.

Regards,
Stephen




Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Eitan Gurari


  I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

  
  tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
  tex4ht demoarticle.tex 

  ] [2] [3] [4
  Renaming `cmmi12.png' to `hzfx.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

  %%
  % tex4ht.env (MiKTeX 2.4.1771)   %
  % Copyright (C) 1997--2004Eitan M. Gurari%

convert
  G.png
  Gif exist zz%%4.ps DEL zz%%4.ps nul
  Gif exist %%3 DEL %%3 nul
  Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2  zz%%4.ps
  Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
  -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q 
  -dbatch -dNOPAUSE zz%%4.ps -c quit
  Gif exist zz%%4.ps DEL zz%%4.ps nul 
   G.
   Gif exist zz%%4.ps DEL zz%%4.ps nul
   Gif exist %%3 DEL %%3 nul
   Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
   Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent #FF 
  %%3
   Gif exist zz%%4.ps DEL zz%%4.ps nul
/convert


Can you try in tex4ht.env the following code segment instead of the above one.

   convert
Gif exist zz%%4.ps DEL zz%%4.ps nul
Gif exist %%3 DEL %%3 nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent #FF %%3
Gif exist zz%%4.ps DEL zz%%4.ps nul 
   /convert

   g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
= [1 Mar 05] [12 Nov 04]

-eitan



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

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 23 4\\
2 23 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}

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Eitan Gurari

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...
...
   System return: 0 

-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.





Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.







Here is the output after conversion, as you see no .jpg files, only some 
pngs, and not demoarticle0x.png, demoarticle1x.png, demoarticle2x.png

The html source code in demoarticle.html refers to .jpgs though.

I will attach tex4ht.env and the piped demo.txt in this post.
In the next post, the demoarticle.log file.

I think the problem may be due to my older version of ImageMagick.
I will test both of the new 6.2.8 releases for quality of .png
image and to see if the .jpg generation has been fixed. It works
for Ares who has 6.2.8 which is why I suspect this.

C:\ImageMagick 7,176,324 ImageMagick-6.2.3-2-Q16-windows-dll.exe

C:\ares\lyxdemo\lasttest htlatex demoarticle.tex html,jpg  demo.txt

06/27/2006  02:11 PM14,286 demo.txt
06/27/2006  02:11 PM   670 demoarticle.4ct
06/27/2006  02:11 PM   662 demoarticle.4tc
06/27/2006  02:11 PM   556 demoarticle.aux
06/27/2006  02:11 PM 5,253 demoarticle.css
06/27/2006  02:11 PM20,048 demoarticle.dvi
06/27/2006  02:11 PM 7,988 demoarticle.html
06/27/2006  02:11 PM 3,004 demoarticle.idv
06/27/2006  02:11 PM 6,875 demoarticle.lg
06/27/2006  02:11 PM15,350 demoarticle.log
01/31/2003  11:35 AM 3,720 demoarticle.tex
06/27/2006  02:11 PM16 demoarticle.tmp
06/27/2006  02:11 PM   472 demoarticle.xref
01/31/2003  11:35 AM 7,434 drawing.eps
06/27/2006  02:11 PM   264 hzfx0a0b.png
06/27/2006  02:11 PM   302 hzfx0a0c.png
06/27/2006  02:11 PM   264 hzfx0a0d.png
06/27/2006  02:11 PM   265 hzfx0a0e.png

Regards,
Stephen
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e 2003/12/01
Babel v3.8g and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo)) (C:\texmf\tex\generic\tex4ht\tex4ht.sty)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht)
(C:\texmf\tex\latex\graphics\epsfig.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\dvips.def
(C:\texmf\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty (C:\texmf\tex\latex\amsmath\amsgen.sty)
) (C:\texmf\tex\latex\amsmath\amsbsy.sty)
(C:\texmf\tex\latex\amsmath\amsopn.sty))
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
::
 TeX4ht info is available in the log file 
::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht demoarticle ---
(demoarticle.tmp)
l.1388 --- TeX4ht warning --- No file demoarticle.xref ---
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\latex.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\article.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.








I tried again with the newer 6.2.8 ImageMagick.exe about 6.7mb.
It fails like in the first effort. Also attached is the
demoarticle.log from the previous Imagemagick install,
ImageMagick-6.2.3-2-Q16-windows-dll.exe
Next I will try the Imagemagick static.exe which is about 20mb.

6,815,492 ImageMagick-6.2.8-0-Q16-windows-dll.exe

t4ht.c (2004-04-21-00:17 Windows MiKTeX)
t4ht demoarticle.tex
Entering demoarticle.lg
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0e.png DEL hzfx0a0e.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 6  
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0e.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0d.png DEL hzfx0a0d.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 7  
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0d.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0c.png DEL hzfx0a0c.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 8  
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0c.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
System call: if exist hzfx0a0b.png DEL hzfx0a0b.png nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 9  
zzdemoarticle.ps

System return: 0

System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0b.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps nul
System return: 0
Entering demoarticle.css
Entering demoarticle.tmp

-

06/27/2006  02:57 PM   670 demoarticle.4ct
06/27/2006  02:57 PM   662 demoarticle.4tc
06/27/2006  02:57 PM   556 demoarticle.aux
06/27/2006  02:57 PM 5,253 demoarticle.css
06/27/2006  02:57 PM20,048 demoarticle.dvi
06/27/2006  02:57 PM 7,988 demoarticle.html
06/27/2006  02:57 PM 3,004 demoarticle.idv
06/27/2006  02:57 PM 6,875 demoarticle.lg
06/27/2006  02:57 PM15,350 demoarticle.log
01/31/2003  11:35 AM 3,720 demoarticle.tex
06/27/2006  02:57 PM16 demoarticle.tmp
06/27/2006  02:57 PM   472 demoarticle.xref
01/31/2003  11:35 AM 7,434 drawing.eps
02/01/2003  10:06 PM41,878 essential.tex
06/27/2006  02:57 PM   264 hzfx0a0b.png
06/27/2006  02:57 PM   302 hzfx0a0c.png
06/27/2006  02:57 PM   264 hzfx0a0d.png
06/27/2006  02:57 PM   265 hzfx0a0e.png
06/27/2006  04:34 AM 2,676 imagemagick.txt
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (preloaded format=latex 
2006.3.13)  27 JUN 2006 14:11
entering extended mode

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle html,jpg

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.





ImageMagick-6.2.8-0-Q16-windows-static.exe about 20mb
also failed the same way. I had to run htlatex demoarticle.tex,
then mogrify to change the .pngs to .jpg in order for it to work.

Regards,
Stephen




Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Eitan Gurari


  I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

  
  tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
  tex4ht demoarticle.tex 

  ] [2] [3] [4
  Renaming `cmmi12.png' to `hzfx.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

  %%
  % tex4ht.env (MiKTeX 2.4.1771)   %
  % Copyright (C) 1997--2004Eitan M. Gurari%

convert
  G.png
  Gif exist zz%%4.ps DEL zz%%4.ps nul
  Gif exist %%3 DEL %%3 nul
  Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2  zz%%4.ps
  Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
  -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q 
  -dbatch -dNOPAUSE zz%%4.ps -c quit
  Gif exist zz%%4.ps DEL zz%%4.ps nul 
   G.
   Gif exist zz%%4.ps DEL zz%%4.ps nul
   Gif exist %%3 DEL %%3 nul
   Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
   Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent #FF 
  %%3
   Gif exist zz%%4.ps DEL zz%%4.ps nul
/convert


Can you try in tex4ht.env the following code segment instead of the above one.

   convert
Gif exist zz%%4.ps DEL zz%%4.ps nul
Gif exist %%3 DEL %%3 nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent #FF %%3
Gif exist zz%%4.ps DEL zz%%4.ps nul 
   /convert

   g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
= [1 Mar 05] [12 Nov 04]

-eitan



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

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}

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Eitan Gurari

Steve,

The command

 htlatex demoarticle "html,jpg"

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...
...
   System return: 0 

-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.





Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle "html,jpg"

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.







Here is the output after conversion, as you see no .jpg files, only some 
pngs, and not demoarticle0x.png, demoarticle1x.png, demoarticle2x.png

The html source code in demoarticle.html refers to .jpgs though.

I will attach tex4ht.env and the piped demo.txt in this post.
In the next post, the demoarticle.log file.

I think the problem may be due to my older version of ImageMagick.
I will test both of the new 6.2.8 releases for quality of .png
image and to see if the .jpg generation has been fixed. It works
for Ares who has 6.2.8 which is why I suspect this.

C:\ImageMagick 7,176,324 ImageMagick-6.2.3-2-Q16-windows-dll.exe

C:\ares\lyxdemo\lasttest> htlatex demoarticle.tex "html,jpg" > demo.txt

06/27/2006  02:11 PM14,286 demo.txt
06/27/2006  02:11 PM   670 demoarticle.4ct
06/27/2006  02:11 PM   662 demoarticle.4tc
06/27/2006  02:11 PM   556 demoarticle.aux
06/27/2006  02:11 PM 5,253 demoarticle.css
06/27/2006  02:11 PM20,048 demoarticle.dvi
06/27/2006  02:11 PM 7,988 demoarticle.html
06/27/2006  02:11 PM 3,004 demoarticle.idv
06/27/2006  02:11 PM 6,875 demoarticle.lg
06/27/2006  02:11 PM15,350 demoarticle.log
01/31/2003  11:35 AM 3,720 demoarticle.tex
06/27/2006  02:11 PM16 demoarticle.tmp
06/27/2006  02:11 PM   472 demoarticle.xref
01/31/2003  11:35 AM 7,434 drawing.eps
06/27/2006  02:11 PM   264 hzfx0a0b.png
06/27/2006  02:11 PM   302 hzfx0a0c.png
06/27/2006  02:11 PM   264 hzfx0a0d.png
06/27/2006  02:11 PM   265 hzfx0a0e.png

Regards,
Stephen
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
LaTeX2e <2003/12/01>
Babel  and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(demoarticle.tex (C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size12.clo)) (C:\texmf\tex\generic\tex4ht\tex4ht.sty)
(C:\texmf\tex\generic\tex4ht\usepackage.4ht)
(C:\texmf\tex\latex\graphics\epsfig.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\keyval.sty)
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\dvips.def
(C:\texmf\tex\latex\amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\texmf\tex\latex\amsmath\amstext.sty (C:\texmf\tex\latex\amsmath\amsgen.sty)
) (C:\texmf\tex\latex\amsmath\amsbsy.sty)
(C:\texmf\tex\latex\amsmath\amsopn.sty))
(C:\texmf\tex\generic\tex4ht\tex4ht.4ht
::
 TeX4ht info is available in the log file 
::
) (C:\texmf\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht demoarticle ---
(demoarticle.tmp)
l.1388 --- TeX4ht warning --- No file demoarticle.xref ---
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht)
(C:\texmf\tex\generic\tex4ht\latex.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\fontmath.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)
(C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\article.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht
) (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\epsfig.4ht (C:\texmf\tex\generic\tex4ht\html4.4ht)
 (C:\texmf\tex\generic\tex4ht\html4-math.4ht))
(C:\texmf\tex\generic\tex4ht\graphicx.4ht
(C:\texmf\tex\generic\tex4ht\html4.4ht)

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle "html,jpg"

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.








I tried again with the newer 6.2.8 ImageMagick.exe about 6.7mb.
It fails like in the first effort. Also attached is the
demoarticle.log from the previous Imagemagick install,
ImageMagick-6.2.3-2-Q16-windows-dll.exe
Next I will try the Imagemagick static.exe which is about 20mb.

6,815,492 ImageMagick-6.2.8-0-Q16-windows-dll.exe

t4ht.c (2004-04-21-00:17 Windows MiKTeX)
t4ht demoarticle.tex
Entering demoarticle.lg
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0e.png DEL hzfx0a0e.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 6 > 
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0e.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0d.png DEL hzfx0a0d.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 7 > 
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0d.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit

System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0c.png DEL hzfx0a0c.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 8 > 
zzdemoarticle.ps

System return: 0
System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0c.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
System call: if exist hzfx0a0b.png DEL hzfx0a0b.png >nul
System return: 0
System call: dvips.exe -E -q -Ppdf -f demoarticle.idv -pp 9 > 
zzdemoarticle.ps

System return: 0

System call: mgs.exe -sDEVICE=pngalpha -sOutputFile=hzfx0a0b.png 
-r110x110 -dEPS
Crop -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 
-q -dba

tch -dNOPAUSE zzdemoarticle.ps -c quit
System return: 0
System call: if exist zzdemoarticle.ps DEL zzdemoarticle.ps >nul
System return: 0
Entering demoarticle.css
Entering demoarticle.tmp

-

06/27/2006  02:57 PM   670 demoarticle.4ct
06/27/2006  02:57 PM   662 demoarticle.4tc
06/27/2006  02:57 PM   556 demoarticle.aux
06/27/2006  02:57 PM 5,253 demoarticle.css
06/27/2006  02:57 PM20,048 demoarticle.dvi
06/27/2006  02:57 PM 7,988 demoarticle.html
06/27/2006  02:57 PM 3,004 demoarticle.idv
06/27/2006  02:57 PM 6,875 demoarticle.lg
06/27/2006  02:57 PM15,350 demoarticle.log
01/31/2003  11:35 AM 3,720 demoarticle.tex
06/27/2006  02:57 PM16 demoarticle.tmp
06/27/2006  02:57 PM   472 demoarticle.xref
01/31/2003  11:35 AM 7,434 drawing.eps
02/01/2003  10:06 PM41,878 essential.tex
06/27/2006  02:57 PM   264 hzfx0a0b.png
06/27/2006  02:57 PM   302 hzfx0a0c.png
06/27/2006  02:57 PM   264 hzfx0a0d.png
06/27/2006  02:57 PM   265 hzfx0a0e.png
06/27/2006  04:34 AM 2,676 imagemagick.txt
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (preloaded format=latex 
2006.3.13)  27 JUN 2006 14:11
entering 

Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Steve Harris

Eitan Gurari wrote:

Steve,

The command

 htlatex demoarticle "html,jpg"

asks for bitmaps in jpg format.  Looks like an improper G
configuration in tex4ht.env forces png code.  Can you show me the
tex4ht.env file in use and a segment of messages of the following form
issued onto the stdio stream.

   System call: dvips 
...
   System return: 0 
   System call: /usr/local/magick-6.2.4-6/bin/convert -trim +repage ...

...
   System return: 0 


-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.





ImageMagick-6.2.8-0-Q16-windows-static.exe about 20mb
also failed the same way. I had to run htlatex demoarticle.tex,
then mogrify to change the .pngs to .jpg in order for it to work.

Regards,
Stephen




Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-27 Thread Eitan Gurari


 > I think the problem may be due to my older version of ImageMagick.

ImageMagick works fine.  The problem is in how tex4ht is configured.

 > 
 > tex4ht.c (2004-10-23-18:53 Windows MiKTeX)
 > tex4ht demoarticle.tex 

 > ] [2] [3] [4
 > Renaming `cmmi12.png' to `hzfx.png'

The above comment is wrong regarding the output format and can be
ignored.  I fixed the source tex4ht.c to provide correct notices.  The
comment has no bearing on the output format.

 > %%
 > % tex4ht.env (MiKTeX 2.4.1771)   %
 > % Copyright (C) 1997--2004Eitan M. Gurari%

 >   
 > G.png
 > Gif exist zz%%4.ps DEL zz%%4.ps >nul
 > Gif exist %%3 DEL %%3 >nul
 > Gdvips.exe -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
 > Gmgs.exe -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop 
 > -dBackgroundColor=16#ff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q 
 > -dbatch -dNOPAUSE zz%%4.ps -c quit
 > Gif exist zz%%4.ps DEL zz%%4.ps >nul 
 >  G.
 >  Gif exist zz%%4.ps DEL zz%%4.ps >nul
 >  Gif exist %%3 DEL %%3 >nul
 >  Gdvips.exe -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
 >  Gconvert.exe zz%%4.ps -trim +repage -density 110x110 -transparent "#FF" 
 > %%3
 >  Gif exist zz%%4.ps DEL zz%%4.ps >nul
 >   


Can you try in tex4ht.env the following code segment instead of the above one.

   
Gif exist zz%%4.ps DEL zz%%4.ps >nul
Gif exist %%3 DEL %%3 >nul
Gdvips -E -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
Gconvert zz%%4.ps -trim +repage -density 110x110 -transparent "#FF" %%3
Gif exist zz%%4.ps DEL zz%%4.ps >nul 
   

 >  g.png

Also, in tex4ht.env, replace the above record with

g.jpg

Note: the G and g records shouldn't contain leading spaces.

It might also be worth noticing that tex4ht got quite a few
improvements since 2004:

http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
=> [1 Mar 05] [12 Nov 04]

-eitan



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-26 Thread Eitan Gurari




  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



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-26 Thread Eitan Gurari




  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



Re: lyx-users Digest 26 Jun 2006 15:12:57 -0000 Issue 1937

2006-06-26 Thread Eitan Gurari




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