I'm trying to generate an html document from my .tex file (I just need paragraph and link formatting, nothing fancy).

I'm using Texmaker 5.0.3, Miktex 2.9 on Windows 10, with the tex4ht package installed today.

In Texmaker, I build my .tex file with "LaTex" to generate the dvi file. Then I go to Tools -> Export via Tex4ht, select "export to html" and run.

The run finishes without error and I can see an html file has been generated in my working folder. But when I open this html file in a browser, there is no formatting at all. When I view the source code of the page, I can see that no html tags have been added (it's just plain text).

My .tex source code is minimal:

\documentclass[a4paper, oneside, 12pt]{article}
\DeclareUnicodeCharacter{00A0}{ }
\usepackage[nottoc, notlof, notlot]{tocbibind}
\usepackage[style=nature, url=true]{biblatex}


{\Huge Title}


Test paragraph~\cite{Aristotle1999} with references.


Test paragraph 2.



What am I missing?

  • Hi, welcome to TEX.SE, could you provide an example code to try and figure out what is going wrong? – Superuser27 Mar 14 at 11:57
  • @Superuser27 I added my tex file if that's what you mean by "code" but it's almost empty, so I'm not sure it's going to help you – Sulli Mar 14 at 13:00
  • can you try to run the conversion in the terminal? using make4ht filename.tex or htlatex filename.tex? I get normal HTML file for your source in TL in Linux. – michal.h21 Mar 14 at 14:17
  • @michal.h21 these two commands work for me. Does it mean Texmaker is the culprit? – Sulli Mar 14 at 18:15
  • yes, it is possible. does texmaker print the actual command it uses for the conversion somewhere? – michal.h21 Mar 14 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.