/
ocgcolorlinks.pvt
40 lines (35 loc) · 1.52 KB
/
ocgcolorlinks.pvt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\input{regression-test}
\RequirePackage{pdfmanagement}
\DeclareDocumentMetadata { }
\documentclass{article}
\usepackage{xcolor}
\usepackage[verbose,ocgcolorlinks]{hyperref}
\hypersetup{ocgcolorlinks}
\begin{document}
\hypupdateattribute
\section{hyperref colors / colorlinks}\label{sec}
\begin{tabular}{lll}
default color & example \\\hline\\
\textcolor{red}{red, linkcolor} & \ref{sec} \\\\
\textcolor{green}{green, citecolor}& \cite{cite} \\\\
\textcolor{cyan}{cyan, filecolor} & \href{example-image.pdf}{file}\\\\
\textcolor{magenta}{magenta, urlcolor}& \url{https://www.latex-project.org/}\\\\
\textcolor{red}{red, menucolor} & \Acrobatmenu{View}{View Something}\\\\
\textcolor{cyan}{cyan, runcolor} & \href{run:sumatra}{run something}
\end{tabular}
\section{hyperref colors / border }
\makeatletter \def\HyColor@UseColor#1{}\makeatother
\hypersetup{pdfborder={1 1 1}}
\begin{tabular}{lll}
default color & example \\\hline\\
\textcolor{red}{red, linkbordercolor} & \ref{sec} \\\\
\textcolor{green}{green, citebordercolor}& \cite{cite} \\\\
\textcolor{teal}{teal, filebordercolor} & \href{example-image.pdf}{file}\\\\
\textcolor[rgb]{0,1,1}{rgb 0,1,1, urlbordercolor}& \url{https://www.latex-project.org/}\\\\
\textcolor{red}{red, menubordercolor} & \Acrobatmenu{View}{View Something}\\\\
\textcolor[rgb]{0,0.7,0.7}{rgb 0,0.7,0.7, runbordercolor} & \href{run:sumatra}{run something}
\end{tabular}
\begin{thebibliography}{99}
\bibitem{cite} some text
\end{thebibliography}
\end{document}