mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2026-01-08 02:07:28 +08:00
Adding option to disable active links
This commit is contained in:
parent
dc50c6d2ec
commit
0ef97ea100
1 changed files with 9 additions and 1 deletions
|
|
@ -35,6 +35,9 @@
|
|||
% Options for draft or final
|
||||
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
|
||||
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
||||
% Option to disable active links
|
||||
\newif\ifacv@noactivelinks
|
||||
\DeclareOption{noactivelinks}{\acv@noactivelinkstrue}
|
||||
% Inherit options of article
|
||||
\DeclareOption*{%
|
||||
\PassOptionsToClass{\CurrentOption}{article}
|
||||
|
|
@ -83,7 +86,12 @@
|
|||
% Needed to deal a paragraphs
|
||||
\RequirePackage{parskip}
|
||||
% Needed to deal hyperlink
|
||||
\RequirePackage[hidelinks,unicode,pdfpagelabels=false]{hyperref}
|
||||
\ifacv@noactivelinks
|
||||
% Load hyperref with draft option to disable links
|
||||
\RequirePackage[draft,unicode,pdfpagelabels=false]{hyperref}
|
||||
\else
|
||||
\RequirePackage[hidelinks,unicode,pdfpagelabels=false]{hyperref}
|
||||
\fi
|
||||
\hypersetup{%
|
||||
pdftitle={},
|
||||
pdfauthor={},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue