[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: testfile for links (3caa114)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Mar 18 00:23:20 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : master
Link : https://github.com/latex3/pdfresources/commit/3caa114296b3b32ed0516bd24c23e21bdeaa636c
>---------------------------------------------------------------
commit 3caa114296b3b32ed0516bd24c23e21bdeaa636c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Mar 18 00:23:20 2020 +0100
testfile for links
>---------------------------------------------------------------
3caa114296b3b32ed0516bd24c23e21bdeaa636c
experiments/hyperref-links.tex | 44 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/experiments/hyperref-links.tex b/experiments/hyperref-links.tex
new file mode 100644
index 0000000..c2a411a
--- /dev/null
+++ b/experiments/hyperref-links.tex
@@ -0,0 +1,44 @@
+% !Mode:: "TeX:DE:UTF-8:Main"
+
+\documentclass{article}
+\usepackage{l3pdf}
+\ExplSyntaxOn
+\pdf_uncompress:
+\ExplSyntaxOff
+\usepackage{xcolor}
+\usepackage[customdriver=hgeneric-experimental]
+{hyperref}
+\hypupdateattribute
+\begin{document}
+\tracingmacros=1
+\href{run:cmd}{run something}
+\end{document}
+\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\@pdfborder{1 1 1} \def\HyColor at UseColor#1{}\makeatother
+
+\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}
\ No newline at end of file
More information about the latex3-commits
mailing list.