texlive[66392] trunk: pagelayout (6mar23)
commits+karl at tug.org
commits+karl at tug.org
Mon Mar 6 22:37:32 CET 2023
Revision: 66392
http://tug.org/svn/texlive?view=revision&revision=66392
Author: karl
Date: 2023-03-06 22:37:32 +0100 (Mon, 06 Mar 2023)
Log Message:
-----------
pagelayout (6mar23)
Modified Paths:
--------------
trunk/Build/source/texk/texlive/linked_scripts/pagelayout/pagelayoutapi
trunk/Build/source/texk/texlive/linked_scripts/pagelayout/textestvis
trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl
trunk/Master/texmf-dist/doc/latex/pagelayout/README.md
trunk/Master/texmf-dist/doc/latex/pagelayout/pagelayout-manual.pdf
trunk/Master/texmf-dist/doc/latex/pagelayout/pagelayout-manual.tex
trunk/Master/texmf-dist/doc/latex/pagelayout/tests.zip
trunk/Master/texmf-dist/doc/man/man1/pagelayoutapi.man1.pdf
trunk/Master/texmf-dist/doc/man/man1/textestvis.man1.pdf
trunk/Master/texmf-dist/scripts/pagelayout/pagelayoutapi
trunk/Master/texmf-dist/scripts/pagelayout/textestvis
trunk/Master/texmf-dist/tex/latex/pagelayout/pagelayout.cls
Modified: trunk/Build/source/texk/texlive/linked_scripts/pagelayout/pagelayoutapi
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/pagelayout/pagelayoutapi 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Build/source/texk/texlive/linked_scripts/pagelayout/pagelayoutapi 2023-03-06 21:37:32 UTC (rev 66392)
@@ -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 @@
}
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
Modified: trunk/Build/source/texk/texlive/linked_scripts/pagelayout/textestvis
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/pagelayout/textestvis 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Build/source/texk/texlive/linked_scripts/pagelayout/textestvis 2023-03-06 21:37:32 UTC (rev 66392)
@@ -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 )"
Modified: trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Build/source/texk/texlive/linked_scripts/texlive/tlmgr.pl 2023-03-06 21:37:32 UTC (rev 66392)
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# $Id: tlmgr.pl 66236 2023-02-27 21:44:33Z karl $
+# $Id: tlmgr.pl 66378 2023-03-05 21:09:54Z karl $
# Copyright 2008-2023 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.
@@ -8,8 +8,8 @@
use strict; use warnings;
-my $svnrev = '$Revision: 66236 $';
-my $datrev = '$Date: 2023-02-27 22:44:33 +0100 (Mon, 27 Feb 2023) $';
+my $svnrev = '$Revision: 66378 $';
+my $datrev = '$Date: 2023-03-05 22:09:54 +0100 (Sun, 05 Mar 2023) $';
my $tlmgrrevision;
my $tlmgrversion;
my $prg;
@@ -896,7 +896,7 @@
my $lmtx = "$bindir/luametatex";
if (defined($localtlpdb->get_package('context'))
&& (-x "$lmtx" || -x "$lmtx.exe")
- && TeXLive::TLUtils::system_ok("$lmtx --version")
+ && (wndws() || TeXLive::TLUtils::system_ok("$lmtx --version"))
) {
$errors += do_cmd_and_check("mtxrun --generate");
$errors += do_cmd_and_check("context --luatex --generate");
@@ -10254,7 +10254,7 @@
distribution (L<https://tug.org/texlive>) and both are licensed under the
GNU General Public License Version 2 or later.
-$Id: tlmgr.pl 66236 2023-02-27 21:44:33Z karl $
+$Id: tlmgr.pl 66378 2023-03-05 21:09:54Z karl $
=cut
# test HTML version: pod2html --cachedir=/tmp tlmgr.pl >/tmp/tlmgr.html
Modified: trunk/Master/texmf-dist/doc/latex/pagelayout/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pagelayout/README.md 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Master/texmf-dist/doc/latex/pagelayout/README.md 2023-03-06 21:37:32 UTC (rev 66392)
@@ -73,7 +73,7 @@
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:
Modified: trunk/Master/texmf-dist/doc/latex/pagelayout/pagelayout-manual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/pagelayout/pagelayout-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pagelayout/pagelayout-manual.tex 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Master/texmf-dist/doc/latex/pagelayout/pagelayout-manual.tex 2023-03-06 21:37:32 UTC (rev 66392)
@@ -18,7 +18,7 @@
\usepackage{tikz}
\OnlyDescription
\hypersetup{pdfborder={0 0 0}}
-\def\pagelayoutversion{1.0.3}
+\def\pagelayoutversion{1.0.4}
\begin{document}
Modified: trunk/Master/texmf-dist/doc/latex/pagelayout/tests.zip
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/man/man1/pagelayoutapi.man1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/man/man1/textestvis.man1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/scripts/pagelayout/pagelayoutapi
===================================================================
--- trunk/Master/texmf-dist/scripts/pagelayout/pagelayoutapi 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Master/texmf-dist/scripts/pagelayout/pagelayoutapi 2023-03-06 21:37:32 UTC (rev 66392)
@@ -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 @@
}
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
Modified: trunk/Master/texmf-dist/scripts/pagelayout/textestvis
===================================================================
--- trunk/Master/texmf-dist/scripts/pagelayout/textestvis 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Master/texmf-dist/scripts/pagelayout/textestvis 2023-03-06 21:37:32 UTC (rev 66392)
@@ -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 )"
Modified: trunk/Master/texmf-dist/tex/latex/pagelayout/pagelayout.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pagelayout/pagelayout.cls 2023-03-06 21:37:11 UTC (rev 66391)
+++ trunk/Master/texmf-dist/tex/latex/pagelayout/pagelayout.cls 2023-03-06 21:37:32 UTC (rev 66392)
@@ -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 at gridstartx{\pal at undefdim}-\pal at leftbleed\relax
\y=\dimexpr\pal at gridstarty{\pal at undefdim}-\pal at bottombleed\relax
- \pal at gridstartxdim=\dimexpr\pal at gridstartx{\pal at gridoptionx}\relax
- \pal at gridstartydim=\dimexpr\pal at gridstarty{\pal at gridoptiony}\relax
+ \pal at gridstartxdim=\dimexpr\pal at gridstartx{\pal at gridoptionx} - \pal at gutter / 2\relax
+ \pal at gridstartydim=\dimexpr\pal at gridstarty{\pal at gridoptiony} - \pal at gutter / 2\relax
\pal at gridwidth=\dimexpr\pal at calculatefullgridwidth\relax
\ifnum\rowsH>0
@@ -728,7 +728,7 @@
\newcommand\pal at gridstartx[1]{
\ifdim\dimexpr#1\relax=\pal at undefdim
\ifpal at isdoublepage
- (\pal at outermargin + \pal at leftbleed - \pal at gutter / 2
+ (\pal at outermargin + \pal at leftbleed
\ifpal at frontcover
\else
\ifpal at fanfold
@@ -740,11 +740,11 @@
\fi
)
\else
- (\pal at leftmargin + \pal at leftbleed - \pal at gutter / 2)
+ (\pal at leftmargin + \pal at leftbleed)
\fi
\else%
\ifpal at isdoublepage
- (#1 + \pal at leftbleed - \pal at gutter / 2
+ (#1 + \pal at leftbleed
\ifpal at frontcover
\else
\ifpal at fanfold
@@ -756,15 +756,15 @@
\fi
)
\else
- (#1 + \pal at leftbleed - \pal at gutter / 2)
+ (#1 + \pal at leftbleed)
\fi
\fi%
}
\newcommand\pal at gridstarty[1]{
\ifdim\dimexpr#1\relax=\pal at undefdim
- (\pal at bottommargin + \pal at bottombleed - \pal at gutter / 2)%
+ (\pal at bottommargin + \pal at bottombleed)%
\else%
- (#1 + \pal at bottombleed - \pal at gutter / 2)
+ (#1 + \pal at bottombleed)
\fi%
}
\newcommand\pal at setdimensions{
@@ -1532,8 +1532,20 @@
\height=\dimexpr(\pal at yy - \pal at y)\relax
\pal at x=\dimexpr(\pal at x + \width)\relax
\pal at y=\dimexpr(\pal at y + \height)\relax
- \ifdim\pal at x>\dimexpr\pal at pagewidth+\pal at innerbleed+\pal at outerbleed\relax
- \pal at x=\dimexpr\pal at pagewidth+\pal at innerbleed+\pal at outerbleed\relax
+ \ifpal at frontcover
+ \ifdim\pal at x>\dimexpr2\pal at pagewidth+2\pal at outerbleed+\spinewidth\relax
+ \pal at x=\dimexpr2\pal at pagewidth+2\pal at outerbleed+\spinewidth\relax
+ \fi
+ \else
+ \ifpal at fanfold
+ \ifdim\pal at x>\dimexpr2\pal at pagewidth+2\pal at outerbleed\relax
+ \pal at x=\dimexpr2\pal at pagewidth+2\pal at outerbleed\relax
+ \fi
+ \else
+ \ifdim\pal at x>\dimexpr\pal at pagewidth+\pal at innerbleed+\pal at outerbleed\relax
+ \pal at x=\dimexpr\pal at pagewidth+\pal at innerbleed+\pal at outerbleed\relax
+ \fi
+ \fi
\fi
\ifdim\pal at y>\dimexpr\pal at pageheight+\pal at topbleed+\pal at bottombleed\relax
\pal at y=\dimexpr\pal at pageheight+\pal at topbleed+\pal at 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 at 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 at errmsg@inkscapenotinstalled#1{
\ClassError{pagelayout}{Inkscape not installed. #1}{Make sure Inkscape is installed.\MessageBreak\MessageBreak\@ehc}
More information about the tex-live-commits
mailing list.