\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{<object class="toc" data="\jobname-toc.\:html">}
[\Link[\jobname-toc.\:html]{}{}table of contents\EndLink]
\HCode{</object>}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option ‘obj-toc’}
\fi
-_-_-