In a book, I set up indentation to be 1em for every paragraph, including the first paragraph in sections:


However, TeX4HT doesn't honor this setting and sets the first paragraph to noindent.

How can I prevent TeX4HT from setting first paragraphs to noindent?

  • Will it honour the indentfirst package?
    – jon
    Commented Aug 5, 2012 at 18:32

1 Answer 1


There are many \noindents in tex4ht's configuration files, easiest way to solve this situation is to use custom CSS code to select p.noindent elements which are direct children of body (there are also p.noindents which are used in tables, theorems etc., where we probably don't want indentation)

Put this into custom config file or custom 4ht file:

\Css{body > p.noindent{

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .