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.tex4
1 files changed, 4 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
index f5b6e695a6e..08bfe5abe7f 100644
--- a/Master/texmf-dist/doc/latex/newpax/doc-use-pax.tex
+++ b/Master/texmf-dist/doc/latex/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}