The combination make4ht and the multicol package seems to be not working together. If I compile

%% mwe-listen.tex
\newcommand{\mytext}{This is some text for testing the listings.}
\usepackage{multicol, blindtext}
\item \mytext
\item \mytext

with make4t mwe-listen then I get no break before 1 or 2 of the list Safari image (by the way, with Firefox it is the same). Commenting out \begin{multicols}, then everything is working fine. I am running OS X 12.6 and texlive2022 last update.

Remark: I have seen the question https://tex.stackexchange.com/questions/642439/safari-font-bug-with-tex4ht but it seems that there is still no solution for this?

1 Answer 1


It seems that it is caused by this configuration in html4.4ht:


It seems that it resets configurations for any list environment that is placed inside multicols. To fix that, it is necessary to remove this line from html4.4ht. I will do that, so it should be available in TeX Live update soon. After that, you should get this result:

enter image description here

  • It is working!! Great.
    – Ulrich
    Sep 23, 2022 at 5:20
  • @michal.h21Just a additional question: How can I chance the behaviour of the numbering, i.e. the 1. is very far away from the text. Compiling with pdflatex it looks different, i.e. 1. This is ..?
    – Ulrich
    Sep 23, 2022 at 5:48
  • @Ulrich the space is configured using CSS, so you can change it in the configuration file. Try \Css{dl.enumerate-enumitem{display:grid; grid-template-columns: 0px 1fr; align-items: top; row-gap:1ch;}}. This seems to be the smallest possible gap.
    – michal.h21
    Sep 23, 2022 at 7:24
  • Thank you. I did it "by hand" in the css-file generated by make4ht. Will check, how to do this automatically.
    – Ulrich
    Sep 23, 2022 at 12:54
  • @Ulrich you can put the code you want in CSS file to the config file: kodymirus.cz/tex4ht-doc/…
    – michal.h21
    Sep 23, 2022 at 13:16

You must log in to answer this question.

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