diff options
author | Norbert Preining <norbert@preining.info> | 2023-03-07 03:02:56 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-03-07 03:02:56 +0000 |
commit | 4f55c9271affed648c1a939790a73083043752f5 (patch) | |
tree | 5de3491421bbf46cdb941a9a70158ca43e748919 /macros/latex/contrib/pagelayout | |
parent | 75cd005305bd2c2a0ec383f30ee5b1749ed15183 (diff) |
CTAN sync 202303070302
Diffstat (limited to 'macros/latex/contrib/pagelayout')
-rw-r--r-- | macros/latex/contrib/pagelayout/README.md | 2 | ||||
-rw-r--r-- | macros/latex/contrib/pagelayout/doc/pagelayout-manual.pdf | bin | 74868 -> 74994 bytes | |||
-rw-r--r-- | macros/latex/contrib/pagelayout/doc/pagelayout-manual.tex | 2 | ||||
-rwxr-xr-x | macros/latex/contrib/pagelayout/scripts/pagelayoutapi | 4 | ||||
-rwxr-xr-x | macros/latex/contrib/pagelayout/scripts/textestvis | 2 | ||||
-rw-r--r-- | macros/latex/contrib/pagelayout/tex/pagelayout.cls | 42 |
6 files changed, 30 insertions, 22 deletions
diff --git a/macros/latex/contrib/pagelayout/README.md b/macros/latex/contrib/pagelayout/README.md index aa94a0fe9e..16ab16e72c 100644 --- a/macros/latex/contrib/pagelayout/README.md +++ b/macros/latex/contrib/pagelayout/README.md @@ -73,7 +73,7 @@ For a complete reference, read the [manual](doc/pagelayout-manual.pdf). In general, you should use the package manager shipped with your TeX distribution to install the pagelayout package. -To install manually, copy the contents of [pagelayout.tds.zip](https://github.com/friedemannbartels/latex-pagelayout/releases/download/v1.0.3/pagelayout.tds.zip) to your local TeX directory tree and run the command `texhash`. +To install manually, copy the contents of [pagelayout.tds.zip](https://github.com/friedemannbartels/latex-pagelayout/releases/download/v1.0.4/pagelayout.tds.zip) to your local TeX directory tree and run the command `texhash`. To enable image optimization, shadow creation, and preflight, perform these installation steps: diff --git a/macros/latex/contrib/pagelayout/doc/pagelayout-manual.pdf b/macros/latex/contrib/pagelayout/doc/pagelayout-manual.pdf Binary files differindex 6c8c02bfe9..85d1fb4985 100644 --- a/macros/latex/contrib/pagelayout/doc/pagelayout-manual.pdf +++ b/macros/latex/contrib/pagelayout/doc/pagelayout-manual.pdf diff --git a/macros/latex/contrib/pagelayout/doc/pagelayout-manual.tex b/macros/latex/contrib/pagelayout/doc/pagelayout-manual.tex index 4c636941e3..abab7ba9cf 100644 --- a/macros/latex/contrib/pagelayout/doc/pagelayout-manual.tex +++ b/macros/latex/contrib/pagelayout/doc/pagelayout-manual.tex @@ -18,7 +18,7 @@ \usepackage{tikz} \OnlyDescription \hypersetup{pdfborder={0 0 0}} -\def\pagelayoutversion{1.0.3} +\def\pagelayoutversion{1.0.4} \begin{document} diff --git a/macros/latex/contrib/pagelayout/scripts/pagelayoutapi b/macros/latex/contrib/pagelayout/scripts/pagelayoutapi index 295beef2f4..4c6888a249 100755 --- a/macros/latex/contrib/pagelayout/scripts/pagelayoutapi +++ b/macros/latex/contrib/pagelayout/scripts/pagelayoutapi @@ -13,7 +13,7 @@ # LaTeX version 2008/05/04 or later. # -version=1.0.3 +version=1.0.4 _convert() { turbo=$1 @@ -136,7 +136,7 @@ optimize() { } makeshadow() { - if command -v magick >/dev/null 2>&1; then + if command -v inkscape >/dev/null 2>&1; then filename=$1 stdDeviation=$2 opacity=$3 diff --git a/macros/latex/contrib/pagelayout/scripts/textestvis b/macros/latex/contrib/pagelayout/scripts/textestvis index 36b3ff6cfb..dba5e4c1aa 100755 --- a/macros/latex/contrib/pagelayout/scripts/textestvis +++ b/macros/latex/contrib/pagelayout/scripts/textestvis @@ -13,7 +13,7 @@ # LaTeX version 2008/05/04 or later. # -version=1.0.3 +version=1.0.4 OK="$( tput setaf 2 )•$( tput sgr0 )" FAILED="$( tput setaf 1 )$( tput bold )x$( tput sgr0 )" diff --git a/macros/latex/contrib/pagelayout/tex/pagelayout.cls b/macros/latex/contrib/pagelayout/tex/pagelayout.cls index 2f0257de2a..219520dc7b 100644 --- a/macros/latex/contrib/pagelayout/tex/pagelayout.cls +++ b/macros/latex/contrib/pagelayout/tex/pagelayout.cls @@ -13,8 +13,8 @@ %% \NeedsTeXFormat{LaTeX2e}[2020/10/01] -\ProvidesClass{pagelayout}[2023/01/23 Layout graphic rich documents] -\def\pagelayoutversion{1.0.3} +\ProvidesClass{pagelayout}[2023/03/05 Layout graphic rich documents] +\def\pagelayoutversion{1.0.4} % packages \RequirePackage{pgfopts} @@ -391,8 +391,8 @@ \x=\dimexpr\pal@gridstartx{\pal@undefdim}-\pal@leftbleed\relax \y=\dimexpr\pal@gridstarty{\pal@undefdim}-\pal@bottombleed\relax - \pal@gridstartxdim=\dimexpr\pal@gridstartx{\pal@gridoptionx}\relax - \pal@gridstartydim=\dimexpr\pal@gridstarty{\pal@gridoptiony}\relax + \pal@gridstartxdim=\dimexpr\pal@gridstartx{\pal@gridoptionx} - \pal@gutter / 2\relax + \pal@gridstartydim=\dimexpr\pal@gridstarty{\pal@gridoptiony} - \pal@gutter / 2\relax \pal@gridwidth=\dimexpr\pal@calculatefullgridwidth\relax \ifnum\rowsH>0 @@ -728,7 +728,7 @@ \newcommand\pal@gridstartx[1]{ \ifdim\dimexpr#1\relax=\pal@undefdim \ifpal@isdoublepage - (\pal@outermargin + \pal@leftbleed - \pal@gutter / 2 + (\pal@outermargin + \pal@leftbleed \ifpal@frontcover \else \ifpal@fanfold @@ -740,11 +740,11 @@ \fi ) \else - (\pal@leftmargin + \pal@leftbleed - \pal@gutter / 2) + (\pal@leftmargin + \pal@leftbleed) \fi \else% \ifpal@isdoublepage - (#1 + \pal@leftbleed - \pal@gutter / 2 + (#1 + \pal@leftbleed \ifpal@frontcover \else \ifpal@fanfold @@ -756,15 +756,15 @@ \fi ) \else - (#1 + \pal@leftbleed - \pal@gutter / 2) + (#1 + \pal@leftbleed) \fi \fi% } \newcommand\pal@gridstarty[1]{ \ifdim\dimexpr#1\relax=\pal@undefdim - (\pal@bottommargin + \pal@bottombleed - \pal@gutter / 2)% + (\pal@bottommargin + \pal@bottombleed)% \else% - (#1 + \pal@bottombleed - \pal@gutter / 2) + (#1 + \pal@bottombleed) \fi% } \newcommand\pal@setdimensions{ @@ -1532,8 +1532,20 @@ \height=\dimexpr(\pal@yy - \pal@y)\relax \pal@x=\dimexpr(\pal@x + \width)\relax \pal@y=\dimexpr(\pal@y + \height)\relax - \ifdim\pal@x>\dimexpr\pal@pagewidth+\pal@innerbleed+\pal@outerbleed\relax - \pal@x=\dimexpr\pal@pagewidth+\pal@innerbleed+\pal@outerbleed\relax + \ifpal@frontcover + \ifdim\pal@x>\dimexpr2\pal@pagewidth+2\pal@outerbleed+\spinewidth\relax + \pal@x=\dimexpr2\pal@pagewidth+2\pal@outerbleed+\spinewidth\relax + \fi + \else + \ifpal@fanfold + \ifdim\pal@x>\dimexpr2\pal@pagewidth+2\pal@outerbleed\relax + \pal@x=\dimexpr2\pal@pagewidth+2\pal@outerbleed\relax + \fi + \else + \ifdim\pal@x>\dimexpr\pal@pagewidth+\pal@innerbleed+\pal@outerbleed\relax + \pal@x=\dimexpr\pal@pagewidth+\pal@innerbleed+\pal@outerbleed\relax + \fi + \fi \fi \ifdim\pal@y>\dimexpr\pal@pageheight+\pal@topbleed+\pal@bottombleed\relax \pal@y=\dimexpr\pal@pageheight+\pal@topbleed+\pal@bottombleed\relax @@ -3720,11 +3732,7 @@ \ClassError{pagelayout}{Shell access forbidden. #1}{Make sure `pagelayoutapi' is added to the list of shell escape commands\MessageBreak(shell_escape_commands = pagelayoutapi) in your `texmf.cnf'.\MessageBreak\MessageBreak\@ehc} } \def\pal@errmsg@shellaccessfailed#1{ - \ifdefined\XeTeXversion - \ClassError{pagelayout}{Shell access failed. #1}{Make sure the `scripts' folder is added to your path.\MessageBreak\MessageBreak\@ehc} - \else - \ClassError{pagelayout}{Shell access failed. #1}{Make sure the `scripts' folder is added to your path.\MessageBreak Shell access does not work in unrestricted mode (--shell-escape).\MessageBreak Make sure `pagelayoutapi' is added to the list of shell escape commands\MessageBreak(shell_escape_commands = pagelayoutapi) in your `texmf.cnf'.\MessageBreak\MessageBreak\@ehc} - \fi + \ClassError{pagelayout}{Shell access failed. #1}{Make sure the `scripts' folder is added to your path.\MessageBreak\MessageBreak\@ehc} } \def\pal@errmsg@inkscapenotinstalled#1{ \ClassError{pagelayout}{Inkscape not installed. #1}{Make sure Inkscape is installed.\MessageBreak\MessageBreak\@ehc} |