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

How can I easily disable all ligatures, when converting my LaTex-file to html?

For the html-generation I am using the command-line

mk4ht htlatex file.tex 'xhtml,charset=utf-8' ' -cunihtf -utf8 -cvalidate' '-d./html/'

My latex document begins with the following lines


As suggested in How can I completely suppress ligatures? I tried the following options for microtype: \DisableLigatures[f]{encoding = *, family = * }

The html-output though still contains characters .

share|improve this question
I don't think that hyphenat and microtype make much sense for htlatex. – egreg Jun 15 '12 at 14:56
@egreg You are right for htlatex but the document is intented for compilation using pdflatex. I only need to create an html once my document is ready. – Peter Pablo Jun 18 '12 at 8:22
up vote 1 down vote accepted

Trying several different options led to the following simple solution:

htlatex file.tex

I did not modify my preamble (stated in the question) and did not enable the command \DisableLigatures.

share|improve this answer
This does not work for me. Just running htlatex produces file which contains ligature characters instead of separated letters; ligatures are not acceptable for my use case. – zstewart May 25 '15 at 3:52

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.