[tex-eplain] Creating table of contents using htstart and hlend
Shiv Shankar Dayal
shivshankar.dayal at gmail.com
Sat Sep 21 09:31:43 CEST 2024
I am a TeX novice. So I have managed something like below(manual work):
\begingroup
\raggedleft
\chaptitlefont\hlstart{name}{}{preface}Preface
\hlend\dotfill\hfil\xref{preface1}
\vskip1mm
\partfont\hlstart{name}{}{part1}I Geometry \hlend\dotfill\hfil\xref{part11}
\vskip1mm
\chaptitlefont\hlstart{name}{}{geometry}1.\ Geometry
\hlend\hfil\dotfill\xref{geometry1}
\vskip1mm
\sectionfont\hlstart{name}{}{lines}1.1 Points, Lines and Planes
\hlend\hfil\dotfill\xref{lines1}
\vfill
\endgroup
For every chapter and section I put an hldest and a xrdef, which are used
in TOC.
On Sat, Sep 21, 2024 at 4:26 AM Karl Berry <karl at freefriends.org> wrote:
>
> Hi Shiv - I'm sorry, I can't give you a recipe. Maybe others here have
> done hyperlinking of tables of contents in eplain and can share their
> solutions. (I didn't write the hyperlink support in Eplain and so am
> less familiar with it than most of the rest.) Similarly, if you do come
> up with a solution, I'd be happy to see it so I can add it as an example
> or to the documentation.
>
> Although not related to hyperlinking, this q&a at least provides a
> complete/minimal example of handling toc's in Eplain, so perhaps it will
> provide a useful starting point, if you haven't seen it. Very nice work.
> https://tex.stackexchange.com/questions/157056
>
> Best,
> Karl
--
Respect,
Shiv Shankar Dayal
More information about the tex-eplain
mailing list.