2.53 th4

<..configure info4ht th4..>
 \Configure{JavaScript}............2
 
    Configures the environments
 
       \JavaScript
          ....
       \EndJavaScript
 
    and
 
       \javascript{...}
 
    These environments are activated by the ‘javascript’ option.
 
   Default:
 
    \Configure{JavaScript}
       {\HCode{<script type="text/JavaScript" ><!--\Hnewline}}
       {\HCode{//-->\Hnewline </script>}}
 
 
 
     \ConfigureToc
 
         Chapter,  LikeSection, Section, SubSection
 
 \Configure{Appendix}
 \Configure{Chapter}
 \Configure{Columns}
 \Configure{Columns}
 \Configure{DList}
 \Configure{HTable}
 \Configure{Item}
 \Configure{LikeChapter}
 \Configure{LikeSection}
 \Configure{OList}
 \Configure{Part}
 \Configure{Section}
 \Configure{SubSection}
 \Configure{UList}
 \Configure{Verbatim}
 \Configure{buttonList+}
 \Configure{buttonList}
 \Configure{centerline}
 \Configure{index}
 
 Frames
 ------
 
 When the package option ‘frames-’ or ‘frames’ is up,
 TeX4ht introduces the following commands for defining frames.
 
    \Frame[#1]{#2}
 
        A variant of the \Link[#1]{#2} portion of the
        \Link[#1]{#2}{#3}#4\EndLink, for specifying a frame.
 
    \HorFrames[#1]{#2}, \VerFrames[#1]{#2}
 
      #1 attributes  ([#1] is optional)
      #2 list of dimensions
 
       A container partitioned, respectively, horizontally or
       vertically. Each partition may hold a sub-container or
       a frame.
 
       The list of dimensions determine the cardinality of the
       partition, and the dimension of each partition.  A dimension
       can be specified absolutely by pixels (\HorFrames{80,130,50}),
       relatively by percentage (\HorFrames{20\%,30\%,50\%}), and
       relatively through ratio (\HorFrames{2*,3*,5*}).
 
    \EndFrames
 
       An end delimiter for a container
 
    \NoFrames
 
        When used, it should be placed before the outer-most
        \EndFrames command.  The region \NoFrames...\EndNoFrames
        provides the content for browsers which do not support frames.
 
 Tailoring configurations for frames is a little tricky, but the
 job is simpler when the configurations don’t deal with the root
 file.
 
 Example 1:
 ..........
 
      % Requires the command line option ‘frames-’
      \documentclass{article}
 
      \begin{document}
 
      \begingroup
         \Configure{@HEAD}{}
         \Configure{BODY}{}{}
         \Configure{DOCTYPE}
              {\HCode{<!DOCTYPE html
                   PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
                           "http://www.w3.org/TR/html4/frameset.dtd">}}
         \Configure{HEAD}{}{}
         \Configure{HTML}
             {\HCode{<html><head><title></title></head>}}
             {\HCode{</html>}}
         \Configure{HtmlPar}{}{}{}{}
         \Configure{TITLE}{}{}
 
         \FileStream+{\jobname f.html}
            \HorFrames{*,*}
               \Frame[\jobname.html]{}
               \VerFrames{3*,*,*}
                  \Frame[http://www.tug.org]{}
                  \Frame[\RefFile{z} ]{}
                  \Frame[ name="y"]{w}
               \EndFrames
            \EndPreamble
            \NoFrames
                a comment
            \EndFrames
         \EndFileStream{\jobname f.html}
      \endgroup
 
 
      \HPage[z]{}
      \bgroup
        \Configure{Link}{a}{target="y"  href=}{ name=}{}
        \let\contentsname=\empty   \tableofcontents
      \egroup
      \EndHPage{z}
 
      \tableofcontents
 
      \section{First} Is first.
 
      \Link{}{w}\EndLink
      \section{Second} Is Second.
 
      \end{document}
 
 Example 1a (allows also compilations for non-html output):
 ..........................................................
      % src.tex
      \documentclass{article}
      \begin{document}
 
        \tableofcontents
 
        \section{First} Is first.
 
        \ifx \Link\undefined \else
           \Link{}{w}\EndLink
        \fi
        \section{Second} Is Second.
 
      \end{document}
 
      % src.cfg
      \Preamble{html,frames-}
      \begin{document}
      \EndPreamble
        \begingroup
           \Configure{@HEAD}{}
           \Configure{BODY}{}{}
           \Configure{DOCTYPE}{}
           \Configure{HEAD}{}{}
           \Configure{HTML}{}{}
           \Configure{HtmlPar}{}{}{}{}
           \Configure{TITLE}{}{}
 
           \FileStream+{\jobname f.html}
              \HorFrames{*,*}
                 \Frame[\jobname.html]{}
                 \VerFrames{3*,*,*}
                    \Frame[http://www.tug.org]{}
                    \Frame[\RefFile{z} ]{}
                    \Frame[ name="y"]{w}
                 \EndFrames
           \EndPreamble
              \NoFrames
                  a comment
              \EndFrames
           \EndFileStream{\jobname f.html}
        \endgroup
 
        \HPage[z]{}
        \bgroup
          \Configure{Link}{a}{target="y"  href=}{ name=}{}
          \let\contentsname=\empty   \tableofcontents
        \egroup
        \EndHPage{z}
      \endinput
 
 Example 2:
 ..........
 
          % Source .tex file
 
          \documentclass{article}
            \usepackage{verbatim}
          \begin{document}
 
          \section{The Main File: \jobname.tex}
            \verbatiminput{\jobname.tex}
          \section{The Configurations File: \jobname.cfg}
            \verbatiminput{\jobname.cfg}
          \section{The Command Line}
            htlatex \jobname\space "\jobname"
 
          \NextFile{page.html}\HPage{}
            Hello!
          \EndHPage{}
 
          \HPage{}\Link{}{anchor}\EndLink
            \Link[http://www.ctan.org]{}{}ctan\EndLink
          \EndHPage{}
 
          \end{document}
 
          % configurations .cfg file
 
          \Preamble{frames}
 
          \Configure{frames}
            {\VerFrames{*,5*}
               \Frame[ name="tex4ht-menu" ]{tex4ht-toc}
               \HorFrames{*,3*}
                 \VerFrames{6*,*,*}
                   \Frame[http://www.tug.org]{}
                   \Frame[page.html]{}
                   \Frame{anchor}
                 \EndFrames
                 \Frame[ name="tex4ht-main" ]{tex4ht-body}
               \EndFrames
             }
             {\let\contentsname=\empty \tableofcontents}
 
          \begin{document}
          \EndPreamble
 
 Example 3:
 ..........
 
          % file.tex
          \documentclass{book}
          \begin{document}
            \chapter{Title}
               Body.
            \chapter{Another Title}
               \Link{}{init-body}\EndLink
               Another body.
          \end{document}
 
          % file.cfg
          \Preamble{html,frames,3,info}
            \begin{document}
                \Configure{frames}
                   {\HorFrames[rows="*"]{3*,*}
                      \Frame[ name="body" frameborder="0" ]{init-body}
                      \Frame[ name="menu" frameborder="0" ]{init-toc}
                   }
                   {\Configure{Link}{a}{target="body"  href=}{ id=}{}
                    \let\contentsname=\empty
                    \tableofcontents
                    \Link{}{init-toc}\EndLink
                   }
          \EndPreamble
          \endinput
 
 
 
 The arguments‘init-body’ and ‘init-toc’ are labels connecting reference points
 \Frame[...]{label} with anchors \Link{}{label}\EndLink.  Their objective
 is to associate initial web pages with the frames.
 
 The name attribute values ‘body’ and ‘menu’ provide
 identifiers to the frames.  They offer the option to dynamically load
 new pages into the frames through hypertext references targeting those
 values.
 
-_-_-