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

Michal Hoftich michal.h21 at gmail.com
Sat Oct 14 22:24:34 CEST 2023


Hi Nasser,

>
> It is because it is trying to copy the style file nma.css to the output directory!
>
> And so ofcourse there is no folder /styles/css/ on the Linux disk. This is
> meant only for the web server to use from its root public_html.
>

In this case, you can use this configuration instead:

\Configure{@HEAD}{<link href='/styles/css/nma.css' rel='stylesheet'
type='text/css' />}


> Why is make4ht trying to copy to the output_dir what is defined in \Configure{AddCss}?

Because that file is registered, and all registered files are copied
to the output directory.

Best regards,
Michal


More information about the tex4ht mailing list.