summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex')
-rw-r--r--Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex25
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex b/Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex
new file mode 100644
index 00000000000..f5b6e695a6e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex
@@ -0,0 +1,25 @@
+% !Mode:: "TeX:UTF-8:Main"
+\documentclass{article}
+\usepackage{ifluatex,etoolbox}
+\usepackage{pdfpages}
+%pax needs this to run with lualatex
+\ifluatex
+\usepackage{pdftexcmds}
+\makeatletter
+\let\pdfstrcmp\pdf@strcmp
+\let\pdfescapename\pdf@escapename
+\makeatother
+\usepackage{luatex85}
+\fi
+%load pax
+\usepackage{pax}
+%correct a bug in pax affecting clipping
+\makeatletter
+\patchcmd\PAX@pdf@annot{\PAX@pagellx}{\PAX@page@llx}{}{\fail}
+\makeatother
+\begin{document}
+\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=2]{doc-input1}
+\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=1]{doc-input1}
+
+\includepdf[pages=-]{doc-input2}
+\end{document}