# [OS X TeX] How get sections in separate html pages with TeX4ht?

Murray Eisenberg murrayeisenberg at gmail.com
Fri Sep 2 13:22:07 EDT 2022

The question is how to produce separate html pages, one for each document section (with the usual kind of next and previous page links) In TeXShop,

Allegedly, the optional parameter “2” to the make4ht command does that.

I’m trying this with the source document Fourier.tex from ~/Library/TeXShop/New/Demo/Fourier-for-TeXShop.

First I tried modifying the new TeXr4ht.engoine by changing its line

make4ht "$1" "mathjax” to: make4ht "$1" "mathjax,2”.

But when I typeset, I get a single html file.

Next I tried doing the same thing from a Terminal command line:

make4ht Fourier "mathjax,2”

(followed by pdflatex Fourier). But still a single html page.

Any idea how to make it work?
---
Murray Eisenberg		murrayeisenberg at gmail.com
Mobile (413)-427-5334
503 King Farm Blvd #101
Rockville, MD 20850-6667