If available, use pdfmanagement instead of \pdfpagesattr (closes #12).
This commit is contained in:
parent
01d963f798
commit
e42d9bb073
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- If available, use pdfmanagement instead of \pdfpagesattr
|
||||||
|
|
||||||
## 1.1.0 - 2020-05-10
|
## 1.1.0 - 2020-05-10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -45,13 +45,27 @@
|
||||||
|
|
||||||
% <crop>
|
% <crop>
|
||||||
\ifthenelse{\boolean{crop}}{%
|
\ifthenelse{\boolean{crop}}{%
|
||||||
|
\ExplSyntaxOn
|
||||||
|
\@ifundefined{pdfmanagement_add:nnn}{%
|
||||||
\@ifclasswith{llncs}{a4paper}{%
|
\@ifclasswith{llncs}{a4paper}{%
|
||||||
\pdfpagesattr{/CropBox [92 114 523 780]}%
|
\pdfpagesattr{/CropBox [92 114 523 780]}%
|
||||||
}{%
|
}{%
|
||||||
\pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm
|
\pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm
|
||||||
}%
|
}%
|
||||||
|
}{%
|
||||||
|
\@ifclasswith{llncs}{a4paper}{%
|
||||||
|
\pdfmanagement_add:nnn {Pages}{CropBox}{[92~114~523~780]}
|
||||||
|
}{%
|
||||||
|
\pdfmanagement_add:nnn {Pages}{CropBox}{[92~62~523~731]}
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
\ExplSyntaxOff
|
||||||
}{}
|
}{}
|
||||||
% </crop>
|
% </crop>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\def\ps@svninfofirst{\let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@evenhead\@empty
|
\def\ps@svninfofirst{\let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@evenhead\@empty
|
||||||
\def\@oddfoot{\reset@font\scriptsize
|
\def\@oddfoot{\reset@font\scriptsize
|
||||||
\vbox to\z@{\parindent=\z@\vss
|
\vbox to\z@{\parindent=\z@\vss
|
||||||
|
|
Loading…
Reference in New Issue