summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/morehype/use/hypertoc.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/morehype/use/hypertoc.sty
Initial commit
Diffstat (limited to 'macros/latex/contrib/morehype/use/hypertoc.sty')
-rw-r--r--macros/latex/contrib/morehype/use/hypertoc.sty37
1 files changed, 37 insertions, 0 deletions
diff --git a/macros/latex/contrib/morehype/use/hypertoc.sty b/macros/latex/contrib/morehype/use/hypertoc.sty
new file mode 100644
index 0000000000..e78ca6fe8d
--- /dev/null
+++ b/macros/latex/contrib/morehype/use/hypertoc.sty
@@ -0,0 +1,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