diff options
Diffstat (limited to 'macros/latex/contrib/newpax/doc-use-newpax.tex')
-rw-r--r-- | macros/latex/contrib/newpax/doc-use-newpax.tex | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/latex/contrib/newpax/doc-use-newpax.tex b/macros/latex/contrib/newpax/doc-use-newpax.tex new file mode 100644 index 0000000000..dc23bcd842 --- /dev/null +++ b/macros/latex/contrib/newpax/doc-use-newpax.tex @@ -0,0 +1,35 @@ +% !Mode:: "TeX:UTF-8:Main" + +\RequirePackage{pdfmanagement-testphase} +\DeclareDocumentMetadata{uncompress} +\documentclass{article} + +\usepackage{pdfpages,xcolor} + +\usepackage{hyperref} +\hypersetup{linkbordercolor=blue} + +\usepackage{newpax} + +%use the link border color and style of the imported pdf +%and not hyperref colors +\newpaxsetup{usefileattributes=true} + +\begin{document} + +\includegraphics[scale=0.5,trim=4cm 15cm 8cm 3cm,clip,page=1]{doc-input1} +\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=2]{doc-input1} + +%set a unique suffix if the pdf is imported twice +\newpaxsetup{destsuffix=B} +\includegraphics[scale=0.5,trim=4cm 15cm 8cm 3cm,clip,page=1]{doc-input1} +\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=2]{doc-input1} + +% suppress the adding of annotations +\newpaxsetup{addannots=false} +\includegraphics[scale=0.5,trim=4cm 15cm 8cm 3cm,clip,page=1]{doc-input1} + +%reactivate, don't use file attributes +\newpaxsetup{addannots=true,usefileattributes=false} +\includepdf[pages=-]{doc-input2} +\end{document} |