[latex3-commits] [git/LaTeX3-latex3-pdfresources] drivers: Basic dvipdfmx link support (82bfa99)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sun Apr 7 23:47:45 CEST 2019
Repository : https://github.com/latex3/pdfresources
On branch : drivers
Link : https://github.com/latex3/pdfresources/commit/82bfa9912985951856cddc67d733133d78c3de4d
>---------------------------------------------------------------
commit 82bfa9912985951856cddc67d733133d78c3de4d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun Apr 7 22:47:45 2019 +0100
Basic dvipdfmx link support
>---------------------------------------------------------------
82bfa9912985951856cddc67d733133d78c3de4d
pdfresources.dtx | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/pdfresources.dtx b/pdfresources.dtx
index a9ad11d..07b070b 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -119,6 +119,52 @@
%</pdfmode>
% \end{macrocode}
%
+% \subsubsection{\texttt{(x)dvipdfmx} driver}
+%
+% \begin{macrocode}
+%<*dvipdfmx|dvixpdfmx>
+% \end{macrocode}
+%
+% \begin{macro}{\@@_pdf:n}
+% \begin{macrocode}
+\cs_new_protected:Npx \@@_pdf:n #1
+ { \@@_literal:n { pdf: #1 } }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\driver_pdf_startlink_goto:nn, \driver_pdf_startlink_user:nn}
+% \begin{macro}{\@@_pdf_startlink:nnn}
+% \begin{macrocode}
+\cs_new_protected:Npn \driver_pdf_startlink_goto:nn #1#2
+ { \@@_pdf_startlink:nn {#1} { /GoTo } {#3} }
+\cs_new_protected:Npn \driver_pdf_startlink_user:nn #1#2
+ { \@@_pdf_startlink:nn {#1} { } {#3} }
+\cs_new_protected:Npn \@@_pdf_startlink:nn #1#2#3
+ {
+ \@@_pdf:n
+ {
+ bann
+ <<
+ /Type /Annot
+ #1 ~ #2 ~ #3
+ >>
+ }
+ }
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\driver_pdf_endlink:}
+% \begin{macrocode}
+\cs_new_protected:Npx \@@_pdf_endline:
+ { \@@_pdf:n { eann } }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macrocode}
+%</dvipdfmx|dvixpdfmx>
+% \end{macrocode}
+%
% \begin{macrocode}
%</drivers>
% \end{macrocode}
More information about the latex3-commits
mailing list