[latex3-commits] [git/LaTeX3-latex3-pdfresources] drivers: First-pass pdfmode start/end link (ea9e5e2)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Apr 7 23:25:03 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : drivers
Link       : https://github.com/latex3/pdfresources/commit/ea9e5e2c500b934aedba5df5c5d53cfba95475fc

>---------------------------------------------------------------

commit ea9e5e2c500b934aedba5df5c5d53cfba95475fc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Apr 7 22:25:03 2019 +0100

    First-pass pdfmode start/end link


>---------------------------------------------------------------

ea9e5e2c500b934aedba5df5c5d53cfba95475fc
 pdfresources.dtx |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index 979ecba..a9ad11d 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -84,6 +84,37 @@
 %<*pdfmode>
 %    \end{macrocode}
 %
+% \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~name } {#3} }
+\cs_new_protected:Npn \driver_pdf_startlink_user:nn #1#2
+  { \@@_pdf_startlink:nn {#1} { user } {#3} }
+\cs_new_protected:Npx \@@_pdf_startlink:nn #1#2#3
+  {
+    \cs_if_exist:NTF \tex_pdfextension:D
+      { \tex_pdfextension:D startlink ~ }
+      { \tex_pdfstartlink:D }
+      attr {#1}
+      \exp_not:N \tl_if_blank:nF {#2}
+        { ~ #2 {#3} }
+  }
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\driver_pdf_endlink:}
+%    \begin{macrocode}
+\cs_new_protected:Npx \@@_pdf_endline:
+  {
+    \cs_if_exist:NTF \tex_pdfextension:D
+      { \tex_pdfextension:D endlink }
+      { \tex_pdfendlink:D }
+  }
+%    \end{macrocode}
+% \end{macro}
+%
 %    \begin{macrocode}
 %</pdfmode>
 %    \end{macrocode}





More information about the latex3-commits mailing list