summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/newpax/doc-use-pax.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/newpax/doc-use-pax.tex')
-rw-r--r--macros/latex/contrib/newpax/doc-use-pax.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/latex/contrib/newpax/doc-use-pax.tex b/macros/latex/contrib/newpax/doc-use-pax.tex
index f5b6e695a6..08bfe5abe7 100644
--- a/macros/latex/contrib/newpax/doc-use-pax.tex
+++ b/macros/latex/contrib/newpax/doc-use-pax.tex
@@ -16,6 +16,10 @@
%correct a bug in pax affecting clipping
\makeatletter
\patchcmd\PAX@pdf@annot{\PAX@pagellx}{\PAX@page@llx}{}{\fail}
+%allow hashes and percent in the pax file
+\patchcmd\PAX@AddAnnots{\InputIfFileExists\PAX@file{}{\typeout{* Missing: \PAX@file}}}
+ {\begingroup \catcode`\#=12 \catcode`\%=12
+ \InputIfFileExists\PAX@file{}{\typeout{* Missing: \PAX@file}}\endgroup}{}{\fail}
\makeatother
\begin{document}
\includegraphics[scale=0.5,trim=5cm 15cm 8cm 3cm,clip,page=2]{doc-input1}