diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/movie15/movie15.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/movie15/movie15.sty | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/movie15/movie15.sty b/Master/texmf-dist/tex/latex/movie15/movie15.sty index 3a242932fbf..80b736cf2e0 100644 --- a/Master/texmf-dist/tex/latex/movie15/movie15.sty +++ b/Master/texmf-dist/tex/latex/movie15/movie15.sty @@ -9,7 +9,7 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{movie15}[2006/12/19] +\ProvidesPackage{movie15}[2007/01/04] \RequirePackage{keyval} \RequirePackage{ifthen} \RequirePackage{ifpdf} @@ -77,6 +77,15 @@ % \setboolean{@MXV@presentation}{false}% %} +\AtBeginDocument{% + \provideboolean{Hy@colorlinks}% set by hyperref + \ifHy@colorlinks% coloured (movieref-)link text instead of link border + \gdef\@MXV@pdfborder{/Border [0 0 0]}% + \else% + \gdef\@MXV@pdfborder{}% + \fi% +} + \RequirePackage{everyshi}% \newcount\@MXV@page% counter for absolute page number \EveryShipout{% @@ -2240,7 +2249,8 @@ \ifthenelse{\isundefined{\pdfmark}}{\@MXV@missing{hyperref}}{}% \fi% \leavevmode% - \savebox{\@MXV@textbox}{#3}% save text argument + % save text argument + \savebox{\@MXV@textbox}{\ifHy@colorlinks\color{\@linkcolor}\fi#3}% % %find out whether the contents should be hidden or not (for presentations) \setboolean{@MXV@hide}{false}% @@ -3109,7 +3119,7 @@ }{% \edef\@MXV@linkattr{% \if@MXV@beamer% - /Border [1 1 1]% + \@MXV@pdfborder% \else% /Border [\@pdfborder]% \fi% @@ -3157,6 +3167,7 @@ Color=\@linkbordercolor,% AcroHighlight=\@pdfhighlight,% Raw={% + \@MXV@pdfborder% /_objdef {linkannot\the\@MXV@links}% }% }% |