I try to make help files for my wxWidgets-based software. wxWidgets supports displaying simple html pages and i use htlatex
executable tool to convert my .tex
to .html
, where equations are rendered as pictures.
I learned that i can make .cfg
file to edit latex4ht's compilation settings. For example i need to convert inline equations to images too and i also would like to have .gif images on output instead of .png
, so i made this mycfg.cfg file:
\Preamble{html}
\begin{document}
\Configure{Picture}{.gif}
\Configure{$}{\PicMath}{\EndPicMath}{}
\Configure{PicMath}{}{}{}{class=’’math’’; align=’’absmiddle’’}
\EndPreamble
And i invoke htlatex like this: htlatex samplefile.tex "mycfg"
.
Everything goes smooth, but there is no .gif
files. I can see on the end of logs strings like this:
l. 90 Writing samplefile.idv[1] (samplefile0x.gif) l. 92 Writing samplefile.idv[2] (samplefile1x.gif) l. 99 Writing samplefile.idv[3] (samplefile2x.gif) l. 104 Writing samplefile.idv[4] (samplefile3x.gif)
And there is samplefile.idv
on output, but i do not know how to extract .gifs from .idv files.
Also i would like to get rid of CSS on output. Is it possible to get HTML files without CSS?
UPD: Maybe i'm doing it wrong (trying to get .gif images). Inside the .log
file i can also read:
--- Note --- for gif bitmaps of pictures, use the 'gif' command line option. (Character bitmaps are controled only by 'g' records of tex4ht.env and '-g' switches of tex4ht.c)
But i do not know how to include this command-line option. Tried htlatex myfile "gif"
, it does not work.
htlatex -gif
would be a more usual way to specify the option, orhtlatex --gif
if it behaves more properly! (But I haven't tested this mostly on the grounds that I consider it a minor miracle any I persuade tex4ht to output anything for me at all.) – cfr May 27 '14 at 23:49htlatex smaplefile.tex "mycfg, -css, gif"
but it still generates css style and does not change image format. – Kirill May 28 '14 at 8:33