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.

I'm creating html from LaTex using the command htlatex ebook "html,info,imgdir:img/" All images are in the subdirectory img/ and this works perfectly. However I have a footnote containing a formula:

può calcolare come somma di una serie infinita\footnote{$\frac{\pi}{4}=1-\frac{1}
{3}+\frac{1}{5}-\frac{1}{7}+\frac{1}{9}-\cdots$}, di cui calcolare la somma di

htlatex creates a html file for the footnote (ebook2.html) linked from the main file and 6 png files (ebook[0-5]x.png) for the various parts of the formula.

The problem is that the png files are created in the same directory as the footnote html file, but inside it the references are to img/ebook0x.png for example.

What should I do to force image creation inside subdir img/ (not good, it pollute the book image dir) or better removing img/ from created image references?

Note that the observed behavior makes sense. I asked all images to be under img/ and in tex4ht.env there is the G line that converts from zz*.ps to png. So seems the only solution is to modify this line to put the result under img/

share|improve this question

closed as too localized by egreg, percusse, lockstep, Qrrbrbirlbel, Stefan Kottwitz Oct 6 '12 at 21:49

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
try to configure image inclusion. see tug.org/applications/tex4ht/mn5.html#QQ1-5-20 create custom config file, like tex.stackexchange.com/a/25809/2891 I cannot test it now, but hope it will work –  michal.h21 Jan 16 '12 at 14:55
    
Thanks, but no change in output. BTW in the cfg file you need to use ' instead of ", otherwise I receive a lot of Undefined sequence errors. –  mvalle Jan 17 '12 at 6:30

Browse other questions tagged or ask your own question.