<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Murray,
<div class=""><br class="">
</div>
<div class="">I have plenty on my plate and I don't have time to look at latex2html, which I have never used. Feel free to investigate. Perhaps in several weeks ....</div>
<div class=""><br class="">
</div>
<div class="">Dick</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Sep 2, 2022, at 12:21 PM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dick,
<div class=""><br class="">
</div>
<div class="">The tex4ht documentation seems to say that make4ht will take care of automatically splitting into separate files at a specified leve (presumably, with navigation links) , much as latex2html does.
<div class=""><br class="">
</div>
<div class="">So I don’t want to rewrite the source, just act upon it to do that with tex4ht, which should, in principle, be simple! </div>
<div class=""><br class="">
</div>
<div class="">In fact, with the indicated modification to TeX4ht.engine (or, equivalently, by using a TeX4ht config file, and changing the make4ht line of the engine to a form…</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>make4ht -c tex4ht.cfg "$1" “mathjax,2”</div>
<div class=""><br class="">
</div>
<div class="">… it DOES work as expected with latex sources other than Fourier.tex, e.g. with  the file</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span><a href="https://urldefense.com/v3/__http://math.hamline.edu/mathematics/summer_research/template.tex__;!!C5qS4YX3!AoAdH8Ki93MR8Ygz-5pP8OgFo6fPGz0c0G_eWLCdDbiZNVG4o4XNhxDLfLIX_1t84G0_RPj39vnbBIdtl3tpr5IjeA$" class="">http://math.hamline.edu/mathematics/summer_research/template.tex</a></div>
<div class=""><br class="">
</div>
<div class="">with all the \section* commands changed to \section unstarred commands and with an added \tableofcontents inserted after \maketitle. Automatically each section is on a separate page and has navigation links [next] [prev] [prev-tail] [tail] [up]
 and suchlike at its top and bottom.</div>
<div class=""><br class="">
</div>
<div class="">Now my puzzlement is what in Fourier.tex is preventing that from being split up similarly into sections by tex4ht/make4ht.</div>
<div class=""><br class="">
</div>
<div class="">Murray<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 2 Sep2022, at 1:38 PM, Richard Koch <<a href="mailto:koch@uoregon.edu" class="">koch@uoregon.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Murray,<br class="">
<br class="">
You are making this too complicated. Calling the pages Page1, Page2, etc., is irrelevant. I used that in the first version of the document, but it was misleading.<br class="">
<br class="">
Here's how to do it. if you want to create a new separate web page (for each section, or just arbitrarily),<br class="">
choose New in TeXShop and get a blank page. Go to the Templates toolbar item and select the<br class="">
TeX4ht-Interactive template.<br class="">
<br class="">
Accept the boilerplate stuff at the top and write html code in the body where there is now a comment.<br class="">
<br class="">
This page can be typeset by just pushing command-T because the appropriate typesetting engine has been selected at the top in a magic comment. But the first time you do this, you will be asked to save the file first. This is not a surprise; TeXShop always works
 like that.<br class="">
<br class="">
Save the document in the Interactive subfolder of the source folder of your main TeX4ht document.<br class="">
Give it any name you like (don't use spaces in the name). If your page is going to have support files, like images or movies, create a folder inside Interactive and put your source in that folder.<br class="">
<br class="">
Before you push save, use the bottom pulldown menu to select html rather than tex as extension.<br class="">
<br class="">
Examples: For a stand along page,<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>Interactive/Section3.html<br class="">
<br class="">
For a page with support files<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>Interactive/Section3/FirstSample.html<br class="">
<br class="">
From now on, you can edit and typeset in the usual style with that page.<br class="">
<br class="">
Note that ths page doesn't have to be tied to a special section, so the above "Section3" might be<br class="">
"UTubeExample". <br class="">
<br class="">
-------------<br class="">
<br class="">
Now you have a stand along page. To link it to the document, find the spot in the document where it is supposed to live, and type something like<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>\ifx\HCode\undefined<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>\else<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>Please try the following demonstration: \url{/Interactive/Section3/FirstSample.html}<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>\fi<br class="">
<br class="">
<br class="">
<br class="">
Dick Koch<br class="">
<br class="">
<br class="">
<blockquote type="cite" class="">On Sep 2, 2022, at 10:22 AM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:<br class="">
<br class="">
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,
<br class="">
<br class="">
Allegedly, the optional parameter “2” to the make4ht command does that.<br class="">
<br class="">
I’m trying this with the source document Fourier.tex from ~/Library/TeXShop/New/Demo/Fourier-for-TeXShop.<br class="">
<br class="">
First I tried modifying the new TeXr4ht.engoine by changing its line<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>make4ht "$1" "mathjax”<br class="">
<br class="">
to:<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>make4ht "$1" "mathjax,2”.<br class="">
<br class="">
But when I typeset, I get a single html file.<br class="">
<br class="">
Next I tried doing the same thing from a Terminal command line:<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>make4ht Fourier "mathjax,2”<br class="">
<br class="">
(followed by pdflatex Fourier). But still a single html page.<br class="">
<br class="">
Any idea how to make it work?<br class="">
---<br class="">
Murray Eisenberg<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"></span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">
Mobile (413)-427-5334<br class="">
503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space:pre"> </span>
<span class="Apple-tab-span" style="white-space:pre"></span><br class="">
Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space:pre"> </span>
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</blockquote>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div class="">---<br class="">
Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">
Mobile (413)-427-5334<br class="">
503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;"> </span>
<br class="">
Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;"> </span>
</div>
<div class=""><br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>