TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed the latest version of WinEdt v7 and MiKTeX (october 2012). When I run latex2html and tex4ht is called the tex4ht.env file is everytime overwritten with the default settings. Even if I edit it in the c:\Program Files\MiKTeX 2.9\tex4ht\base\win32 folder the version saved in my LaTex source folder looks like the original and if I modify that, it is also rewritten. Where does it come from?

I need to change the resolution dvi2png creates, and that is, as far as I understand done by changing the tex4ht.env file - but again - when I change it, it changes back

Any help is very appreciated.

share|improve this question

There is an option for tex4ht that allows specifying the pixel density of the generated images: graphics-300 would create 300-dpi bitmaps.

htlatex input "html, graphics-300"

Does this work for you?

This switch (and many other) are documented in this blog entry.

Please DO NOT change files that live in C:\Program Files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.