Commits

Vedran Miletić committed d428f2b

Fix hyperref in beamerarticle and add option nohyperref.

Comments (0)

Files changed (2)

base/beamerarticle.sty

 
 
 \DeclareOption{noxcolor}{\PassOptionsToPackage{noxcolor}{beamerbasearticle}}
+\DeclareOption{nohyperref}{\PassOptionsToPackage{nohyperref}{beamerbasearticle}}
 \DeclareOption{notheorems}{\PassOptionsToPackage{notheorems}{beamerbasearticle}}
 \DeclareOption{noamsthm}{\PassOptionsToPackage{noamsthm}{beamerbasearticle}}
 \DeclareOption{envcountsect}{\PassOptionsToPackage{envcountsect}{beamerbasearticle}}

base/beamerbasearticle.sty

 \newif\ifbeamer@articlexcolor
 \beamer@articlexcolortrue
 
+\newif\ifbeamer@articlehyperref
+\beamer@articlehyperreftrue
+
 \newif\ifbeamer@articleactive
 \beamer@articleactivefalse
 
 \DeclareOption{noxcolor}{\beamer@articlexcolorfalse}
+\DeclareOption{nohyperref}{\beamer@articlehyperreffalse}
 \DeclareOption{nodefaultblocks}{\beamer@blocksfalse}% obsolete. use notheorems
 \DeclareOption{notheorems}{\beamer@blocksfalse}
 \DeclareOption{noamsthm}{\beamer@blocksfalse\beamer@amsfalse}
 
 \RequirePackage{amssymb}
 
-\RequirePackage[implicit=false]{hyperref}
+\ifbeamer@articlexcolor
+  \PassOptionsToPackage{bookmarks=true,%
+    bookmarksopen=true,%
+    pdfborder={0 0 0},%
+    pdfhighlight={/N},%
+    linkbordercolor={.5 .5 .5}}{hyperref}
 
-\hypersetup{pdfcreator={LaTeX with beamer class version \beamer@version\space (article mode)}}
+  \RequirePackage{hyperref}
+  % For hyperlinks
+  \hypersetup{pdfcreator={LaTeX with beamer class version \beamer@version\space (article mode)}}
+\fi
 
 \RequirePackage{beamerbaseoptions}
 % For option management