[l2h] two columns contents list

Ross Moore ross at ics.mq.edu.au
Thu Sep 11 08:05:28 CEST 2003


Hi Christian, Fred and everyone else,

On Wed, 10 Sep 2003, Fred L. Drake, Jr. wrote:

>
> Christian Mensing writes:
>  > An other fine layout I whould like to apply is the alphabetical
>  > subsectioning of a long index as in the current on-line manual.
>  > http://www-texdev.mpce.mq.edu.au/l2h/docs/manual/node11_ct.html
>
> That's a cool index!  I'd not looked at this version before, I think.

Thanks. There are some cute ideas programmed into that, to make
extensive use of hyperlinks and the \label/ref mechanism.

You should already have the coding for it, as part of the LaTeX2HTML
docs that come with the distribution, in the  docs/ subdirectory.
It's towards the end of  docs/manual.tex .

It works as follows:

\printindex

%
%  Alphabetization and navigation within the index
%  ...these special index entries must come *after* the  \printindex
%  else half of the hyperlinks will point to the preceding page.
%
\begin{htmlonly}
\newcommand{\indexAlpha}[5]{\index{#1@\htmlref{_}{#2}%
 \htmlref{\HTML{SUB}{\LARGE #3}}{AZ}\htmlref{_}{#4}\label{#5}| }}
%
\indexAlpha{\$}{Z}{\$}{dot}{doll}%
\indexAlpha{.}{doll}{~.~}{A}{dot}%
\indexAlpha{A}{dot}{A}{B}{A}%
\indexAlpha{B}{A}{B}{C}{B}%
\indexAlpha{C}{B}{C}{D}{C}%
 etc.

%
%% This is an alphabetical navigation panel.
\index{@\label{AZ}\textbf{\LARGE
\htmlref{\$}{doll} \htmlref{.}{dot} \htmlref{A}{A}
 \htmlref{B}{B} \htmlref{C}{C} \htmlref{D}{D} \htmlref{E}{E}
\htmlref{F}{F}
 \htmlref{G}{G} \htmlref{H}{H} \htmlref{I}{I} \htmlref{J}{K}
\htmlref{K}{K}
 \htmlref{L}{L} \htmlref{M}{M} \htmlref{N}{N} \htmlref{O}{O}
\htmlref{P}{P}
 \htmlref{Q}{R} \htmlref{R}{R} \htmlref{S}{S} \htmlref{T}{T}
\htmlref{U}{U}
 \htmlref{V}{V} \htmlref{W}{W} \htmlref{X}{X} \htmlref{Y}{Z}
\htmlref{Z}{Z}}\\
\htmlrule[all]| }

\end{htmlonly}


>
> The scripts I use aren't well documented at this time, but are freely
> available (including the l2hinit.perl I use) as part of the "latex"
> flavor of the Python documentation:
>
>     http://www.python.org/doc/current/download.html
>
> I'm always happy to answer questions about what I've done.

I always leave the LaTeX source accessible in the directory
where the web-pages were generated and displayed, as the
LaTeX2HTML default location. Hence you can deduce the name
of the source document from that of the directory.


Hope this helps,

	Ross Moore

>
>
>   -Fred
>
> --
> Fred L. Drake, Jr.  <fdrake at acm.org>
> PythonLabs at Zope Corporation
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
>


More information about the latex2html mailing list