diff options
author | Norbert Preining <norbert@preining.info> | 2024-03-16 03:02:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-03-16 03:02:08 +0000 |
commit | 966f9ba332e49c29e961cb86e08f97d70eda51f6 (patch) | |
tree | e111edb864721bb0dac9db16b4e41a8a489ea456 /support/pdfxup/pdfxup | |
parent | 12679ab7d3c2a210f4123163671b532b8b55d5f9 (diff) |
CTAN sync 202403160302
Diffstat (limited to 'support/pdfxup/pdfxup')
-rwxr-xr-x | support/pdfxup/pdfxup | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/support/pdfxup/pdfxup b/support/pdfxup/pdfxup index c53607b82a..d31db88f9e 100755 --- a/support/pdfxup/pdfxup +++ b/support/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) |