[l2h] dynamic sectioning depth?

Gary Scavone gary@ccrma.stanford.edu
Mon, 20 Aug 2001 16:58:06 -0700 (PDT)


OK, if I do a single change of the sectioning in my document,
everything is great, including navigation panel links, etc... But if I
try to change it twice, then I get weird behavior.  I imagine this
might have something to do with where the redefinitions occur.

--gary

On Sun, 19 Aug 2001, Ross Moore wrote:

>>> 
>>> I'm wondering if it is possible to control the sectioning depth
>>> dynamically from within a latex document, _without_ using
>>> segmentation?
>>
>>Yes. In priciple this is indeed possible.
>>As I haven't had occasion to do this much, I cannot say what
>>hidden pitfalls may emerge; e.g. in terms of navigation
>>and table-of-contents, etc.
>>
>>The Perl variable that governs when a section starts a new page
>>is  $MAX_SPLIT_DEPTH , which is normally set as a global
>>parameter, early in the processing.
>>
>>However it *is* safe to alter this during the course of the
>>main translation, using:
>>
>>   \HTMLsetenv{MAX_SPLIT_DEPTH}{<num>}
>>or as 
>>   \HTMLset{MAX_SPLIT_DEPTH}{<num>}
>>
>>where <num> denotes the shallowest sectioning level that is
>>*not* to start a new HTML page.
>>See the LaTeX2HTML manual for the integer values of <num>.
>>
>>The new value will be effective from the *next* sectioning
>>command, and should stay in effect until the end of the
>>document, or until altered again.
>>
>>
>>Experiment with it, show examples on this list,
>>and report any problems that you may find.
>>
>>It may be worth defining some commands in  html.sty
>>to make using this technique easier.
>>However I would not wish to do this until the problems
>>have been adequately resrearch and suitable fixes found.
>>
>>
>>
>>All the best,
>>
>>	Ross Moore
>>
>>
>> 
>>> -------------------------------------------------
>>> Gary Scavone
>>> Center for Computer Research in Music & Acoustics
>>> Stanford University
>>> gary@ccrma.stanford.edu
>>> http://www-ccrma.stanford.edu/~gary/
>>> -------------------------------------------------
>>> 
>>> _______________________________________________
>>> latex2html mailing list
>>> latex2html@tug.org
>>> http://tug.org/mailman/listinfo/latex2html
>>
>>