diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-28 21:23:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-28 21:23:18 +0000 |
commit | c55b67ba30f320ddfc93fbdca08cab7512704011 (patch) | |
tree | a9e49acdcf4d244f4d4e8f0c46aec7aad132cb28 /Master/texmf-dist/tex | |
parent | bd32b6dc742088fab1ad44079650c6bfed720398 (diff) |
intopdf (28may19)
git-svn-id: svn://tug.org/texlive/trunk@51247 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/intopdf/intopdf.sty | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/intopdf/intopdf.sty b/Master/texmf-dist/tex/latex/intopdf/intopdf.sty index 528bdf0648c..311ee82a403 100644 --- a/Master/texmf-dist/tex/latex/intopdf/intopdf.sty +++ b/Master/texmf-dist/tex/latex/intopdf/intopdf.sty @@ -18,11 +18,11 @@ %% and version 1.3 or later is part of all distributions of %% LaTeX version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e} -\RequirePackage{expl3} +\RequirePackage{expl3,xparse} \ProvidesExplPackage {intopdf} - {2018/03/15} - {0.1.0} + {2019/05/28} + {0.2.1} {Embed non-PDF files into PDF with hyperlink} \RequirePackage{hyperref} @@ -91,15 +91,15 @@ #3 \__intopdf_annot_end: } -\cs_new_protected:Nn\intopdf_attach_link:nnnn{ +\cs_new_protected:Nn\intopdf_attach_link:nnnnn{ \__intopdf_pdfstream_file:nn{ - /Subtype /\__intopdf_escape_name:n{#2} - }{#1} + /Subtype /\__intopdf_escape_name:n{#3} + }{#2} \__intopdf_pdfobj:n{ /Type /Filespec /F \__intopdf_escape_string:n{#1} /EF << /F \__intopdf_lastobj_ref: >> - /Desc \__intopdf_escape_string:n{#3} + /Desc \__intopdf_escape_string:n{#4} }% \__intopdf_annot:nnn{ \Hy@setpdfborder @@ -117,14 +117,17 @@ /FS \__intopdf_lastobj_ref: /F\c_space_tl 416 /CA\c_space_tl 0 - /Contents \__intopdf_escape_string:n{#3} + /Contents \__intopdf_escape_string:n{#4} }{ - #4 + #5 } } } -\cs_new_protected:Npn\attachandlink#1[#2]#3#4{ - \intopdf_attach_link:nnnn{#1}{#2}{#3}{#4} +\cs_new_protected:Npn \intopdf_attach_link:nnnn #1{ + \intopdf_attach_link:nnnnn{#1}{#1} +} +\NewDocumentCommand\attachandlink{O{#2}mr[]mm}{ + \intopdf_attach_link:nnnnn{#1}{#2}{#3}{#4}{#5} } \endinput %% |