[tex4ht] How to add custom Css code into the configuration file? @media

Michal Hoftich michal.h21 at gmail.com
Thu Aug 31 13:21:23 CEST 2023


Hi all,

> It turned out that make4ht generates its own body
> with this in the .css
>
> body{ margin:1em auto; max-width:80ch; padding:0 .62em; }
>
> The above is done automatically. So if you add your own body
> specification in the .cfg or your own .css, the above will get
> in the way if you use width: 960px; so you have to use max-width:960px; to
> overwrite what tex4ht generates.

You can also disable the default max-width with the "nostyle" option.

Best, Michal


More information about the tex4ht mailing list.