diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-08 03:00:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-03-08 03:00:59 +0000 |
commit | d9784b9287b55be1161c5d383c2a7ebde45671ee (patch) | |
tree | bf57d07f605b6c53c124ce1f918014bb8dae108f /macros/latex/contrib/newpax/doc-use-newpax.tex | |
parent | 6c0a4c9f40ab21e9b7d888d6a13b76b9af2f6c5b (diff) |
CTAN sync 202103080300
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} |