summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ppower4/pp4link.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:03:09 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:03:09 +0000
commit919e354c6de81f3d10b2f9b9fccb8bca88c2bee9 (patch)
tree9c159b07454a9ea0715493999ee2c4b87250c584 /Master/texmf-dist/tex/latex/ppower4/pp4link.sty
parentae93734a22bdfdde08d69ec20c7b9404d8e8dc15 (diff)
ppower4
git-svn-id: svn://tug.org/texlive/trunk@1211 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ppower4/pp4link.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ppower4/pp4link.sty29
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ppower4/pp4link.sty b/Master/texmf-dist/tex/latex/ppower4/pp4link.sty
new file mode 100644
index 00000000000..91aa8ef9a8b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ppower4/pp4link.sty
@@ -0,0 +1,29 @@
+%% pp4link.sty 18 Jun 2000
+%%----------------------------------------------------------
+%% History:
+%% initial version 05 May 2000
+%% updated to insert an anchor unconditionally 18 Jun 2000
+%%
+%% Make links to the first part of a built sequence of slides prepared
+%% with PPower4.
+%%
+%% Usage:
+%% Mark the target page with \toptarget{label}
+%%
+%% Install a hyperlink to it with \toplink{label}{text}
+%% "text" will be the active link to the target page.
+%%
+%% Notes:
+%% 1. "label" may consist only of letters, not digits or special
+%% characters.
+%% 2. You will need two runs of (pdf)LaTeX on your file.
+%% 3. The link will only be working after postprocessing with PPower4
+%%
+\RequirePackage{hyperref}
+\def\toplink#1#2{%
+ \csname pppplink@#1\endcsname{#2}%
+}
+\def\toptarget#1{%
+ \hypertarget{first.\arabic{page}}{}%
+ \protected@write\@auxout{}%
+ {\gdef\string\pppplink@#1{\string\hyperlink{first.\arabic{page}}}}}