mirror of https://github.com/CGAL/cgal
better toc
This commit is contained in:
parent
a19ca0b4fc
commit
9102a64ef6
|
|
@ -999,20 +999,21 @@
|
|||
\gdef\lciCurrentPartName{}%
|
||||
}%
|
||||
\lciPushOutput{description}%
|
||||
\lcRawHtml{<tr><td colspan="3">}%
|
||||
\lcRawHtml{<tr><td colspan="3" class="TocGroup}\lciPkgDescOdd\lcRawHtml{Left">}
|
||||
\lciCheckForLabelInsideHeadingX{\ccValueofPkgName}{\lciCurrentPackageName}%
|
||||
\lcRawHtml{<h3>}\lciCurrentPackageName\lcRawHtml{</h3></td></tr>}
|
||||
%\lcRawHtml{<TABLE>}
|
||||
\lcRawHtml{<tr valign="top"><td width="75\%">}
|
||||
\lcRawHtml{<tr valign="top"><td width="75\%" class="TocGroup}\lciPkgDescOdd\lcRawHtml{Left">}
|
||||
\ccValueofPkgSummary
|
||||
\lcRawHtml{</td><td width="2\%">}
|
||||
\lcRawHtml{</td><td width="23\%">}
|
||||
\lcRawHtml{</td><td width="2\%" class="TocGroup}\lciPkgDescOdd\lcRawHtml{Left">}
|
||||
\lcRawHtml{</td><td width="23\%" class="TocGroup}\lciPkgDescOdd\lcRawHtml{Left">}
|
||||
\ccValueofPkgMaturity
|
||||
\ccValueofPkgDependsOn
|
||||
\ccValueofPkgLicense
|
||||
\lcRawHtml{<a href="#C1">User Manual</a> <a href="#C2">Reference Manual</a>}
|
||||
\lcRawHtml{</td></td>}
|
||||
%\lcRawHtml{</table>}
|
||||
\lcPkgDescToggleOdd
|
||||
\lciPopOutput%
|
||||
\gdef\ccValueofPkgName{}%
|
||||
%\lciPkgDescriptionIsOddEntry
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ l% ___________________________________________________________________________
|
|||
\lciHtmlFileHeader{Package Description}%
|
||||
\lciHtmlNavigationTop
|
||||
\lcRawHtml{<H1>Package Description</H1>}
|
||||
\lcRawHtml{<table>}
|
||||
\lcRawHtml{<table cellpadding="2" cellspacing="0">}
|
||||
\lciPopOutput%
|
||||
}{%
|
||||
% print remaining footnotes at the end of the conversion
|
||||
|
|
|
|||
|
|
@ -94,6 +94,11 @@
|
|||
</body> </html>
|
||||
}}
|
||||
|
||||
% manage even/odd outer table blocks
|
||||
\newcommand{\lcPkgDescToggleOdd}{\lciIfEqualExpanded{\lciPkgDescOdd}{Odd}{%
|
||||
\gdef\lciPkgDescOdd{Even}}{\gdef\lciPkgDescOdd{Odd}}}
|
||||
\gdef\lciPkgDescOdd{Odd}
|
||||
|
||||
|
||||
% ___________________________________________________________________________
|
||||
% ###########################################################################
|
||||
|
|
@ -105,7 +110,7 @@
|
|||
% manage even/odd outer table blocks
|
||||
\newcommand{\lcTocToggleOdd}{\lciIfEqualExpanded{\lciTocOdd}{Odd}{%
|
||||
\gdef\lciTocOdd{Even}}{\gdef\lciTocOdd{Odd}}}
|
||||
\gdef\lciTocOdd{Odd}
|
||||
\gdef\lciTocOdd{Even}
|
||||
|
||||
% Enables and disables the two-column TOC
|
||||
\newcommand{\lcTwoColumnToc}{\gdef\lciIfTwoColumnToc{\lcTrue}}
|
||||
|
|
@ -127,12 +132,12 @@
|
|||
\lcRawHtml{ </tr>
|
||||
|
||||
}%
|
||||
\lcTocToggleOdd
|
||||
%\lcTocToggleOdd
|
||||
}{\lciIfEqualExpanded{\lciTocOuterState}{Right}{%
|
||||
\lcRawHtml{ </td></tr>
|
||||
|
||||
}%
|
||||
\lcTocToggleOdd
|
||||
%\lcTocToggleOdd
|
||||
}{}}%
|
||||
\gdef\lciTocOuterState{Sync}%
|
||||
}
|
||||
|
|
@ -141,13 +146,13 @@
|
|||
\newcommand{\lciTocCompleteRow}{%
|
||||
\lciTocCloseInner
|
||||
\lciTocSync
|
||||
\lcRawHtml{ <tr valign="top"><td }%
|
||||
\lcRawHtml{ <tr valign="top"><td }%
|
||||
\lciIfTwoColumnToc%
|
||||
{\lcRawHtml{colspan="2" }}%
|
||||
{}%
|
||||
\lcRawHtml{class="TocGroup}\lciTocOdd\lcRawHtml{Left">}
|
||||
\gdef\lciTocOuterState{Right}%
|
||||
\lcTocToggleOdd
|
||||
%\lcTocToggleOdd
|
||||
}
|
||||
|
||||
\newcommand{\lcTocLeft}{\lciPushOutput{toc}\lciTocLeft\lciPopOutput}
|
||||
|
|
@ -212,7 +217,7 @@
|
|||
|
||||
% outer table class and options
|
||||
\newcommand{\lciTocOuterTable}{%
|
||||
\lcRawHtml{<table class="TocOuterTable" cellpadding="2" cellspacing="2">
|
||||
\lcRawHtml{<table class="TocOuterTable" cellpadding="2" cellspacing="0">
|
||||
}}
|
||||
|
||||
% inner table class and options
|
||||
|
|
@ -227,39 +232,24 @@
|
|||
Table of Contents}%
|
||||
\lciHtmlNavigationTop
|
||||
\lcRawHtml{
|
||||
<h1>}\lciIfEqualExpanded{\lciManualTitle}{}{}{%
|
||||
\lciManualTitle\lcRawHtml{<br>}}%
|
||||
<h1>}\lciIfEqualExpanded{\lciManualTitle}{}{}{
|
||||
\lciManualTitle\lcRawHtml{<br>}}
|
||||
\lcRawHtml{Table of Contents</h1>
|
||||
<hr>
|
||||
|
||||
<!-- Begin of the list of contents entries -->
|
||||
}\lciTocOuterTable\lcRawHtml{
|
||||
} \lciIfTwoColumnToc{\lcRawHtml{
|
||||
<tr valign="top"><td class="TocGroupOddLeft">
|
||||
}\lciTocInnerTable
|
||||
\lcRawHtml{ <tr><td class="TocTitle">
|
||||
<a class="TocLinkTitle" href="title.html">Title Page</a>
|
||||
</tr></td>
|
||||
</table></td><td class="TocGroupOddRight">
|
||||
}\lciTocInnerTable
|
||||
\lcRawHtml{ <tr><td class="TocBibliography">
|
||||
<a class="TocLinkBibliography" href="biblio.html">Bibliography</a>
|
||||
</td></tr>
|
||||
</table></td></tr>
|
||||
|
||||
<tr valign="top"><td class="TocGroupEvenLeft">
|
||||
}\lciTocInnerTable
|
||||
\lcRawHtml{ <tr><td class="TocContents">
|
||||
<a class="TocLinkContents" href="contents.html">Table of Contents</a>
|
||||
</td></tr>
|
||||
</table></td><td class="TocGroupEvenRight">
|
||||
}\lciTocInnerTable
|
||||
\lcRawHtml{ <tr><td class="TocIndex">
|
||||
<a class="TocLinkIndex" href="manual_index.html">Index</a>
|
||||
</td></tr>
|
||||
</table></td></tr>
|
||||
|
||||
}}{\lcRawHtml{
|
||||
}\lciTocOuterTable
|
||||
\lciIfTwoColumnToc{
|
||||
\lcTocLeft{\lcRawHtml{<a class="TocLinkTitle" href="title.html">Title Page</a>}}%
|
||||
\lcTocRight{\lcRawHtml{<a class="TocLinkBibliography" href="biblio.html">Bibliography</a>}}%
|
||||
\lcTocToggleOdd%
|
||||
\lcTocLeft{\lcRawHtml{<a class="TocLinkPkgDesc" href="pkgdescription.html">Package Description</a>}}%
|
||||
\lcTocRight{\lcRawHtml{<a class="TocLinkIndex" href="manual_index.html">Index</a>}}%
|
||||
\lcTocToggleOdd%
|
||||
\lcTocLeft{\lcRawHtml{<a class="TocLinkContents" href="contents.html">Table of Contents</a>}}%
|
||||
\lcTocToggleOdd%
|
||||
}{%
|
||||
\lcRawHtml{
|
||||
<tr valign="top"><td class="TocGroupOddLeft">
|
||||
}\lciTocInnerTable
|
||||
\lcRawHtml{ <tr><td class="TocTitle">
|
||||
|
|
@ -275,12 +265,22 @@
|
|||
</table></td></tr>
|
||||
|
||||
}%
|
||||
}}
|
||||
\lcTocToggleOdd%
|
||||
|
||||
% \gdef\lciTocOuterState{Sync}
|
||||
%\lcTocLeft{\lcRawHtml{<a class="TocLinkTitle" href="title.html">Title Page</a>}}%
|
||||
%\lcTocToggleOdd%
|
||||
%\lcTocLeft{\lcRawHtml{<a class="TocLinkContents" href="contents.html">Table of Contents</a>}}%
|
||||
%\lcTocToggleOdd%
|
||||
}%
|
||||
}
|
||||
|
||||
% Args: none
|
||||
\newcommand{\lciTocFileFooter}{%
|
||||
\lciTocSync
|
||||
\lciIfTwoColumnToc{}{\lcRawHtml{
|
||||
\lciIfTwoColumnToc{}{
|
||||
\lcTocToggleOdd%
|
||||
\lcRawHtml{
|
||||
<tr valign="top"><td class="TocGroup}\lciTocOdd\lcRawHtml{Left">
|
||||
}\lciTocInnerTable
|
||||
\lcRawHtml{ <tr><td class="TocBibliography">
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ p.TitlePageDate { font-size:18pt; }
|
|||
|
||||
table.TocOuterTable { }
|
||||
td.TocGroupOddLeft,
|
||||
td.TocEmptyOddLeft { background-color: #d0d0d0; }
|
||||
td.TocEmptyOddLeft,
|
||||
td.TocGroupOddRight,
|
||||
td.TocEmptyOddRight { }
|
||||
td.TocEmptyOddRight { background-color: #e7e7e7; }
|
||||
td.TocGroupEvenLeft,
|
||||
td.TocEmptyEvenLeft { }
|
||||
td.TocEmptyEvenLeft,
|
||||
td.TocGroupEvenRight,
|
||||
td.TocEmptyEvenRight { background-color: #d0d0d0; }
|
||||
td.TocEmptyEvenRight { }
|
||||
|
||||
h3.TocPart { background-color: #ffffa0; }
|
||||
h2.PkgDescPart { background-color: #ffffa0; }
|
||||
|
|
@ -62,10 +62,11 @@ td.TocSubsubsection { }
|
|||
td.TocParagraph { }
|
||||
td.TocSubparagraph { }
|
||||
|
||||
a.TocLinkTitle { }
|
||||
a.TocLinkContents { }
|
||||
a.TocLinkIndex { }
|
||||
a.TocLinkBibliography { }
|
||||
a.TocLinkTitle { font-weight: bold; }
|
||||
a.TocLinkContents { font-weight: bold; }
|
||||
a.TocLinkIndex { font-weight: bold; }
|
||||
a.TocLinkBibliography { font-weight: bold; }
|
||||
a.TocLinkPkgDesc { font-weight: bold; }
|
||||
a.TocLinkPart { }
|
||||
a.TocLinkChapter { }
|
||||
a.TocLinkSection { }
|
||||
|
|
|
|||
Loading…
Reference in New Issue