1

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

%% mwe-listen.tex
\documentclass{scrartcl}
\newcommand{\mytext}{This is some text for testing the listings.}
\usepackage{enumitem}
\usepackage{multicol, blindtext}
\begin{document}
%
\begin{multicols}{2}
\blindtext
%
\begin{enumerate}
\item \mytext
\item \mytext
\end{enumerate}
%
\blindtext
\end{multicols}
\end{document}

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

1

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

\ConfigureEnv{multicols}{}{}{}{}

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

5
  • It is working!! Great.
    – Ulrich
    yesterday
  • @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
    yesterday
  • @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
    yesterday
  • Thank you. I did it "by hand" in the css-file generated by make4ht. Will check, how to do this automatically.
    – Ulrich
    yesterday
  • @Ulrich you can put the code you want in CSS file to the config file: kodymirus.cz/tex4ht-doc/…
    – michal.h21
    yesterday

Your Answer

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

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