[tex4ht] question on split levels for tex4ht

Michal Hoftich michal.h21 at gmail.com
Mon Oct 2 13:15:12 CEST 2023


Hi Nasser,

>
> I was thinking this will just be a very thin API, where
> only make4ht will handle, and simply process this option
> split_at and determines the split number needed and then pass it
> to tex4ht as before.
>
> i.e. no code changes needed at all internally for tex4ht.
> I was thinking make4ht will do something like (translate to lua code)
>
>      IF split_at="section" THEN
>         IF article class THEN
>            split =2
>         ELIF book class THEN
>            split = 3
>         END IF
>     ELIF split_at="subsection" THEN
>        etc...
>     END IF
>
> And now make4ht will call tex4ht as before, nothing
> changed. But using split number that was determined by the above code
> so user does not have to figure it out.
>
> I do not know how make4ht works, but I assume it takes all the
> arguments passed from command line and passes these to
> lower level calls to tex4ht? But maybe I was wrong about this.

This is not so easy, because make4ht by default doesn't read the input
file and the detection of the document class wouldn't be that
straight-forward. It couldn't do that by default, maybe using an
extension. But it would be quite a lot of work, so I am not sure that
this issue is worth it :)

Best,
Michal


More information about the tex4ht mailing list.