summaryrefslogtreecommitdiff
path: root/support/ppower4/pp4link.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 /support/ppower4/pp4link.sty
Initial commit
Diffstat (limited to 'support/ppower4/pp4link.sty')
-rw-r--r--support/ppower4/pp4link.sty29
1 files changed, 29 insertions, 0 deletions
diff --git a/support/ppower4/pp4link.sty b/support/ppower4/pp4link.sty
new file mode 100644
index 0000000000..91aa8ef9a8
--- /dev/null
+++ b/support/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}}}}}