blob: e78ca6fe8dee54c4e2a27b3eccec28f34933d7b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{hypertoc}[2011/01/23 v0.1 pretty TOC links (UL)]
%% Copyright (C) 2011 Uwe Lueck,
%% http://www.contact-ednotes.sty.de.vu
%% -- author-maintained in the sense of LPPL below --
%%
%% This file can be redistributed and/or modified under
%% the terms of the LaTeX Project Public License; either
%% version 1.3c of the License, or any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% We did our best to help you, but there is NO WARRANTY.
%%
%% Please report bugs, problems, and suggestions via
%%
%% http://www.contact-ednotes.sty.de.vu
%%
%% Modifying |\@dottedtocline|:
\let\HTOC@@line\@dottedtocline
\renewcommand*{\@dottedtocline}[4]{%
\HTOC@@line{#1}{#2}{#3}{\mathstrut#4\mathstrut}}
%% `\mathstrut' is like `\vphantom{()}', it indeed expands to
%% `\vphantom(' in \LaTeX\ (as in plain \TeX).
%%
%% Modifying |\l@section|:
%% % TODO: next lines appropriate for 'acticle.cls' only!?---and
%% % `\chapter' still missing ...
\let\HTOC@@section\l@section
\renewcommand*{\l@section}[1]{%
\HTOC@@section{\mathstrut#1\mathstrut}}
%% Leaving:
\endinput
%%
%% == VERSION HISTORY ==
v0.1 2011/01/23 very first
|