{"id":323,"date":"2010-09-06T16:54:52","date_gmt":"2010-09-06T11:24:52","guid":{"rendered":"http:\/\/www.cvr.cc\/?p=323"},"modified":"2010-09-06T16:54:52","modified_gmt":"2010-09-06T11:24:52","slug":"tex4ht-configure-part-1","status":"publish","type":"post","link":"https:\/\/cvr.cc\/?p=323","title":{"rendered":"TeX4ht: Configure Part 1"},"content":{"rendered":"<p>The <code>\\Configure<\/code> command is the most powerful user command in T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht system. It helps to add various kinds of hooks to insert target markup code at the desired locations in and around various types of content. For instance, take the case of <code>section{...}<\/code> in L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X. A typical example will be:<!--more-->\n<\/p>\n<pre>\n  \\section{Introduction}\n<\/pre>\n<p><code>\\Configure<\/code> for <code>\\section<\/code> provides four (4) hooks in the following style:<\/p>\n<pre>\n  \\Configure{section}\n    {&lt;beginning of section&gt;}  {&lt;end of the section&gt;}\n    {&lt;before section heading&gt;}{&lt;after section heading&gt;}\n<\/pre>\n<p>Suppose our target markup requires the following pattern of markup for a section heading:<\/p>\n<pre>\n  &lt;section id=\"sec1\"&gt;\n   &lt;title&gt;Introduction&lt;\/title&gt;\n    &lt;para&gt;\n         ...\n    &lt;\/para&gt;\n  &lt;\/section&gt;\n<\/pre>\n<p>We will accomplish the above target by configuring the section macros in the following manner:<\/p>\n<pre>\n  \\Configure{section}\n   {\\EndP\\IgnorePar\\Tg&lt;section id=\"sec\\thesection\"&gt;}\n   {\\EndP\\Tg&lt;\/section&gt;}\n   {\\Tg&lt;title&gt;}\n   {\\Tg&lt;\/title&gt;\\ShowPar}\n<\/pre>\n<p>The above code will help translate any L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X section heading into the required markup scheme as provided in the example. Macros like <code>\\EndP<\/code>, <code>\\IgnorePar<\/code> and <code>\\ShowPar<\/code> will be discussed a little later. These are hooks to insert begin and end of paragraph code into the content appropriately. Here, in this document, we shall list most of the <code>\\Configure<\/code> hooks available in T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht system and describe briefly how those can be used for configuring most of the L<span style=\"position: relative; bottom: 0.3ex; margin-left: -0.36em; margin-right: -0.15em; text-transform: uppercase\"><small>a<\/small><\/span>T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X commands popularly used in documents.<\/p>\n<p><pre>\n \\Configure{PROLOG}.........1\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">Comma separated list of hooks to appear before <small>HTML<\/small>. Each hook E is declared to be configurable by an instruction of the form <code>\\NewConfigure {E}{1}<\/code>. A star <code>*<\/code> prefix calls for accumulative configurations.<\/div>\n<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}\n  \\Configure{VERSION}\n     {\\HCode{&lt;?xml version=\"1.0\"?&gt;}}\n\n  \\Configure{ext}............1\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1:<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">default extension name for target files (recorded in <code>:html<\/code>). Can also be requested through a command line option <code>ext=...<\/code><\/div>\n<pre>\n \\Preamble...................0\n<\/pre>\n<\/p>\n<p>Records the list of the requested options. Defined upon entering the environment <code>\\Preamble{...}....\\EndPreamble<\/code>, to replace the earlier version of <code>\\Preamble<\/code>.<\/p>\n<pre>\n\\ifOption ................. 3\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">Argument to be checked whether it is a given option.<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">True part<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#3<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">False part<\/div>\n<h4 style=\"color: #27d;\">Wrapper for the Document<\/h4>\n<p><pre>\n \\Configure{DOCTYPE}.........1\n \\Configure{HTML}............2\n \\Configure{HEAD}............2\n \\Configure{@HEAD}...........1\n \\Configure{BODY}............2\n \\Configure{TITLE+}..........1\n \\Configure{TITLE}...........2\n \\Configure{@TITLE}..........1\n \\Configure{Preamble}........2\n    &lt;DOCTYPE&gt;\n    &lt;HTML 1&gt;\n     &lt;HEAD 1&gt;\n        &lt;TITLE 1&gt;\n           &lt;@TITLE&gt;\n           &lt;TITLE+&gt;\n        &lt;TITLE 2&gt;\n        &lt;@HEAD&gt;\n     &lt;HEAD 2&gt;\n     &lt;BODY 1&gt;\n     ......\n     &lt;BODY 2&gt;\n    &lt;HTML 2&gt;\n<\/pre>\n<\/p>\n<p>The <code>\\Configure{@HEAD}{...}<\/code> command is additive, concatenating the content of all of its appearances. An empty parameter requests the cancellation of the earlier contributions.<\/p>\n<p>For instance,<\/p>\n<pre>\n \\Configure{@HEAD}{A}\n  \\Configure{@HEAD}{}\n  \\Configure{@HEAD}{B}\n  \\Configure{@HEAD}{C}\n<\/pre>\n<p>contributes &lsquo;BC&rsquo;.<\/p>\n<p>The <code>\\Configure{TITLE+}<\/code> provides the content for the title, <code>Configure{TITLE}<\/code> sets the envelop, and <code>Configure{@TITLE}<\/code> acts as a hook for introducing localized configurations. As is the case for <code>Configure{@HEAD}<\/code>, the contribution of <code>\\Configure{@TITLE}<\/code> is also additive.<\/p>\n<p>These configurations should be introduced early enough in the compilation. For instance, in the case of LaTeX, between <code>\\Preamble<\/code> and <code>\\begin{document}<\/code> of a local configuration file.<\/p>\n<pre>\n  \\Preamble\n    %%% here %%%\n  \\begin{document}\n    ...\n  \\EndPreamble\n  \\Configure{@BODY}...........1\n  \\Configure{@\/BODY}..........1\n<\/pre>\n<p>Variants of <code>\\Configure{@HEAD}<\/code> which contribute their content, respectively, after <code>&lt;body&gt;<\/code> and before <code>&lt;\/body&gt;<\/code>.<\/p>\n<pre>\n  \\Configure{CutAtTITLE+}.....1\n  Configure{HPageTITLE+}.....1 <\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">An insertion just before the content of <code>&lt;TITLE&gt;<\/code>. If #1 is a one parametric macro, it gets the title content for an argument.<\/div>\n<h4 style=\"color: #27d;\">Support for Sectioning Commands<\/h4>\n<p><pre>\n \\Configure{unit-name} ......................4\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top;margin-bottom:-0.5em;\">start<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top;margin-bottom:-0.5em;\">end<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#3<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">before title<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#4<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">after title<\/div>\n<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{section}\n    {\\HCode{&lt;section&gt;}}    {\\HCode{&lt;\/section&gt;}}\n    {\\HCode{&lt;title&gt;}}      {\\HCode{&lt;\/title&gt;}}\n  \\ConfigureMark{unit-name}...................1\n<\/pre>\n<\/p>\n<p>Defines a macro <code>&lt;unit-name&gt;\\HMark<\/code> to hold the given argument. Upon entering the unit, <code>\\TitleMark<\/code> gets the content of this macro.<\/p>\n<p>Some built-in configurations of T<span style=\"position: relative; top: 0.5ex; margin-left: -0.1667em; margin-right: -0.125em; text-transform: uppercase\">e<\/span>X4ht require an argument for the <code>&lt;unit-name&gt;\\HMark<\/code> commands. For safety, these commands should always be followed by a, possiblely empty, argument. The argument should be a separator between the title mark and its content.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{section}\n     {}{}\n     {\\HCode{&lt;h3&gt;}\\TitleMark\\space}{\\HCode{&lt;\/h3&gt;}}\n   \\ConfigureMark{section}{\\thesection}\n<\/pre>\n<\/p>\n<h4 style=\"color: #27d;\">ToC link<\/h4>\n<p><pre>\n  \\Configure{toTocLink}.......................2\n<\/pre>\n<\/p>\n<p>Each unit title contains a <code>\\Link{...}{...}...\\EndLink<\/code> command. The first argument of <code>\\Link<\/code> points to the first table of contents referencing the title. The second argument provides an anchor for references to the title (mainly from tables of contents).<\/p>\n<p>The package option <code>section+<\/code> requests the inclusion of the title within the anchor. Without this option, the link command resides between the title mark and its content.<\/p>\n<p>The <code>\\Configure{toTocLink}<\/code> command is provided for configuring the <code>\\Link<\/code> and <code>\\EndLink<\/code> instructions. In the default setting, when the <code>sections+<\/code> option is not activated, the <code>\\Link<\/code> command is altered to replace its first argument with an empty argument.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{toTocLink}\n    {\\Link}\n    {\\ifx \\TitleMark\\sectionHMark\n       \\Picture[up]{haut.jpg align=\"right\"}%\n       \\EndLink\n       \\TitleMark\\space\n     else \\EndLink fi\n    }\n  \\def\\up{[up]}\n  \\Configure{toToc}...........................2\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">unit type<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">desired contents type (if empty, &lsquo;unit type&rsquo; is assumed)<\/div>\n<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{toToc}{chapter}{likechapter}\n<\/pre>\n<\/p>\n<p>Introduces chapter as likechapter into toc<\/p>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">empty: stop adding entries of &lsquo;unit type&rsquo; to toc<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">@:<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">add entries of &lsquo;unit type&rsquo; to toc<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">?:<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">resume mode in effect before the last stop<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">unit type<\/div>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{toToc}{}{chapter}\n  \\chapter{...}\n  \\Configure{toToc}{@}{chapter}\n  \\Configure{writetoc}.........................1\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">Configuration material for the insertion instruction. New configurations are added to those request earlier by the command. An empty argument cancels the earlier contributions.<\/div>\n<\/p>\n<p><pre>\n  \\NoLink.......................1\n<\/pre>\n<\/p>\n<p>Ignore option <code>section+<\/code> for sections of type #1.<\/p>\n<p><pre>\n  \\TitleCount\n<\/pre>\n<\/p>\n<p>Count of entries submitted to the <code>toc<\/code> file<\/p>\n<p><pre>\n  \\Configure{NoSection}.........2\n<\/pre>\n<\/p>\n<p>Insertions around the parameters of sectioning commands, applied when the parameters are not used to create titles for the divisions.<\/p>\n<pre>\n  \\CutAt{#1,#2,#3,...}\n<\/pre>\n<div style=\"display: inline-block; width: 5em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 6em; width: 80%; vertical-align: top; margin-bottom:-0.5em;\">section type to be placed in a separate web page.<\/div>\n<div style=\"display: inline-block; width: 5em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2,#3,&#8230;<\/div>\n<div style=\"display: inline-block;left-margin: 6em; width: 80%; vertical-align: top; margin-bottom:-0.5em;\">end delimiting section types, other than #1, for the web pages A <code>+<\/code> before #1 requests hypertext buttons for the web pages.<\/div>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\CutAt{mychapter,myappendix,mypart}\n  \\CutAt{+myappendix,mychapter,mypart}\n<\/pre>\n<\/p>\n<p>Cut points at arbitrary points can be introduced by introducing section-like commands in a manner similar to<\/p>\n<pre>\n  \\NewSection\\mysection{}\n  \\CutAt{mysection}\n  \\Configure{+CutAt}.................................3\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">sectioning type<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">before<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#3<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">after<\/div>\n<p>Requests delimiters for the <code>CutAt<\/code> buttons of the specified sectioning type.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{+CutAt}{mysection}{[}{]}\n  \\PauseCutAt{#1}\n  \\ContCutAt{#1}\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">section type<\/div>\n<\/p>\n<p><pre>\n  \\Configure{CutAt-filename} ........................1\n<\/pre>\n<\/p>\n<p>A 2-parameter hook for tailoring section-based filenames. The section type is available through #1. The section title is accessible through #2.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{CutAt-filename}{\\NextFile{#1-#2.html}}\n<\/pre>\n<\/p>\n<h4 style=\"color: #27d;\">Tables of Contents<\/h4>\n<p>Created from the entries collected in the previous compilation within a <code>\\jobname.4tc<\/code> file.<\/p>\n<pre>\n \\ConfigureToc{unit-name} ......................4\n<\/pre>\n<p><div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">before unit number<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">before content<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#3<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">before page number<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#4<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">at end<\/div>\n<\/p>\n<ul>\n<li>Empty arguments request the omission of the corresponding field.<\/li>\n<li><code>\\TocCount<\/code> Specifies the entry count withing the <code>\\jobname.4tc<\/code> file.<\/li>\n<li><code>\\TitleCount<\/code> Count of entries submitted to the toc file.<\/li>\n<li>An alternative to <code>\\ConfigureToc{unit-name}<\/code>:<\/li>\n<li style=\"list-style: none\">\n<\/li>\n<\/ul>\n<pre>\n  \\def\\toc&lt;unit-name&gt;#1#2#3{&lt;before unit number&gt;#1&lt;before content&gt;#2%\n                          &lt;before page number&gt;#3&lt;at end&gt;}\n<\/pre>\n<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\ConfigureToc{section}\n    {}\n    {\\Picture[*]{pic.jpg width=\"13\"  height=\"13\"}~}\n    {}\n    {\\HCode{&lt;br \/&gt;}}\n<\/pre>\n<pre>\n  \\Configure{TocLink}..................4\n<\/pre>\n<\/p>\n<p>Configures the link offered in the third arguments of <code>\\ConfigureToc<\/code>.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{TocLink}{\\Link{#2}{#3}#4\\EndLink}\n  \\TocAt{#1,#2,#3,...}\n<\/pre>\n<div style=\"display: inline-block; width: 5em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 6em; width: 80%; vertical-align: top; margin-bottom:-0.5em;\">section type for which local tables of contents <code>Toc<\/code> #1 are requested.<\/div>\n<div style=\"display: inline-block; width: 5em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2,#3,&#8230;<\/div>\n<div style=\"display: inline-block;left-margin: 6em; width: 80%; vertical-align: top; margin-bottom:-0.5em;\">sectioning types to be included in the tables of contents.<\/div>\n<p>\n<\/p>\n<p>The non-leading arguments may be preceded by slashes <code>\/<\/code>, in which cases the arguments specify end points for the tables.<\/p>\n<p>The default setting requests automatic insertion of the local tables immediately after the sectioning heads.<\/p>\n<p>A star <code>*<\/code> character may be introduced, between the <code>\\TocAt<\/code> and the left brace, to request the appearances of the tables of contents at the end of the units&rsquo; prefaces.<\/p>\n<p>A hyphen <code>-<\/code> character, on the other hand, disables the automatic insertions of the local tables.<\/p>\n<p>In case of a single argument, the command removes the existing definition of <code>\\Toc#1<\/code>.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\TocAt{mychapter,mysection,mysubsection,\/myappendix,\/mypart}\n  \\TocAt-{mysection,mysubsection,\/mylikesection}\n  section{...}...\\Tocmysection\n<\/pre>\n<\/p>\n<p>The definition of the local table of contents can be redefined within <code>\\csname Toc#1\\endcsname<\/code>.<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\TocAt{section}\n  \\def\\Tocsection{\\TableOfContents[section]}\n  \\Css{div.sectionTOCS {\n                    width : 30%;\n                    float : right;\n               text-align : left;\n            vertical-align : top;\n              margin-left : 1em;\n                font-size : 85%;\n          background-color : #DDDDDD;\n     }}\n<\/pre>\n<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p>\n Table of content before the section title.<\/p>\n<pre>\n  \\Configure{section}{}{}\n    {\\Tocsection \\let\\saveTocsection=\\Tocsection\n     \\def\\Tocsection{\\let\\Tocsection=\\saveTocsection}%\n     \\ifvmode \\IgnorePar\\fi \\EndP\\IgnorePar\n     \\HCode{&lt;h3 class=\"sectionHead\"&gt;}\\TitleMark\\space\\HtmlParOff}\n    {\\HCode{&lt;\/h3&gt;}\\HtmlParOn\\ShowPar \\IgnoreIndent \\par}\n<\/pre>\n<pre>\n  \\Configure{TocAt}......................2\n  \\Configure{TocAt*}.....................2\n<\/pre>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">before the tables of contents<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">after the tables of contents<\/div>\n<\/p>\n<h4 style=\"color: #27d;\">Paragraphs<\/h4>\n<p><pre>\n  \\Configure{HtmlPar}..........4\n<\/pre>\n<\/p>\n<p><div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#1<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">content at the start non-indented paragraphs<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#2<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">content at the start indented paragraphs<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#3<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">insertion into <code>EndP<\/code> , at the start of non-indented paragraphs<\/div>\n<div style=\"display: inline-block; width: 2em; vertical-align: top; margin-bottom:-0.5em; text-align:left;\">#4<\/div>\n<div style=\"display: inline-block;left-margin: 4em; width: 90%; vertical-align: top; margin-bottom:-0.5em;\">insertion into <code>EndP<\/code> , at the start of indented paragraphs<\/div>\n<p>\n<\/p>\n<p><pre>\n  \\HtmlParOff\n  \\HtmlParOn\n  \\IgnorePar     Asks to ignore the next paragraph\n  \\ShowPar       Asks to take into account the following paragraphs\n \\IgnoreIndent  asks to ignore indentation in the next paragraph\n  \\ShowIndent    asks to check indentation in the following paragraphs\n  \\SaveEndP      Saves the content of EndP, and sets it to empty content\n  \\RecallEndP\n  \\SaveHtmlPar\n  \\RecallHtmlPar\n<\/pre>\n<\/p>\n<h4 style=\"color: #277;\">Example<\/h4>\n<p><pre>\n  \\Configure{@BODY}\n    {\\ifvmode \\IgnorePar\\fi \\EndP\n     \\HCode{&lt;div&gt;}\\par\\ShowPar}\n  \\Configure{@\/BODY}\n    {\\ifvmode \\IgnorePar\\fi \\EndP\n     \\HCode{&lt;\/div&gt;}}\n<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The \\Configure command is the most powerful user command in TeX4ht system. It helps to add various kinds of hooks to insert target markup code at the desired locations in and around various types of content. For instance, take the case of section{&#8230;} in LaTeX. A typical example will be:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,15,16],"tags":[],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-configure","category-tex","category-tex4ht"],"_links":{"self":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323"}],"version-history":[{"count":0,"href":"https:\/\/cvr.cc\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions"}],"wp:attachment":[{"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cvr.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}