Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
renewcommands: hyperlink and hypertarget
Browse files Browse the repository at this point in the history
  • Loading branch information
royalstream committed Jun 2, 2016
1 parent 95fbd41 commit 96352f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/template.tex
Expand Up @@ -55,9 +55,13 @@
pdfborder={0 0 0}}
\urlstyle{same} % don't use monospace font for urls

\renewcommand*{\hyperref}[2][\ar]{%
\renewcommand*{\hypertarget}[3][\ar]{%
\def\ar{#2}%
#2 (\autoref{#1}, page~\pageref{#1})}
\label{#1}%
#3}

\renewcommand*{\hyperlink}[2]{%
#2 (\autoref{#1}, page~\pageref{#1})}

\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
Expand Down

0 comments on commit 96352f4

Please sign in to comment.