[tex4ht] tex4ht help needed

Radhakrishnan CV cvr at river-valley.org
Mon Nov 14 06:08:03 CET 2011


2011/11/13  <mbedla at tu.kielce.pl>:
> I am looking for anybody who could help me with following problem.
>
> Is it possible in htlatex to set image output for algorithms?
> I'm using algorithm / algpseudocode.
> I have found:
> \Configure{$}{\PicMath}{\EndPicMath}{}
> \Configure{PicMath}{}{}{}{ class="math"}
> but it creates an image for every $$.

\ConfigureEnv{algorithm}
   {\Picture*[<optional replacement for textual browsers]
                   {<filename for picture>}
   }
   {\EndPicture}
   {}
   {}

An example will be:

\newcounter{alg} % counter to increment with each algorithm picture.
\ConfigureEnv{algorithm}
  {\stepcounter{alg}
   \Picture*{alg\thealg.png}
  }
  {\EndPicture}
  {}
  {}

The attached archive has a working example with algorithm2e package.

Hope this helps.

Best regards
-- 
Radhakrishnan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: algorithm.zip
Type: application/zip
Size: 329277 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex4ht/attachments/20111114/af7f204d/attachment-0001.zip>


More information about the tex4ht mailing list