diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-15 21:25:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-15 21:25:17 +0000 |
commit | 4550aacf5bcebb16f5804f2bfd666558ce6dbbc6 (patch) | |
tree | 0c4cad2bc6fd594135e9db1c7161f95dba6b7544 /Build/source/texk | |
parent | 2f6bafae85663973e07b3d67b2c301b98502630a (diff) |
pdfxup (15mar24)
git-svn-id: svn://tug.org/texlive/trunk@70657 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/pdfxup/pdfxup | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/pdfxup/pdfxup b/Build/source/texk/texlive/linked_scripts/pdfxup/pdfxup index c53607b82ab..d31db88f9e5 100755 --- a/Build/source/texk/texlive/linked_scripts/pdfxup/pdfxup +++ b/Build/source/texk/texlive/linked_scripts/pdfxup/pdfxup @@ -2,12 +2,12 @@ shopt -s extglob shopt -s lastpipe -VERSION="2.10" -VDATE="2021/04/25" +VERSION="2.11" +VDATE="2024/03/15" ## see release notes at the end of this file. -## (c) 2021/04/25 Nicolas Markey <pdfxup at markey dot fr> +## (c) 2024/03/15 Nicolas Markey <pdfxup at markey dot fr> ## ## This work may be distributed and/or modified under the conditions of ## the LaTeX Project Public License, either version 1.3 of this license @@ -294,12 +294,21 @@ function testdim() { dim=$1; case $dim in - +([0-9])@(pt|in|cm|mm)) + ?(\.)+([0-9])@(pt|in|cm|mm)) ;; - +([0-9])) + +([0-9])\.*([0-9])@(pt|in|cm|mm)) + ;; + ?(\.)+([0-9])) + dim=${dim}pt + ;; + +([0-9])\.*([0-9])) dim=${dim}pt ;; - +([0-9])*) + ?(\.)+([0-9])[!\.0-9]*) + echo " illegal unit of measure in option '$3'; ignoring"; + dim=$2; + ;; + +([0-9])\.*([0-9])[!\.0-9]*) echo " illegal unit of measure in option '$3'; ignoring"; dim=$2; ;; @@ -307,7 +316,7 @@ function testdim() echo " not a valid dimension in option '$3'; ignoring"; dim=$2; ;; - esac + esac } ## sets variable $in to 1 if $1 is in list of ranges $2 @@ -1620,3 +1629,7 @@ v2.10 (2021/04/25) - added options --col (to fill in pages vertically first) and --bal (to balance columns (or rows) the last page). This feature was requested by Philipp Killinger. + +v2.11 (2024/03/15) + - fixed a bug in testdim, which did not support fractional values + (bug reported by Walt Tuvell) |