summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-14 18:29:31 +0000
committerKarl Berry <karl@freefriends.org>2010-04-14 18:29:31 +0000
commit299bdb0274ac6021f90b883511b05fe7b54b3f84 (patch)
tree051ee04434aaa2533b7cd95a5ae0737739291632
parent2f62a5fe6f4a15971e376276ff7a5abaf17fccbf (diff)
new scripts pdfjam 2.01 (14apr10)
git-svn-id: svn://tug.org/texlive/trunk@17868 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/texlive/linked_scripts/Makefile.am16
-rw-r--r--Build/source/texk/texlive/linked_scripts/Makefile.in16
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdf18011
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdf27011
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdf9011
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfbook19
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfflip9
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfjam1202
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfjam-pocketmod54
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides3up29
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides6up31
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfjoin25
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfnup28
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfpun72
l---------Master/bin/alpha-linux/pdf1801
l---------Master/bin/alpha-linux/pdf2701
l---------Master/bin/alpha-linux/pdf901
l---------Master/bin/alpha-linux/pdfbook1
l---------Master/bin/alpha-linux/pdfflip1
l---------Master/bin/alpha-linux/pdfjam1
l---------Master/bin/alpha-linux/pdfjam-pocketmod1
l---------Master/bin/alpha-linux/pdfjam-slides3up1
l---------Master/bin/alpha-linux/pdfjam-slides6up1
l---------Master/bin/alpha-linux/pdfjoin1
l---------Master/bin/alpha-linux/pdfnup1
l---------Master/bin/alpha-linux/pdfpun1
l---------Master/bin/amd64-freebsd/pdf1801
l---------Master/bin/amd64-freebsd/pdf2701
l---------Master/bin/amd64-freebsd/pdf901
l---------Master/bin/amd64-freebsd/pdfbook1
l---------Master/bin/amd64-freebsd/pdfflip1
l---------Master/bin/amd64-freebsd/pdfjam1
l---------Master/bin/amd64-freebsd/pdfjam-pocketmod1
l---------Master/bin/amd64-freebsd/pdfjam-slides3up1
l---------Master/bin/amd64-freebsd/pdfjam-slides6up1
l---------Master/bin/amd64-freebsd/pdfjoin1
l---------Master/bin/amd64-freebsd/pdfnup1
l---------Master/bin/amd64-freebsd/pdfpun1
l---------Master/bin/i386-cygwin/pdf1801
l---------Master/bin/i386-cygwin/pdf2701
l---------Master/bin/i386-cygwin/pdf901
l---------Master/bin/i386-cygwin/pdfbook1
l---------Master/bin/i386-cygwin/pdfflip1
l---------Master/bin/i386-cygwin/pdfjam1
l---------Master/bin/i386-cygwin/pdfjam-pocketmod1
l---------Master/bin/i386-cygwin/pdfjam-slides3up1
l---------Master/bin/i386-cygwin/pdfjam-slides6up1
l---------Master/bin/i386-cygwin/pdfjoin1
l---------Master/bin/i386-cygwin/pdfnup1
l---------Master/bin/i386-cygwin/pdfpun1
l---------Master/bin/i386-freebsd/pdf1801
l---------Master/bin/i386-freebsd/pdf2701
l---------Master/bin/i386-freebsd/pdf901
l---------Master/bin/i386-freebsd/pdfbook1
l---------Master/bin/i386-freebsd/pdfflip1
l---------Master/bin/i386-freebsd/pdfjam1
l---------Master/bin/i386-freebsd/pdfjam-pocketmod1
l---------Master/bin/i386-freebsd/pdfjam-slides3up1
l---------Master/bin/i386-freebsd/pdfjam-slides6up1
l---------Master/bin/i386-freebsd/pdfjoin1
l---------Master/bin/i386-freebsd/pdfnup1
l---------Master/bin/i386-freebsd/pdfpun1
l---------Master/bin/i386-kfreebsd/pdf1801
l---------Master/bin/i386-kfreebsd/pdf2701
l---------Master/bin/i386-kfreebsd/pdf901
l---------Master/bin/i386-kfreebsd/pdfbook1
l---------Master/bin/i386-kfreebsd/pdfflip1
l---------Master/bin/i386-kfreebsd/pdfjam1
l---------Master/bin/i386-kfreebsd/pdfjam-pocketmod1
l---------Master/bin/i386-kfreebsd/pdfjam-slides3up1
l---------Master/bin/i386-kfreebsd/pdfjam-slides6up1
l---------Master/bin/i386-kfreebsd/pdfjoin1
l---------Master/bin/i386-kfreebsd/pdfnup1
l---------Master/bin/i386-kfreebsd/pdfpun1
l---------Master/bin/i386-linux/pdf1801
l---------Master/bin/i386-linux/pdf2701
l---------Master/bin/i386-linux/pdf901
l---------Master/bin/i386-linux/pdfbook1
l---------Master/bin/i386-linux/pdfflip1
l---------Master/bin/i386-linux/pdfjam1
l---------Master/bin/i386-linux/pdfjam-pocketmod1
l---------Master/bin/i386-linux/pdfjam-slides3up1
l---------Master/bin/i386-linux/pdfjam-slides6up1
l---------Master/bin/i386-linux/pdfjoin1
l---------Master/bin/i386-linux/pdfnup1
l---------Master/bin/i386-linux/pdfpun1
l---------Master/bin/i386-netbsd/pdf1801
l---------Master/bin/i386-netbsd/pdf2701
l---------Master/bin/i386-netbsd/pdf901
l---------Master/bin/i386-netbsd/pdfbook1
l---------Master/bin/i386-netbsd/pdfflip1
l---------Master/bin/i386-netbsd/pdfjam1
l---------Master/bin/i386-netbsd/pdfjam-pocketmod1
l---------Master/bin/i386-netbsd/pdfjam-slides3up1
l---------Master/bin/i386-netbsd/pdfjam-slides6up1
l---------Master/bin/i386-netbsd/pdfjoin1
l---------Master/bin/i386-netbsd/pdfnup1
l---------Master/bin/i386-netbsd/pdfpun1
l---------Master/bin/i386-solaris/pdf1801
l---------Master/bin/i386-solaris/pdf2701
l---------Master/bin/i386-solaris/pdf901
l---------Master/bin/i386-solaris/pdfbook1
l---------Master/bin/i386-solaris/pdfflip1
l---------Master/bin/i386-solaris/pdfjam1
l---------Master/bin/i386-solaris/pdfjam-pocketmod1
l---------Master/bin/i386-solaris/pdfjam-slides3up1
l---------Master/bin/i386-solaris/pdfjam-slides6up1
l---------Master/bin/i386-solaris/pdfjoin1
l---------Master/bin/i386-solaris/pdfnup1
l---------Master/bin/i386-solaris/pdfpun1
l---------Master/bin/mips-irix/pdf1801
l---------Master/bin/mips-irix/pdf2701
l---------Master/bin/mips-irix/pdf901
l---------Master/bin/mips-irix/pdfbook1
l---------Master/bin/mips-irix/pdfflip1
l---------Master/bin/mips-irix/pdfjam1
l---------Master/bin/mips-irix/pdfjam-pocketmod1
l---------Master/bin/mips-irix/pdfjam-slides3up1
l---------Master/bin/mips-irix/pdfjam-slides6up1
l---------Master/bin/mips-irix/pdfjoin1
l---------Master/bin/mips-irix/pdfnup1
l---------Master/bin/mips-irix/pdfpun1
l---------Master/bin/powerpc-aix/pdf1801
l---------Master/bin/powerpc-aix/pdf2701
l---------Master/bin/powerpc-aix/pdf901
l---------Master/bin/powerpc-aix/pdfbook1
l---------Master/bin/powerpc-aix/pdfflip1
l---------Master/bin/powerpc-aix/pdfjam1
l---------Master/bin/powerpc-aix/pdfjam-pocketmod1
l---------Master/bin/powerpc-aix/pdfjam-slides3up1
l---------Master/bin/powerpc-aix/pdfjam-slides6up1
l---------Master/bin/powerpc-aix/pdfjoin1
l---------Master/bin/powerpc-aix/pdfnup1
l---------Master/bin/powerpc-aix/pdfpun1
l---------Master/bin/powerpc-linux/pdf1801
l---------Master/bin/powerpc-linux/pdf2701
l---------Master/bin/powerpc-linux/pdf901
l---------Master/bin/powerpc-linux/pdfbook1
l---------Master/bin/powerpc-linux/pdfflip1
l---------Master/bin/powerpc-linux/pdfjam1
l---------Master/bin/powerpc-linux/pdfjam-pocketmod1
l---------Master/bin/powerpc-linux/pdfjam-slides3up1
l---------Master/bin/powerpc-linux/pdfjam-slides6up1
l---------Master/bin/powerpc-linux/pdfjoin1
l---------Master/bin/powerpc-linux/pdfnup1
l---------Master/bin/powerpc-linux/pdfpun1
l---------Master/bin/sparc-linux/pdf1801
l---------Master/bin/sparc-linux/pdf2701
l---------Master/bin/sparc-linux/pdf901
l---------Master/bin/sparc-linux/pdfbook1
l---------Master/bin/sparc-linux/pdfflip1
l---------Master/bin/sparc-linux/pdfjam1
l---------Master/bin/sparc-linux/pdfjam-pocketmod1
l---------Master/bin/sparc-linux/pdfjam-slides3up1
l---------Master/bin/sparc-linux/pdfjam-slides6up1
l---------Master/bin/sparc-linux/pdfjoin1
l---------Master/bin/sparc-linux/pdfnup1
l---------Master/bin/sparc-linux/pdfpun1
l---------Master/bin/sparc-solaris/pdf1801
l---------Master/bin/sparc-solaris/pdf2701
l---------Master/bin/sparc-solaris/pdf901
l---------Master/bin/sparc-solaris/pdfbook1
l---------Master/bin/sparc-solaris/pdfflip1
l---------Master/bin/sparc-solaris/pdfjam1
l---------Master/bin/sparc-solaris/pdfjam-pocketmod1
l---------Master/bin/sparc-solaris/pdfjam-slides3up1
l---------Master/bin/sparc-solaris/pdfjam-slides6up1
l---------Master/bin/sparc-solaris/pdfjoin1
l---------Master/bin/sparc-solaris/pdfnup1
l---------Master/bin/sparc-solaris/pdfpun1
l---------Master/bin/universal-darwin/pdf1801
l---------Master/bin/universal-darwin/pdf2701
l---------Master/bin/universal-darwin/pdf901
l---------Master/bin/universal-darwin/pdfbook1
l---------Master/bin/universal-darwin/pdfflip1
l---------Master/bin/universal-darwin/pdfjam1
l---------Master/bin/universal-darwin/pdfjam-pocketmod1
l---------Master/bin/universal-darwin/pdfjam-slides3up1
l---------Master/bin/universal-darwin/pdfjam-slides6up1
l---------Master/bin/universal-darwin/pdfjoin1
l---------Master/bin/universal-darwin/pdfnup1
l---------Master/bin/universal-darwin/pdfpun1
l---------Master/bin/x86_64-linux/pdf1801
l---------Master/bin/x86_64-linux/pdf2701
l---------Master/bin/x86_64-linux/pdf901
l---------Master/bin/x86_64-linux/pdfbook1
l---------Master/bin/x86_64-linux/pdfflip1
l---------Master/bin/x86_64-linux/pdfjam1
l---------Master/bin/x86_64-linux/pdfjam-pocketmod1
l---------Master/bin/x86_64-linux/pdfjam-slides3up1
l---------Master/bin/x86_64-linux/pdfjam-slides6up1
l---------Master/bin/x86_64-linux/pdfjoin1
l---------Master/bin/x86_64-linux/pdfnup1
l---------Master/bin/x86_64-linux/pdfpun1
-rw-r--r--Master/texmf-dist/doc/latex/pdfjam/COPYING340
-rw-r--r--Master/texmf-dist/doc/latex/pdfjam/PDFjam-README.html328
-rw-r--r--Master/texmf-dist/doc/latex/pdfjam/VERSION1
-rw-r--r--Master/texmf-dist/doc/latex/pdfjam/pdfdroplets.pngbin0 -> 34752 bytes
-rw-r--r--Master/texmf-dist/doc/latex/pdfjam/pdfjam.conf91
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdf18011
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdf27011
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdf9011
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfbook19
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfflip9
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfjam1202
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfjam-pocketmod54
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfjam-slides3up29
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfjam-slides6up31
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfjoin25
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfnup28
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfpun72
-rw-r--r--Master/texmf/doc/man/man1/pdf180.174
-rw-r--r--Master/texmf/doc/man/man1/pdf270.174
-rw-r--r--Master/texmf/doc/man/man1/pdf90.174
-rw-r--r--Master/texmf/doc/man/man1/pdfbook.180
-rw-r--r--Master/texmf/doc/man/man1/pdfflip.173
-rw-r--r--Master/texmf/doc/man/man1/pdfjam-pocketmod.164
-rw-r--r--Master/texmf/doc/man/man1/pdfjam-slides3up.188
-rw-r--r--Master/texmf/doc/man/man1/pdfjam-slides6up.187
-rw-r--r--Master/texmf/doc/man/man1/pdfjam.158
-rw-r--r--Master/texmf/doc/man/man1/pdfjoin.166
-rw-r--r--Master/texmf/doc/man/man1/pdfnup.178
-rw-r--r--Master/texmf/doc/man/man1/pdfpun.168
-rwxr-xr-xMaster/tlpkg/bin/check-wrapper-consistency6
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds3
-rw-r--r--Master/tlpkg/tlpsrc/collection-binextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/pdfjam.tlpsrc38
228 files changed, 4903 insertions, 7 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.am b/Build/source/texk/texlive/linked_scripts/Makefile.am
index 90cfb6353a9..f3afa6f2eb3 100644
--- a/Build/source/texk/texlive/linked_scripts/Makefile.am
+++ b/Build/source/texk/texlive/linked_scripts/Makefile.am
@@ -16,8 +16,6 @@ bin_SCRIPTS =
scriptxdir = ${prefix}/texmf/scripts
nobase_dist_scriptx_SCRIPTS = \
a2ping/a2ping.pl \
- bundledoc/arlatex \
- bundledoc/bundledoc \
simpdftex/simpdftex \
tetex/e2pall.pl \
tetex/texdoctk.pl \
@@ -32,6 +30,8 @@ nobase_dist_script_SCRIPTS = \
accfonts/vpl2vpl \
bengali/ebong.py \
bibexport/bibexport.sh \
+ bundledoc/arlatex \
+ bundledoc/bundledoc \
cachepic/cachepic.tlu \
context/lua/luatools.lua \
context/lua/mtxrun.lua \
@@ -79,6 +79,18 @@ nobase_dist_script_SCRIPTS = \
oberdiek/pdfatfi.pl \
pax/pdfannotextractor.pl \
pdfcrop/pdfcrop.pl \
+ pdfjam/pdf180 \
+ pdfjam/pdf270 \
+ pdfjam/pdf90 \
+ pdfjam/pdfbook \
+ pdfjam/pdfflip \
+ pdfjam/pdfjam \
+ pdfjam/pdfjam-pocketmod \
+ pdfjam/pdfjam-slides3up \
+ pdfjam/pdfjam-slides6up \
+ pdfjam/pdfjoin \
+ pdfjam/pdfnup \
+ pdfjam/pdfpun \
perltex/perltex.pl \
pkfix/pkfix.pl \
pkfix-helper/pkfix-helper \
diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.in b/Build/source/texk/texlive/linked_scripts/Makefile.in
index 397528c4e04..5c8361e299d 100644
--- a/Build/source/texk/texlive/linked_scripts/Makefile.in
+++ b/Build/source/texk/texlive/linked_scripts/Makefile.in
@@ -165,8 +165,6 @@ bin_SCRIPTS =
scriptxdir = ${prefix}/texmf/scripts
nobase_dist_scriptx_SCRIPTS = \
a2ping/a2ping.pl \
- bundledoc/arlatex \
- bundledoc/bundledoc \
simpdftex/simpdftex \
tetex/e2pall.pl \
tetex/texdoctk.pl \
@@ -181,6 +179,8 @@ nobase_dist_script_SCRIPTS = \
accfonts/vpl2vpl \
bengali/ebong.py \
bibexport/bibexport.sh \
+ bundledoc/arlatex \
+ bundledoc/bundledoc \
cachepic/cachepic.tlu \
context/lua/luatools.lua \
context/lua/mtxrun.lua \
@@ -228,6 +228,18 @@ nobase_dist_script_SCRIPTS = \
oberdiek/pdfatfi.pl \
pax/pdfannotextractor.pl \
pdfcrop/pdfcrop.pl \
+ pdfjam/pdf180 \
+ pdfjam/pdf270 \
+ pdfjam/pdf90 \
+ pdfjam/pdfbook \
+ pdfjam/pdfflip \
+ pdfjam/pdfjam \
+ pdfjam/pdfjam-pocketmod \
+ pdfjam/pdfjam-slides3up \
+ pdfjam/pdfjam-slides6up \
+ pdfjam/pdfjoin \
+ pdfjam/pdfnup \
+ pdfjam/pdfpun \
perltex/perltex.pl \
pkfix/pkfix.pl \
pkfix-helper/pkfix-helper \
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdf180 b/Build/source/texk/texlive/linked_scripts/pdfjam/pdf180
new file mode 100755
index 00000000000..a9f4b7a250d
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdf180
@@ -0,0 +1,11 @@
+#!/bin/sh
+##
+## pdf180: A shell program to rotate pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix rotated180 --angle 180 --fitpaper true "$@"
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdf270 b/Build/source/texk/texlive/linked_scripts/pdfjam/pdf270
new file mode 100755
index 00000000000..bca6c57b02b
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdf270
@@ -0,0 +1,11 @@
+#!/bin/sh
+##
+## pdf270: A shell program to rotate pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix rotated270 --angle 270 --fitpaper true --rotateoversize true "$@"
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdf90 b/Build/source/texk/texlive/linked_scripts/pdfjam/pdf90
new file mode 100755
index 00000000000..ac38aa490f3
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdf90
@@ -0,0 +1,11 @@
+#!/bin/sh
+##
+## pdf90: A shell program to rotate pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix rotated90 --angle 90 --fitpaper true --rotateoversize true "$@"
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfbook b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfbook
new file mode 100755
index 00000000000..8d032d3a351
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfbook
@@ -0,0 +1,19 @@
+#!/bin/sh
+##
+## pdfbook: Rearrange pages of one or more PDF files into 2-up signatures
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+case "${1}" in
+ --right-edge-binding)
+ shift ;
+ pdfjam --suffix book --signature* 4 --landscape "$@" ;;
+ *)
+ pdfjam --suffix book --signature 4 --landscape "$@" ;;
+esac
+
+
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfflip b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfflip
new file mode 100755
index 00000000000..125c4adea9c
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfflip
@@ -0,0 +1,9 @@
+#!/bin/sh
+##
+## pdfflip: A shell program to "flip over" the pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix flipped --reflect true --fitpaper true "$@"
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam
new file mode 100755
index 00000000000..52641909681
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam
@@ -0,0 +1,1202 @@
+#! /bin/sh
+version=2.01
+#########################################################################
+## ##
+## pdfjam: A shell-script interface to the "pdfpages" LaTeX package ##
+## ------ ##
+## ##
+## Author: David Firth (http://go.warwick.ac.uk/dfirth) ##
+## ##
+## Usage: see http://go.warwick.ac.uk/pdfjam or "pdfjam --help" ##
+## ##
+## Relies on: ##
+## -- pdflatex ##
+## -- the 'pdfpages' package for LaTeX (ideally version >= 0.4f) ##
+## ##
+## License: GPL version 2 or later. This software comes with ##
+## ABSOLUTELY NO WARRANTY of fitness for any purpose at all; if you ##
+## do not accept that, then you must not use it. ##
+## ##
+## The path searched for site-wide configuration files can be set ##
+## through the following variable: ##
+## ##
+ configpath='/etc:/usr/share/etc:/usr/local/share:/usr/local/etc' ##
+## ##
+## ##
+#########################################################################
+##
+## PRELIMINARIES
+##
+## First determine:
+## --- whether verbose commentary should be provided (not if --quiet
+# or --configpath was specified);
+## --- whether this call to pdfjam is a "batch" call;
+## --- whether just the help text is required;
+## --- or whether all configuration files should be ignored.
+##
+verbose=true
+for arg in "$@"; do
+ case "$arg" in
+ --quiet | -q | --configpath)
+ verbose=false ;
+ ;;
+ --batch)
+ batch=true ;
+ ;;
+ --help | -u | -h)
+ help=true ;
+ ;;
+ --vanilla)
+ vanilla=true ;
+ ;;
+ *)
+ ;;
+ esac
+done
+##
+## Check to see whether this is a "secondary" call to pdfjam:
+##
+if test "$PDFJAM_CALL_NUMBER" = "" ## not a secondary call
+then
+ PDFJAM_CALL_NUMBER=0
+fi
+##
+## Keep a copy of the internal file separator, so we can change it safely
+##
+OIFS="$IFS"
+##
+## Record the full filename of the current working diractory
+##
+pwd=`pwd`
+##
+## Trap interrupts so that they kill everything:
+##
+trap 'IFS=$OIFS; exit 1' 1 2 9 15
+##
+## The following will be useful for readability of the script:
+##
+newline='
+'
+##
+## Define a function to escape tricky characters in file names etc:
+##
+escape_chars () {
+ ## use 'printf "%q" if available
+# (printf "%q" "${1}") ||
+ (printf "%s" "${1}" | sed 's/[^a-zA-Z0-9._/\-]/\\&/g')
+}
+##
+## Define a function to output verbose comments:
+##
+prattle () { ## second argument here is non-null for continuation lines
+ if test $verbose = true; then
+ prefix1=" pdfjam:" ;
+ prefix2=`printf "%s" "$prefix1" | sed 's/pdfjam:/ /'` ;
+ indent="" ;
+ if test "$PDFJAM_CALL_NUMBER" -gt 0 &&
+ test "$batch" != true
+ then
+ indent=" "
+ fi
+ IFS="$newline" ;
+ lineCounter=0 ;
+ for line in ${1}
+ do
+ lineCounter=`expr $lineCounter + 1` ;
+ if test $lineCounter -eq 1 && test ! -n "${2}" ;
+ then
+ if test -e "$PDFJAM_MESSAGES_FILE"
+ then printf "$prefix1$indent %b\n" "$line" 1>/dev/null >> \
+ "$PDFJAM_MESSAGES_FILE"
+ else messages="$messages$prefix1$indent $line$newline"
+ ## msg file not made yet
+ fi
+ else
+ if test -e "$PDFJAM_MESSAGES_FILE"
+ then printf "$prefix2$indent %b\n" "$line" 1>/dev/null >> \
+ "$PDFJAM_MESSAGES_FILE"
+ else messages="$messages$prefix2$indent $line$newline"
+ ## msg file not made yet
+ fi
+ fi ;
+ done ;
+ IFS="$OIFS" ;
+ fi ;
+ return ;
+}
+##
+## And here's the first piece of verbose commentary:
+##
+prattle "----" 1
+prattle "This is pdfjam version ${version}."
+##
+#########################################################################
+##
+## CONFIGURATION
+##
+## THESE SETTINGS WILL BE OVER-RIDDEN by any found in configuration
+## files. By default such files are found at any or all of
+## /etc/pdfjam.conf
+## /usr/share/etc/pdfjam.conf
+## /usr/local/share/pdfjam.conf
+## /usr/local/etc/pdfjam.conf
+## ~/.pdfjam.conf
+## (And they are read in that order; if a setting is made more than
+## once, the last one prevails.)
+##
+## An example configuration file can be found at
+## http://go.warwick.ac.uk/pdfjam
+##
+## The path searched for site-wide configuration files can be changed
+## by editing the variable 'configpath' at the top of this file.
+##
+##
+## First check whether 'pdflatex' is in the user's path:
+##
+pdflatex=pdflatex
+(hash pdflatex >/dev/null 2>&1) || pdflatex="not found"
+##
+##
+## Likewise for the pdfinfo utility (only needed for `--keepinfo'):
+##
+pdfinfo='pdfinfo'
+(hash pdfinfo >/dev/null 2>&1) || pdfinfo="not found"
+##
+##
+## Next a permitted location for temporary files on your system:
+##
+tempfileDir='/var/tmp' ## /var/tmp is standard on most unix systems
+##
+##
+## Default for the output file location:
+##
+outFile="$pwd" ## Output to the current working directory
+##
+##
+## A few more default settings for pdfjam:
+##
+tidy='true' ## Delete all temporary files at the end
+##
+keepinfo='false' ## Don't try to preserve "pdfinfo" data
+##
+checkfiles='false' ## Don't use the Unix 'file -Lb' utility to
+## identify PDF files from their contents;
+## rely on the .pdf or .PDF extension instead.
+##
+suffix='pdfjam' ## Default filename suffix to be used when
+## --outfile is either (a) a directory, or (b)
+## not specified in a --batch call.
+##
+paper='a4paper' ## Default paper size is ISO A4.
+##
+## END OF SETTINGS MADE DIRECTLY WITHIN THE SCRIPT
+##
+## Now read the site's or user's configuration file(s) if such exist,
+## unless '--vanilla' was specified.
+##
+if test "$vanilla" != true
+then
+ if test "$PDFJAM_CALL_NUMBER" = 0 ## not a secondary call to pdfjam
+ then
+ configFiles=`printf "%s" "$configpath" | \
+ sed 's/:/\/pdfjam.conf:/g; s/$/\/pdfjam.conf/'`
+ configFiles="${configFiles}:$HOME/.pdfjam.conf"
+ PDFJAM_CONFIG=""
+ prattle "Reading any site-wide or user-specific defaults..."
+ IFS=':'
+ for d in $configFiles
+ do
+ if test -f "$d"; then
+ change=`sed '/^ *#.*/d ; s/ *#.*//; s/^ *//' "$d"`
+ comment="## ${newline}## From ${d}: ${newline}##"
+ PDFJAM_CONFIG="$PDFJAM_CONFIG$comment$newline$change$newline"
+ fi
+ done
+ IFS="$OIFS"
+ PDFJAM_CONFIG=`printf "%s" "$PDFJAM_CONFIG" | sed 's/^/ /'`
+ if test "$batch" = true ; then export PDFJAM_CONFIG ; fi
+ if test "$PDFJAM_CONFIG" = ""
+ then
+ prattle "(none found)" 1
+ else
+ prattle "$PDFJAM_CONFIG" 1
+ fi
+ fi
+ if test -n "$PDFJAM_CONFIG" ; then eval "$PDFJAM_CONFIG" ; fi
+else
+ if test $PDFJAM_CALL_NUMBER -eq 0
+ then
+ prattle "Called with '--vanilla': no user or site configuration"
+ prattle "files will be read." 1
+ fi
+fi
+##
+## END OF CONFIGURATION BLOCK
+##
+#########################################################################
+##
+## HELP TEXT
+##
+## Defines the output of 'pdfjam --help'
+##
+helptext="
+pdfjam is a shell-script front end to the LaTeX 'pdfpages' package (for
+which, see http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages).
+
+Usage: pdfjam [OPTIONS] [--] [FILE1 [SEL1]] [FILE2 [SEL2]]...
+where
+* 'FILE1' etc. are PDF files. For input from /dev/stdin, use the special name
+ '/dev/stdin' in place of any of FILE1, FILE2, etc: this can be mixed with
+ 'real' files as needed, to allow PDF data to be input through a pipe (note
+ that if /dev/stdin is connected to tty, an error results). If 'FILE1' is
+ absent, pdfjam will use '/dev/stdin' (and will use '-' for the page
+ selection -- see next item).
+* 'SEL1' is a page selection for FILE1, etc.
+ To select all pages (the default) use '-'. See the pdfpages manual for
+ more details. An example:
+ ... file1 '{},2,4-5,9-' ...
+ makes an empty page, followed by pages 2,4,5,6 of file1, followed by pages
+ 9 onwards (up to the end of file1).
+ A page selection can be applied to more than one file, e.g.,
+ ... file1 file2 file3 1-7 ...
+ applies page selection '1-7' to all three files; but for example
+ ... file1 file2 2- file3 1-7 ...
+ would apply the page selection '2-' to file1 and file2, and '1-7'
+ to file3. A page selection applies to all the files *immediately*
+ preceding it in the argument list. A missing page selection defaults to
+ '-'; this includes the case where 'FILE1' is absent and so /dev/stdin gets
+ used by default.
+* 'options' are pdfpages specifications in the form '--KEY VALUE' (see
+ below), or
+ --help (or -h, or -u)
+ Output this text only; no processing of PDF files.
+ --configpath
+ Output the 'configpath' variable and exit immediately; no
+ processing of PDF files.
+ --quiet (or -q)
+ Suppress verbose commentary on progress.
+ --batch
+ Run pdfjam sequentially on each input file in turn, and
+ produce a separate output file for each input, rather
+ than the default behaviour (which is a single run of
+ pdfjam on all of the input files, producing a single
+ output document). For the location of output
+ files, see '--outfile'. The --batch option cannot be
+ used in the case of input fron stdin.
+ --outfile PATH (or -o PATH)
+ Specifies where the output file(s) will go. If PATH is an
+ existing directory, pdfjam will attempt to write its
+ output PDF file(s) there, with name(s) derived from the
+ input file name(s) and the --suffix option (see below).
+ Otherwise the output file will be PATH. If '/dev/stdin'
+ is the only or last input file, PATH cannot be a directory.
+ Your current default PATH for output is:
+ $outFile
+ --suffix STRING
+ Specifies a suffix for output file names, to be used when
+ --outfile is either (a) a directory, or
+ (b) not specified in a --batch call.
+ A good STRING should be descriptive: for example,
+ --suffix 'rotated'
+ would append the text '-rotated' to the name of the input
+ file in order to make the output file name, as in
+ 'myfile-rotated.pdf'. The STRING must not have zero
+ length.
+ [Default for you at this site: suffix=$suffix]
+ --checkfiles
+ --no-checkfiles
+ If the Unix 'file' utility is available, with options
+ -L and -b, the output of 'file -Lb FILE1' should be
+ 'PDF document...' where '...' gives version information.
+ If this is the case on your system you should use
+ '--checkfiles'; otherwise use '--no-checkfiles',
+ in which case all input PDF files must have .pdf or .PDF
+ as their name extension.
+ [Default for you at this site: checkfiles=$checkfiles]
+ --preamble STRING
+ Append the supplied STRING to the preamble of the LaTeX
+ source file(s), immediately before the '\begin{document}'
+ line. An example:
+ pdfjam --nup 2x2 myfile.pdf -o myfile-4up.pdf \\
+ --preamble '\usepackage{fancyhdr} \pagestyle{fancy}'
+ The --preamble option can be used, for example, to load LaTeX
+ packages and/or to set global options.
+ --keepinfo
+ --no-keepinfo
+ Preserve (or not) Title, Author, Subject and Keywords
+ (from the last input PDF file, if more than one) in the
+ output PDF file. This requires the pdfinfo utility, from
+ the xpdf package, and the LaTeX 'hyperref' package; if
+ either of those is not available, '--keepinfo' is ignored.
+ [Default for you at this site: keepinfo=$keepinfo]
+ --pdftitle STRING
+ --pdfauthor STRING
+ --pdfsubject STRING
+ --pdfkeywords STRING
+ Provide text for the Title, Author, Subject and Keywords
+ in the output PDF file. Requires the LaTeX 'hyperref'
+ package. These options, individually, over-ride --keepinfo.
+ --landscape
+ --no-landscape
+ Specify landscape page orientation (or not) in the
+ output PDF file.
+ [Default for you at this site: landscape=$landscape]
+ --twoside
+ --no-twoside
+ Specify (or not) the 'twoside' document class option.
+ [Default for you at this site: twoside=$twoside]
+ --paper PAPERSPEC (or simply --PAPERSPEC)
+ Specify a LaTeX paper size, for example
+ '--paper a4paper' or simply '--a4paper' for ISO A4 paper.
+ If the LaTeX 'geometry' package is installed, a wider range
+ of paper sizes is available. For details see documentation
+ for LaTeX and/or the 'geometry' package.
+ [Default for you at this site: paper=$paper]
+ --papersize '{WIDTH,HEIGHT}'
+ Specify a custom paper size, e.g.,
+ --papersize '{10in,18cm}'
+ (Note the braces, and the comma!)
+ If the 'geometry' package is not found, this has no effect.
+ --pagecolor RGBSPEC
+ Specify a background colour for the output pages. The
+ RGBSPEC must be a comma-separated trio of integers
+ between 0 and 255. An example:
+ --pagecolor 150,200,150
+ [Default is no background colour]
+ --tidy
+ --no-tidy
+ Specify whether the temporary directory created by
+ pdfjam should be deleted. Use '--no-tidy' to help debug
+ most errors.
+ [Default for you at this site: tidy=$tidy]
+ --vanilla
+ Suppress the reading of any site-wide or user-specific
+ configuration files.
+ --KEY VALUE
+ Specify options to '\includepdfmerge', in the LaTeX
+ 'pdfpages' package. Here KEY is the name of any of the
+ many options for '\includepdfmerge', and VALUE is a
+ corresponding value. Examples are
+ --nup 2x1 (for 2-up side-by-side imposition)
+ --scale 0.7 (to scale all input pages to 70% size)
+ --offset '1cm 0.5cm'
+ (to offset all pages -- note the quotes!)
+ --frame true (to put a frame round each input page)
+ --trim '1cm 2cm 1cm 2cm' --clip true
+ (to trim those amounts from left, bottom,
+ right and top, respectively, of input
+ pages)
+ etc., etc. For more information see the manual for
+ the 'pdfpages' package, at
+ http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages
+* '--' can be used to signal that there are no more options to come.
+
+Defaults for the options '--suffix', '--keepinfo', '--paper', '--outfile',
+'--landscape', '--twoside', '--tidy' and '--checkfiles' can be set in
+site-wide or user-specific configuration files. The path that is searched
+for site-wide configuration files (named pdfjam.conf) at this installation is
+ $configpath
+This configuration path can be changed by editing the pdfjam script if
+necessary. Any user-specific configuration should be put in a file named
+.pdfjam.conf in your home directory. (All of these files are ignored
+if the '--vanilla' argument is used.)
+
+For more information, including an example configuration file, see
+http://go.warwick.ac.uk/pdfjam.
+"
+##
+## END OF HELP TEXT
+##
+#########################################################################
+##
+## ERROR CODES
+##
+E_USAGE=64 # command line usage error
+E_DATAERR=65 # data format error
+E_NOINPUT=66 # cannot open input
+E_UNAVAILABLE=69 # service unavailable
+E_SOFTWARE=70 # internal software error
+E_CANTCREATE=73 # can't create (user) output file
+E_CONFIG=78 # configuration error
+##
+## Define a function to print an error message and exit:
+##
+error_exit () {
+ if (test -e "$PDFJAM_MESSAGES_FILE")
+ then cat "$PDFJAM_MESSAGES_FILE" >&2
+ else printf "$messages" 1>&2
+ fi
+ printf " pdfjam ERROR: %s\n" "$1" 1>&2 ;
+ exit "$2" ;
+}
+##
+#########################################################################
+##
+## READ AND PROCESS THE ARGUMENTS
+##
+## In case of NO argument supplied, mention 'pdfjam --help':
+##
+if test $# -eq 0
+then
+ prattle "No arguments supplied; continuing anyway. (See"
+ prattle "'pdfjam --help' for information on usage.)" 1
+fi
+##
+## Now do the argument loop.
+##
+fileSpec=""
+miscOptions=""
+callOptions=""
+optionsFinished=""
+##
+## First note any '--checkfiles' or '--no-checkfiles' option
+##
+for arg in "$@"; do
+ case "$arg" in
+ --checkfiles)
+ checkfiles=true ;
+ callOptions="$callOptions --checkfiles" ;
+ ;;
+ --no-checkfiles)
+ checkfiles=false ;
+ callOptions="$callOptions --no-checkfiles" ;
+ ;;
+ esac
+done
+while test -n "${1}${2}"; do
+ argUnmatched=""
+ if test "$optionsFinished" != true
+ then
+ case "${1}" in
+ --) ## signals end of command-line options
+ optionsFinished=true ;
+ shift ;
+ continue ;
+ ;;
+ --help | -u | -h)
+ printf "%s\n" "$helptext" ;
+ exit 0;;
+ --configpath)
+ printf "%s\n" "$configpath" ;
+ exit 0;;
+ --* | -q | -o)
+ if test "$pageSpecAwaited" = true ; then
+ ## fill in any missing page specs before continuing
+ fileSpec=`printf "%s" "$fileSpec" | sed 's/|awaited/|-/g'`
+ pageSpecAwaited=false
+ fi
+ case "${1}" in
+ --batch)
+ batch=true ;
+ ;;
+ --vanilla)
+ callOptions="$callOptions ${1}" ;
+ ;;
+ --quiet | -q)
+ verbose=false ;
+ callOptions="$callOptions ${1}" ;
+ ;;
+ --outfile | -o)
+ outFile="${2}" ;
+ if test "$batch" = true
+ then
+ outFile=`escape_chars "$outFile"`
+ fi
+ callOptions="$callOptions --outfile $outFile" ;
+ shift ;;
+ --suffix)
+ if test -n "${2}"
+ then
+ suffix="${2}" ;
+ if test "$batch" = true
+ then
+ suffix=`escape_chars "$suffix"`
+ fi
+ callOptions="$callOptions --suffix $suffix"
+ shift
+ else
+ error_exit \
+ "'--suffix' string has zero length" \
+ $E_USAGE ;
+ fi
+ ;;
+ --tidy)
+ tidy=true ;
+ callOptions="$callOptions --tidy" ;
+ ;;
+ --no-tidy)
+ tidy=false ;
+ callOptions="$callOptions --no-tidy" ;
+ ;;
+ --keepinfo)
+ keepinfo=true ;
+ callOptions="$callOptions --keepinfo" ;
+ ;;
+ --no-keepinfo)
+ keepinfo=false ;
+ callOptions="$callOptions --no-keepinfo" ;
+ ;;
+ --checkfiles)
+ ;; ## already done above
+ --no-checkfiles)
+ ;; ## already done above
+ --pdftitle)
+ pdfTitle="${2}" ;
+ if test "$batch" = true
+ then
+ pdfTitle=`escape_chars "$pdfTitle"`
+ fi
+ callOptions="$callOptions --pdftitle $pdfTitle" ;
+ shift ;;
+ --pdfauthor)
+ pdfAuthor="${2}" ;
+ if test "$batch" = true
+ then
+ pdfAuthor=`escape_chars "$pdfAuthor"`
+ fi
+ callOptions="$callOptions --pdfauthor $pdfAuthor" ;
+ shift ;;
+ --pdfsubject)
+ pdfSubject="${2}" ;
+ if test "$batch" = true
+ then
+ pdfSubject=`escape_chars "$pdfSubject"`
+ fi
+ callOptions="$callOptions --pdfsubject $pdfSubject" ;
+ shift ;;
+ --pdfkeywords)
+ pdfKeywords="${2}" ;
+ if test "$batch" = true
+ then
+ pdfKeywords=`escape_chars "$pdfKeywords"`
+ fi
+ callOptions="$callOptions --pdfkeywords $pdfKeywords" ;
+ shift ;;
+ --paper)
+ paper="${2}"
+ callOptions="$callOptions ${1} ${2}" ;
+ shift;;
+ --pagecolor)
+ pagecolor="${2}" ;
+ callOptions="$callOptions ${1} ${2}" ;
+ shift;;
+ --a4paper | --a5paper | --b5paper | --letterpaper | \
+ --executivepaper | --legalpaper)
+ ## standard LaTeX paper sizes
+ paper=`printf "%s" "${1}" | sed 's/^--//'` ;
+ callOptions="$callOptions ${1}" ;
+ ;;
+ --a0paper | --a1paper | --a2paper | --a3paper | \
+ --a6paper | --b0paper | --b1paper | --b2paper | \
+ --b3paper | --b4paper | --b6paper)
+ ## the 'geonetry' package is needed
+ if test "$geometry" != false ;
+ then
+ paper=`printf "%s" "${1}" | sed 's/^--//'` ;
+ callOptions="$callOptions ${1}" ;
+ geometry=true ;
+ fi ;
+ ;;
+ --papersize)
+ ## the 'geonetry' package is needed
+ if test "$geometry" != false ;
+ then
+ papersize="papersize=${2}" ;
+ callOptions="$callOptions ${1} '${2}'" ;
+ geometry=true ;
+ fi ;
+ shift ;;
+ --landscape)
+ landscape=true ;
+ callOptions="$callOptions --landscape" ;
+ ;;
+ --no-landscape)
+ landscape=false ;
+ callOptions="$callOptions --no-landscape" ;
+ ;;
+ --twoside)
+ twoside=true ;
+ callOptions="$callOptions --twoside" ;
+ ;;
+ --no-twoside)
+ twoside=false ;
+ callOptions="$callOptions --no-twoside" ;
+ ;;
+ --preamble)
+ preamble="${2}" ;
+ callOptions="$callOptions ${1} '$preamble'" ;
+ shift ;;
+ --*)
+ ## options for \includepdfmerge
+ argName=`printf "%s" "${1}" | sed 's/^--//'`;
+ value="${2}"
+ miscOptions=$miscOptions,"$argName=$value" ;
+ ## saved for possible use in LaTeX file
+ callOptions="$callOptions ${1} '$value'" ;
+ ## saved for possible use in a further call to pdfjam
+ shift ;
+ ;;
+ esac ;;
+ '' | *)
+ argUnmatched=true
+ ;;
+ esac
+ fi
+ if test "$optionsFinished" = true || test "$argUnmatched" = true
+ then
+ case "${1}" in
+ "" | /dev/stdin)
+ fileSpec="${fileSpec}${newline}/dev/stdin|awaited"
+ pageSpecAwaited=true
+ inputFromStdin=true ;;
+ -)
+ if test "$pageSpecAwaited" = true ; then
+ fileSpec=`printf "%s" "$fileSpec" | \
+ sed 's/|awaited/|-/g'`
+ pageSpecAwaited=false
+ else
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ fi ;;
+ *) ## All other args should be PDF source files and page
+ ## selections; if not, we'll quit
+ if test "$checkfiles" = true ; ## not always available
+ then
+ case `file -Lb "${1}"` in
+ "PDF document"*) ## it's a PDF file as expected
+ fileSpec="$fileSpec${newline}"${1}"|awaited"
+ pageSpecAwaited=true
+ ;;
+ *)
+ case "${1}" in
+ *.[pP][dD][fF]) ## should be PDF file, but isn't
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ ;;
+ *) ## if page spec needed, assume this is it;
+ ## otherwise something is wrong
+ if test "$pageSpecAwaited" = true ; then
+ fileSpec=`printf "%s" "$fileSpec" | \
+ sed "s/|awaited/|$1/g"`
+ pageSpecAwaited=false
+ else
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ else ## no checking of file contents; rely on .pdf extension
+ case "${1}" in
+ *.[pP][dD][fF]) ## assume it's a PDF file
+ test -f "${1}" || error_exit \
+ "${1} not found" $E_NOINPUT
+ fileSpec="$fileSpec"$newline${1}"|"awaited
+ pageSpecAwaited=true
+ ;;
+ *) ## if page spec needed, assume this is it;
+ ## otherwise something is wrong
+ if test "$pageSpecAwaited" = true ; then
+ fileSpec=`printf "%s" "$fileSpec" | \
+ sed "s/|awaited/|$1/g"`
+ pageSpecAwaited=false
+ else
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ fi
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ fi
+ shift
+done
+##
+## Use the default page spec for any that remain unspecified:
+##
+fileSpec=`printf "%s" "$fileSpec" | sed '/^$/d; s/^ //; s/|awaited$/|-/'`
+##
+## Check whether input from stdin should be used by default:
+if test $PDFJAM_CALL_NUMBER -eq 0 && test "$inputFromStdin" != true
+then
+ ## the special argument '/dev/stdin' was not used
+ if test "$fileSpec" = "" ; then
+ ## no argument specifying a PDF source was given
+ inputFromStdin=true
+ fileSpec="/dev/stdin|-"
+ prattle "No pdf source specified: input is from stdin."
+ fi
+fi
+##
+## Delete leading comma from $miscOptions:
+##
+miscOptions=`printf "%s" "$miscOptions" | sed 's/^,//'`
+##
+## Delete leading space from $callOptions:
+##
+callOptions=`printf "%s" "$callOptions" | sed 's/^ //'`
+##
+## Set up a document options variable:
+##
+case "$landscape" in
+ true)
+ orientation=landscape ;;
+ *)
+ orientation="" ;;
+esac
+case "$twoside" in
+ true)
+ twoside=twoside ;;
+ *)
+ twoside="" ;;
+esac
+if test "$geometry" != false
+then
+## we haven't already found that geometry.sty is missing
+ case "$paper" in
+ a0paper | a1paper | a2paper | a3paper | \
+ a6paper | b0paper | b1paper | b2paper | \
+ b3paper | b4paper | b6paper)
+ ## the 'geonetry' package is needed
+ geometry=true ;
+ ;;
+ *)
+ ;;
+ esac
+fi
+documentOptions="$paper","$orientation","$twoside"
+documentOptions=`printf "%s" "$documentOptions" | sed 's/^,//' | sed 's/,$//'`
+##
+## END OF ARGUMENT PROCESSING
+##
+#########################################################################
+##
+## CHECK SYSTEM SETUP
+##
+## These checks are not repeated in secondary calls.
+##
+if test $PDFJAM_CALL_NUMBER -eq 0 ## not a secondary call
+then
+ ## Check whether there's a pdflatex, if "$pdflatex" is still unset:
+ case "$pdflatex" in
+ "not found")
+ error_exit "can't find pdflatex!" $E_UNAVAILABLE
+ ;;
+ pdflatex)
+ ;;
+ *) ## $pdflatex was set in a configuration file
+ if test ! -x "$pdflatex"
+ then
+ error_exit \
+ "configuration error, $pdflatex is not an executable file" \
+ $E_CONFIG
+ fi
+ ;;
+ esac
+ ##
+ ## Check that necessary LaTeX packages are installed:
+ ##
+ modifyPath=`printf "%s" "$pdflatex" | sed 's/\/[^\/]*$//'`
+ if [ -n "$modifyPath" ] ; then
+ PATH="$modifyPath:$PATH"
+ export PATH
+ fi
+ (kpsewhich pdfpages.sty >/dev/null) ||
+ error_exit \
+ "LaTeX package pdfpages.sty is not installed" \
+ $E_UNAVAILABLE
+ (kpsewhich eso-pic.sty >/dev/null) ||
+ error_exit \
+ "LaTeX package eso-pic.sty not installed (see the pdfpages manual)" \
+ $E_UNAVAILABLE
+ (kpsewhich everyshi.sty >/dev/null) ||
+ error_exit \
+ "LaTeX package everyshi.sty not installed (see the pdfpages manual)" \
+ $E_UNAVAILABLE
+ if test "$keepinfo" = true ||
+ test -n "$pdfTitle$pdfSubject$pdfAuthor$pdfKeywords"
+ ## ie, if hyperref is required
+ then
+ (kpsewhich hyperref.sty >/dev/null) || {
+ prattle "LaTeX package hyperref.sty is not installed, so any"
+ prattle "--keepinfo, --pdftitle,--pdfauthor, --pdfsubject or" 1
+ prattle "--pdfkeywords setting will be ignored." 1
+ hyperref=false
+ if test "$batch" = true
+ then
+ export hyperref ## for use in any secondary calls
+ fi
+ }
+ else
+ hyperref=false
+ fi
+ if test "$geometry" = true
+ ## if, if the 'geometry' package is needed for paper size
+ then
+ (kpsewhich geometry.sty >/dev/null) || {
+ prattle "LaTeX package geometry.sty is not installed, so only the"
+ prattle "standard LaTeX paper sizes are available." 1
+ geometry=false
+ if test "$batch" = true
+ then
+ export geometry ## for use in any secondary calls
+ fi
+ }
+ fi
+fi
+if test "$hyperref" = false
+then
+ keepinfo=false
+ pdfTitle="" ; pdfAuthor="" ; pdfSubject="" ; pdfKeywords=""
+else
+ if test "$keepinfo" = true
+ then
+ case "$pdfinfo" in
+ "not found")
+ if test $PDFJAM_CALL_NUMBER -eq 0
+ then
+ prattle \
+ "The pdfinfo utility was not found, so --keepinfo is ignored."
+ fi
+ keepinfo=false
+ ;;
+ pdfinfo)
+ ;;
+ *) ## $pdfinfo was set in a configuration file
+ if test ! -x "$pdfinfo"
+ then
+ if test $PDFJAM_CALL_NUMBER -eq 0
+ then
+ prattle \
+ "No pdfinfo utility at $pdfinfo, so --keepinfo is ignored."
+ keepinfo=false
+ fi
+ fi
+ ;;
+ esac
+ fi
+fi
+##
+## END OF CHECKING THE SETUP
+##
+#########################################################################
+##
+## TEMPORARY FILES
+##
+## Make a secure temporary directory (following
+## the autoconf manual).
+##
+## Use mktemp if possible; otherwise fall back on mkdir,
+## with random name to make file collisions less likely.
+##
+umask 177
+if test $PDFJAM_CALL_NUMBER = 0 ## don't repeat this work for secondary calls
+then
+ PDFJAM_TEMP_DIR=''
+ trap 'IFS="$OIFS"; \
+ if test $tidy != false ; then cd "$pwd"; rm -rf "$PDFJAM_TEMP_DIR"; fi; exit 1' \
+ 1 2 9 15
+ trap 'IFS="$OIFS"; \
+ if test $tidy != false ; then cd "$pwd"; rm -rf "$PDFJAM_TEMP_DIR"; fi' 0
+ {
+ PDFJAM_TEMP_DIR=`
+ (umask 077 && mktemp -d "$tempfileDir/pdfjam-XXXXXX") 2>/dev/null
+ ` &&
+ test -n "$PDFJAM_TEMP_DIR" && test -d "$PDFJAM_TEMP_DIR"
+ } || {
+ ## We'll use awk to make random number, for portability
+ random=`
+ awk 'END { srand(); printf ("%d\n", rand()*1000000); }' /dev/null`
+ PDFJAM_TEMP_DIR="$tempfileDir"/pdfjam"$$"-"$random"
+ (umask 077 && mkdir "$PDFJAM_TEMP_DIR")
+ } || exit $?
+##
+ export PDFJAM_TEMP_DIR ## so that same dir is used in secondary calls
+ if test $tidy = false ; then
+ prattle "Temporary directory for this job is
+ $PDFJAM_TEMP_DIR"
+ fi
+ PDFJAM_MESSAGES_FILE="$PDFJAM_TEMP_DIR"/messages.txt
+ export PDFJAM_MESSAGES_FILE
+ ## so that secondary calls can write messages there as well
+ printf "$messages" > "$PDFJAM_MESSAGES_FILE" ## initial file contents
+ messages="" ## we won't be using this variable again!
+else
+ PDFJAM_TEMP_DIR="$PDFJAM_TEMP_DIR"/"file$PDFJAM_CALL_NUMBER"
+ umask 077 && mkdir "$PDFJAM_TEMP_DIR"
+fi
+##
+## TEMPORARY DIRECTORY ALL DONE
+##
+#########################################################################
+##
+## HANDLING THE "--batch" OPTION
+##
+## If --batch was used, we'll call pdfjam separately on each input
+## file.
+##
+if test "$batch" = true ; then
+ if test "$fileSpec" = "" ; then
+ error_exit "--batch was used, but no PDF source file(s) specified" \
+ $E_USAGE
+ fi
+ if test "$inputFromStdin" = true ; then
+ error_exit "--batch cannot be used with input from stdin" \
+ $E_USAGE
+ fi
+ IFS="$newline"
+ for k in $fileSpec ; do
+ sourcePath=`printf "%s" "$k" | sed 's/|[^|]*$//'`
+ pageSpec=`printf "%s" $k | sed 's/.*|//'`
+ callNumber=`expr $PDFJAM_CALL_NUMBER + 1`
+ prattle "--"
+ prattle "Processing file ${callNumber}, '$sourcePath'..."
+ prattle "Page spec is '$pageSpec'."
+ sourcePath=`escape_chars "$sourcePath"`
+ PDFJAM_EFFECTIVE_CALL="$0 $callOptions -- $sourcePath $pageSpec"
+ export PDFJAM_EFFECTIVE_CALL
+ PDFJAM_CALL_NUMBER=$callNumber
+ export PDFJAM_CALL_NUMBER
+ eval "$PDFJAM_EFFECTIVE_CALL"
+ ## i.e., call pdfjam again with one input file
+ done
+ if (test $verbose = true) then cat "$PDFJAM_MESSAGES_FILE" >&2 ; fi
+ IFS=$OIFS
+ exit 0
+fi
+##
+## END OF THE '--batch' PROCESSING
+##
+#########################################################################
+##
+## RECORD THE EFFECTIVE CALL TO PDFJAM, FOR POSSIBLE DEBUGGING PURPOSES
+##
+## Save the text of this (effective) call to pdfjam in a temporary file,
+## for later inspection if necessary.
+##
+## For secondary calls, the effective call text is already made;
+## otherwise we make it here.
+##
+if test "$PDFJAM_CALL_NUMBER" -gt 0
+then
+ theCall="$PDFJAM_EFFECTIVE_CALL"
+else
+ filePageSpec=""
+ IFS="$newline"
+ for k in $fileSpec ; do
+ ## Last substitution on next line is needed for silly characters in
+ ## file names...
+ sourcePath=`printf "%s" $k | sed 's/|[^|]*$//'`
+ sourcePath=`escape_chars "$sourcePath"`
+ pageSpec=`printf "%s" $k | sed 's/.*|//'`
+ filePageSpec="$filePageSpec$sourcePath $pageSpec "
+ done
+ IFS="$OIFS"
+ theCall="$0 $callOptions -- $filePageSpec"
+fi
+printf "%s\n%s\n" "cd $pwd" "$theCall" > "$PDFJAM_TEMP_DIR"/call.txt
+prattle "Effective call for this run of pdfjam:"
+prattle "$theCall" 1
+##
+#########################################################################
+##
+## NOW MAKE THE INPUT FILE ETC., READY FOR PDFLATEX
+##
+filePageList="" ## initialize a string to supply to \includepdfmerge
+counter=0
+##
+## Make symbolic link(s) to the source file(s) in the temporary dir,
+## and make the $filePageList string for input to \includepdfmerge
+##
+stdinUnread=true
+IFS="$newline"
+for k in $fileSpec
+do
+ counter=`expr $counter + 1`
+ sourcePath=`printf "%s" "$k" | sed 's/|[^|]*$//'`
+ pageSpec=`printf "%s" $k | sed 's/.*|//'`
+ ## Check, though not exhaustively, for problems with the
+ ## page spec: leading or trailing comma, double comma or
+ ## double dash, alphabetic characters other than the word "last",
+ ## braces not paired as {} with nothing inbetween. A fully
+ ## specified pattern for valid \includepdfmerge page spec would
+ ## be better here; but life is too short...
+ if printf "%s" "$pageSpec" | sed 's/last/99/g' | \
+ grep '^,.*\|,$\|,,\|--\|[A-Za-z]\|{[^}]\|[^{]}' 1>/dev/null
+ then
+ error_exit "invalid page spec $pageSpec" $E_USAGE
+ fi
+ case "$sourcePath" in
+ /dev/stdin)
+ uniqueName="$PDFJAM_TEMP_DIR"/stdin.pdf
+ if test "$stdinUnread" = true
+ then
+ if tty -s ; then
+ error_exit \
+ "tty is connected to connected to stdin, no PDF file found" \
+ $E_NOINPUT
+ fi
+ cat > "$uniqueName"
+ stdinUnread=false
+ fi
+ ;;
+ *)
+ pdfName=`basename "$sourcePath"`
+ sourceDir=`dirname "$sourcePath"`
+ cd "$sourceDir" || exit 1 ## just to get the full path
+ sourceDir=`pwd`
+ cd "$pwd" || exit 1
+ sourceFullPath="$sourceDir"/"$pdfName"
+ uniqueName="source-$counter.pdf"
+ uniqueName="$PDFJAM_TEMP_DIR"/"$uniqueName"
+ ln -s "$sourceFullPath" "$uniqueName"
+ ;;
+ esac
+ filePageList="$filePageList","$uniqueName","$pageSpec"
+done
+IFS="$OIFS"
+filePageList=`printf "%s" "$filePageList" | \
+ sed 's/^,//'` ## remove leading comma
+##
+## Do the pdfinfo stuff (if relevant)...
+##
+if test "$hyperref" != false
+then
+ if test "$keepinfo" = true
+ then
+ prattle "Calling ${pdfinfo}..." ;
+ PDFinfo=`pdfinfo "$uniqueName"`;
+ pdftitl=`printf "%s" "$PDFinfo" | \
+ grep -e '^Title:'| sed s/^Title:\\\s\*//`;
+ pdfauth=`printf "%s" "$PDFinfo" | \
+ grep -e '^Author:'| sed s/^Author:\\\s\*//`;
+ pdfsubj=`printf "%s" "$PDFinfo" | \
+ grep -e '^Subject:'| sed s/^Subject:\\\s\*//`;
+ pdfkeyw=`printf "%s" "$PDFinfo" | \
+ grep -e '^Keywords:'| sed s/^Keywords:\\\s\*//`;
+ fi
+ if test -n "$pdfTitle" ; then
+ pdftitl="$pdfTitle"
+ fi
+ if test -n "$pdfAuthor" ; then
+ pdfauth="$pdfAuthor"
+ fi
+ if test -n "$pdfSubject" ; then
+ pdfsubj="$pdfSubject"
+ fi
+ if test -n "$pdfKeywords" ; then
+ pdfkeyw="$pdfKeywords"
+ fi
+fi
+##
+## Now set up the files for pdflatex...
+##
+fileName="$PDFJAM_TEMP_DIR"/a
+texFile="$fileName".tex
+msgFile="$fileName".msgs
+tempFile="$PDFJAM_TEMP_DIR"/temp.tex
+(cat <<EndTemplate
+\batchmode
+\documentclass[$documentOptions]{article}
+\usepackage{color} \definecolor{bgclr}{RGB}{$pagecolor} \pagecolor{bgclr}
+\usepackage[$papersize]{geometry}
+\usepackage{hyperref}
+\hypersetup{pdftitle=$pdftitl}
+\hypersetup{pdfauthor=$pdfauth}
+\hypersetup{pdfsubject=$pdfsubj}
+\hypersetup{pdfkeywords=$pdfkeyw}
+\usepackage{pdfpages}
+$preamble
+\begin{document}
+\includepdfmerge[$miscOptions]{$filePageList}
+\end{document}
+EndTemplate
+ ) > $texFile
+if test "$hyperref" = false; then ## we don't need hyperref
+ cp $texFile $tempFile
+ sed '/\\\usepackage{hyperref}/d' $tempFile | \
+ sed '/\\\hypersetup.*/d' > "${texFile}"
+ rm $tempFile
+fi
+if test ! -n "$geometry" ; then geometry=false ; fi
+if test "$geometry" = false; then ## geometry package is not to be used
+ cp $texFile $tempFile
+ cat $tempFile | sed '/\\\usepackage.*{geometry}/d' > $texFile
+ rm $tempFile
+fi
+if test "$pagecolor" = ""; then ## color package is not needed
+ cp $texFile $tempFile
+ cat $tempFile | sed '/\\\usepackage.*{color}/d' > $texFile
+ rm $tempFile
+fi
+##
+## INPUT FILES ARE ALL READY
+##
+#########################################################################
+##
+## RUN PDFLATEX AND COPY THE RESULTING PDF FILE TO STDOUT
+##
+prattle "Calling ${pdflatex}..." ;
+cd "$PDFJAM_TEMP_DIR" || exit 1
+failureText=\
+"FAILED.
+The call to 'pdflatex' resulted in an error.
+If '--no-tidy' was used, you can examine the
+log file at
+ $fileName.log
+to try to diagnose the problem."
+if ! ("$pdflatex" "$texFile" > "$msgFile")
+then
+ prattle "$failureText"
+ error_exit "Output file not written" $E_SOFTWARE
+fi
+cd "$pwd" || exit 1
+if test -f "$fileName".pdf ## if LaTeX didn't choke
+then
+ ## Checks on output file path:
+ if test -d "$outFile" ## outfile is a directory
+ then
+ if test "$sourcePath" = /dev/stdin
+ then
+ error_exit \
+ "--outfile cannot be a directory when input is stdin" \
+ $E_USAGE
+ fi
+ if test ! -w "$outFile"
+ then
+ prattle "FAILED: no write permission in ${outFile}."
+ continue
+ fi
+ separator="-"
+ if test "$pageSpec" != "-"
+ then
+ separator="-$pageSpec"
+ fi
+ outFile=`printf "%s" "$outFile" | sed 's/\/$//'`
+ ## (delete any trailing slash)
+ pdfName=`basename "$sourcePath"`
+ pdfName=`printf "%s" "$pdfName" | \
+ sed 's/\.[pP][dD][fF]$//'` ## strip extension
+ pdfName="$pdfName$separator$suffix".pdf
+ outFile="$outFile"/"$pdfName"
+ fi
+fi
+if test -f "$outFile" && test ! -w "$outFile"
+ ## file exists and we can't over-write it
+then
+ error_exit "no write permission at ${outFile}" $E_CANTCREATE
+fi
+(cat "$fileName".pdf > "$outFile" 2>/dev/null) &&
+ prattle "Finished. Output was to ${outFile}." ||
+ error_exit "cannot write output at ${outFile}" $E_CANTCREATE
+if (test "$PDFJAM_CALL_NUMBER" = "0") && ## not a secondary call
+ (test $verbose = true)
+then cat "$PDFJAM_MESSAGES_FILE" >&2
+fi
+exit 0
+##
+## END
+##
+#########################################################################
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-pocketmod b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-pocketmod
new file mode 100755
index 00000000000..0bebe86961c
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-pocketmod
@@ -0,0 +1,54 @@
+#!/bin/sh
+##
+## pdfjam-pocketmod: A shell program to make an 8-page PDF document
+## into an 8-up file with pages ordered and oriented for folding as
+## a pocket-sized booklet, as described at http://repocketmod.com/
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for (three runs of) pdfjam, version 2.01
+##
+##
+## It's hard (?) to set up this particular script to read from /dev/stdin,
+## so we'll just insist that the first argument is a file:
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfjam-pocketmod ERROR: the --batch option is not allowed\n" 1>&2 ;
+ exit "$E_USAGE" ;;
+ --no-tidy)
+ n='--no-tidy' ;;
+ --quiet | -q)
+ q='-q' ;;
+ --checkfiles)
+ c='--checkfiles' ;;
+ *)
+ ;;
+ esac
+done
+##
+sourceFile="$1" ;
+shift ;
+##
+## Some (very) minimal checking of the first argument:
+##
+if test ! -f "$sourceFile" ;
+then
+ printf "pdfjam-pocketmod ERROR: first argument must be a PDF file\n" ;
+ exit $E_USAGE ;
+fi
+##
+## That's all the argument checking!
+##
+pageSpec="1-8" ## the default page spec
+case "${1}" in
+ --* | "") ## no page spec was given
+ ;;
+ *) ## a page spec was given, so use it
+ pageSpec="$1" ;
+ shift ;;
+esac
+pdfjam $n $q $c -o /dev/stdout "$sourceFile" "$pageSpec" | pdfjam --angle 180 $n $q -o /dev/stdout /dev/stdin '1,8,7,6' | pdfjam --nup 4x2 --landscape --frame true "$sourceFile" '2-5' /dev/stdin "$@"
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides3up b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides3up
new file mode 100755
index 00000000000..3bd461c8883
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides3up
@@ -0,0 +1,29 @@
+#!/bin/sh
+##
+## pdfjam-slides3up: A shell program to make a 3-up "handout"
+## of presentation slides, with space for side-notes
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+footskip=3.1cm ## default setting
+pagecommand='{\thispagestyle{empty}}' ## default setting
+case "${1}" in
+ --pagenumbering)
+ case "${2}" in
+ false)
+ continue ;;
+ true)
+ pagecommand='{\thispagestyle{plain}}' ;;
+ *) ## a footskip dimension was supplied
+ pagecommand='{\thispagestyle{plain}}' ;
+ footskip="$2" ;;
+ esac ;
+ shift 2 ;;
+ *)
+ continue ;;
+esac
+pdfjam --suffix 3up --nup 1x3 --frame true --noautoscale false \
+ --delta "0cm 0.2cm" --scale 0.87 --offset "-3.8cm 0cm" \
+ --preamble "\footskip $footskip" --pagecommand "$pagecommand" "$@"
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides6up b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides6up
new file mode 100755
index 00000000000..47fa2ea1ec8
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam-slides6up
@@ -0,0 +1,31 @@
+#!/bin/sh
+##
+## pdfjam-slides6up: A shell program to make a 6-up "handout"
+## of presentation slides
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+footskip=2.7cm ## default setting
+pagecommand='{\thispagestyle{empty}}' ## default setting
+case "${1}" in
+ --pagenumbering)
+ case "${2}" in
+ false)
+ continue ;;
+ true)
+ pagecommand='{\thispagestyle{plain}}' ;;
+ *) ## a footskip dimension was supplied
+ pagecommand='{\thispagestyle{plain}}' ;
+ footskip="$2" ;;
+ esac ;
+ shift 2 ;;
+ *)
+ continue ;;
+esac
+pdfjam --suffix 6up --nup 2x3 --frame true --noautoscale false \
+ --delta "0.2cm 0.3cm" --scale 0.95 --preamble "\footskip $footskip" \
+ --pagecommand "$pagecommand" "$@"
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjoin b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjoin
new file mode 100755
index 00000000000..02c397fc31d
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjoin
@@ -0,0 +1,25 @@
+#!/bin/sh
+##
+## pdfjoin: A shell program to concatenate PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfjoin ERROR: the --batch option is not allowed\n" 1>&2;
+ exit "$E_USAGE" ;;
+ --orient) ## this was allowed in previous versions of pdfjoin
+ printf "pdfjoin ERROR: the --orient option is not allowed,\n" 1>&2;
+ printf " use --landscape or --no-landscape to specify\n" 1>&2;
+ printf " the output page orientation" 1>&2;
+ exit "$E_USAGE" ;;
+ *) continue ;;
+ esac
+done
+pdfjam --fitpaper true --rotateoversize true --suffix joined "$@"
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfnup b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfnup
new file mode 100755
index 00000000000..a4744a112fd
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfnup
@@ -0,0 +1,28 @@
+#!/bin/sh
+##
+## pdfnup: A shell program to n-up pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --orient) ## this was allowed in previous versions of pdfnup
+ printf "pdfnup ERROR: the --orient option is not allowed,\n" 1>&2;
+ printf " use --landscape or --no-landscape to specify\n" 1>&2;
+ printf " the output page orientation" 1>&2;
+ exit "$E_USAGE" ;;
+ --pages) ## this was allowed in previous versions of pdfnup
+ printf "pdfnup ERROR: the --pages option is not allowed,\n" 1>&2;
+ printf " see 'pdfjam --help' or http://go.warwick.ac.uk/pdfjam\n" \
+ 1>&2;
+ printf " for page selection examples\n" 1>&2;
+ exit "$E_USAGE" ;;
+ *) continue ;;
+ esac
+done
+pdfjam --suffix nup --nup 2x1 --landscape "$@"
+
+
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfpun b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfpun
new file mode 100755
index 00000000000..eee08a05d33
--- /dev/null
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfpun
@@ -0,0 +1,72 @@
+#!/bin/sh
+##
+## pdfpun: A shell program to n-up pages of a PDF file with
+## the n-upped pages ordered from right to left
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for (three runs of) pdfjam, version 2.01
+##
+##
+E_USAGE=64 ## for a command line usage error
+##
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfpun ERROR: the --batch option is not allowed\n" 1>&2;
+ exit "$E_USAGE" ;;
+ --no-tidy)
+ n='--no-tidy' ;;
+ --quiet | -q)
+ q='-q' ;;
+ --checkfiles)
+ c='--checkfiles' ;;
+ *) continue ;;
+ esac
+done
+sourceFile="$1" ;
+shift ;
+##
+## Some (very) minimal checking of the first argument:
+##
+if test ! -e "$sourceFile" ;
+then
+ printf "pdfpun ERROR: first argument must be a PDF file\n" ;
+ exit $E_USAGE ;
+fi
+if test "$sourceFile" = /dev/stdin ;
+then
+ if tty -s ; then
+ printf "pdfpun ERROR: tty is connected to connected to stdin, no PDF file found\n"
+ exit $E_USAGE ;
+ fi
+fi
+##
+## That's all the argument checking!
+##
+pageSpec="-" ## the default
+case "${1}" in
+ --* | "")
+ ;;
+ *) ## a page spec was given
+ pageSpec="$1" ;
+ shift ;;
+esac
+case "${1}" in
+ --outfile)
+ outFile="$2" ;
+ shift 2 ;;
+ *)
+ ;;
+esac
+if test "$outFile" = "" ;
+then
+ printf "pdfpun ERROR: no output file specified\n" 1>&2 ;
+ exit "$E_USAGE" ;
+fi
+pdfjam --reflect true $n $q $c "$sourceFile" "$pageSpec" -o /dev/stdout | \
+ pdfjam --landscape --nup 2x1 "$@" -o /dev/stdout | \
+ pdfjam --suffix nup --reflect true --fitpaper true $n $q -o "$outFile"
+
+
+
diff --git a/Master/bin/alpha-linux/pdf180 b/Master/bin/alpha-linux/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/alpha-linux/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdf270 b/Master/bin/alpha-linux/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/alpha-linux/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdf90 b/Master/bin/alpha-linux/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/alpha-linux/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfbook b/Master/bin/alpha-linux/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfflip b/Master/bin/alpha-linux/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfjam b/Master/bin/alpha-linux/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfjam-pocketmod b/Master/bin/alpha-linux/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfjam-slides3up b/Master/bin/alpha-linux/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfjam-slides6up b/Master/bin/alpha-linux/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfjoin b/Master/bin/alpha-linux/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfnup b/Master/bin/alpha-linux/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/alpha-linux/pdfpun b/Master/bin/alpha-linux/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/alpha-linux/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdf180 b/Master/bin/amd64-freebsd/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdf270 b/Master/bin/amd64-freebsd/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdf90 b/Master/bin/amd64-freebsd/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfbook b/Master/bin/amd64-freebsd/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfflip b/Master/bin/amd64-freebsd/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfjam b/Master/bin/amd64-freebsd/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfjam-pocketmod b/Master/bin/amd64-freebsd/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfjam-slides3up b/Master/bin/amd64-freebsd/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfjam-slides6up b/Master/bin/amd64-freebsd/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfjoin b/Master/bin/amd64-freebsd/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfnup b/Master/bin/amd64-freebsd/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/amd64-freebsd/pdfpun b/Master/bin/amd64-freebsd/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/amd64-freebsd/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdf180 b/Master/bin/i386-cygwin/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdf270 b/Master/bin/i386-cygwin/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdf90 b/Master/bin/i386-cygwin/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfbook b/Master/bin/i386-cygwin/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfflip b/Master/bin/i386-cygwin/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfjam b/Master/bin/i386-cygwin/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfjam-pocketmod b/Master/bin/i386-cygwin/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfjam-slides3up b/Master/bin/i386-cygwin/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfjam-slides6up b/Master/bin/i386-cygwin/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfjoin b/Master/bin/i386-cygwin/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfnup b/Master/bin/i386-cygwin/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/i386-cygwin/pdfpun b/Master/bin/i386-cygwin/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/i386-cygwin/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdf180 b/Master/bin/i386-freebsd/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdf270 b/Master/bin/i386-freebsd/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdf90 b/Master/bin/i386-freebsd/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfbook b/Master/bin/i386-freebsd/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfflip b/Master/bin/i386-freebsd/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfjam b/Master/bin/i386-freebsd/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfjam-pocketmod b/Master/bin/i386-freebsd/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfjam-slides3up b/Master/bin/i386-freebsd/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfjam-slides6up b/Master/bin/i386-freebsd/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfjoin b/Master/bin/i386-freebsd/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfnup b/Master/bin/i386-freebsd/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/i386-freebsd/pdfpun b/Master/bin/i386-freebsd/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/i386-freebsd/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdf180 b/Master/bin/i386-kfreebsd/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdf270 b/Master/bin/i386-kfreebsd/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdf90 b/Master/bin/i386-kfreebsd/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfbook b/Master/bin/i386-kfreebsd/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfflip b/Master/bin/i386-kfreebsd/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfjam b/Master/bin/i386-kfreebsd/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfjam-pocketmod b/Master/bin/i386-kfreebsd/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfjam-slides3up b/Master/bin/i386-kfreebsd/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfjam-slides6up b/Master/bin/i386-kfreebsd/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfjoin b/Master/bin/i386-kfreebsd/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfnup b/Master/bin/i386-kfreebsd/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/i386-kfreebsd/pdfpun b/Master/bin/i386-kfreebsd/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/i386-kfreebsd/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdf180 b/Master/bin/i386-linux/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/i386-linux/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdf270 b/Master/bin/i386-linux/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/i386-linux/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdf90 b/Master/bin/i386-linux/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/i386-linux/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfbook b/Master/bin/i386-linux/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/i386-linux/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfflip b/Master/bin/i386-linux/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/i386-linux/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfjam b/Master/bin/i386-linux/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/i386-linux/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfjam-pocketmod b/Master/bin/i386-linux/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/i386-linux/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfjam-slides3up b/Master/bin/i386-linux/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/i386-linux/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfjam-slides6up b/Master/bin/i386-linux/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/i386-linux/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfjoin b/Master/bin/i386-linux/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/i386-linux/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfnup b/Master/bin/i386-linux/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/i386-linux/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/i386-linux/pdfpun b/Master/bin/i386-linux/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/i386-linux/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdf180 b/Master/bin/i386-netbsd/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdf270 b/Master/bin/i386-netbsd/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdf90 b/Master/bin/i386-netbsd/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfbook b/Master/bin/i386-netbsd/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfflip b/Master/bin/i386-netbsd/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfjam b/Master/bin/i386-netbsd/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfjam-pocketmod b/Master/bin/i386-netbsd/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfjam-slides3up b/Master/bin/i386-netbsd/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfjam-slides6up b/Master/bin/i386-netbsd/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfjoin b/Master/bin/i386-netbsd/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfnup b/Master/bin/i386-netbsd/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/i386-netbsd/pdfpun b/Master/bin/i386-netbsd/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/i386-netbsd/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdf180 b/Master/bin/i386-solaris/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/i386-solaris/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdf270 b/Master/bin/i386-solaris/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/i386-solaris/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdf90 b/Master/bin/i386-solaris/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/i386-solaris/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfbook b/Master/bin/i386-solaris/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfflip b/Master/bin/i386-solaris/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfjam b/Master/bin/i386-solaris/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfjam-pocketmod b/Master/bin/i386-solaris/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfjam-slides3up b/Master/bin/i386-solaris/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfjam-slides6up b/Master/bin/i386-solaris/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfjoin b/Master/bin/i386-solaris/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfnup b/Master/bin/i386-solaris/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/i386-solaris/pdfpun b/Master/bin/i386-solaris/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/i386-solaris/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdf180 b/Master/bin/mips-irix/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/mips-irix/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdf270 b/Master/bin/mips-irix/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/mips-irix/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdf90 b/Master/bin/mips-irix/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/mips-irix/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfbook b/Master/bin/mips-irix/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/mips-irix/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfflip b/Master/bin/mips-irix/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/mips-irix/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfjam b/Master/bin/mips-irix/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/mips-irix/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfjam-pocketmod b/Master/bin/mips-irix/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/mips-irix/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfjam-slides3up b/Master/bin/mips-irix/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/mips-irix/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfjam-slides6up b/Master/bin/mips-irix/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/mips-irix/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfjoin b/Master/bin/mips-irix/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/mips-irix/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfnup b/Master/bin/mips-irix/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/mips-irix/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/mips-irix/pdfpun b/Master/bin/mips-irix/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/mips-irix/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdf180 b/Master/bin/powerpc-aix/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdf270 b/Master/bin/powerpc-aix/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdf90 b/Master/bin/powerpc-aix/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfbook b/Master/bin/powerpc-aix/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfflip b/Master/bin/powerpc-aix/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfjam b/Master/bin/powerpc-aix/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfjam-pocketmod b/Master/bin/powerpc-aix/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfjam-slides3up b/Master/bin/powerpc-aix/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfjam-slides6up b/Master/bin/powerpc-aix/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfjoin b/Master/bin/powerpc-aix/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfnup b/Master/bin/powerpc-aix/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/powerpc-aix/pdfpun b/Master/bin/powerpc-aix/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/powerpc-aix/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdf180 b/Master/bin/powerpc-linux/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdf270 b/Master/bin/powerpc-linux/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdf90 b/Master/bin/powerpc-linux/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfbook b/Master/bin/powerpc-linux/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfflip b/Master/bin/powerpc-linux/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfjam b/Master/bin/powerpc-linux/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfjam-pocketmod b/Master/bin/powerpc-linux/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfjam-slides3up b/Master/bin/powerpc-linux/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfjam-slides6up b/Master/bin/powerpc-linux/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfjoin b/Master/bin/powerpc-linux/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfnup b/Master/bin/powerpc-linux/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/powerpc-linux/pdfpun b/Master/bin/powerpc-linux/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/powerpc-linux/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdf180 b/Master/bin/sparc-linux/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/sparc-linux/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdf270 b/Master/bin/sparc-linux/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/sparc-linux/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdf90 b/Master/bin/sparc-linux/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/sparc-linux/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfbook b/Master/bin/sparc-linux/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfflip b/Master/bin/sparc-linux/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfjam b/Master/bin/sparc-linux/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfjam-pocketmod b/Master/bin/sparc-linux/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfjam-slides3up b/Master/bin/sparc-linux/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfjam-slides6up b/Master/bin/sparc-linux/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfjoin b/Master/bin/sparc-linux/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfnup b/Master/bin/sparc-linux/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pdfpun b/Master/bin/sparc-linux/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/sparc-linux/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdf180 b/Master/bin/sparc-solaris/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdf270 b/Master/bin/sparc-solaris/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdf90 b/Master/bin/sparc-solaris/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfbook b/Master/bin/sparc-solaris/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfflip b/Master/bin/sparc-solaris/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfjam b/Master/bin/sparc-solaris/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfjam-pocketmod b/Master/bin/sparc-solaris/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfjam-slides3up b/Master/bin/sparc-solaris/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfjam-slides6up b/Master/bin/sparc-solaris/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfjoin b/Master/bin/sparc-solaris/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfnup b/Master/bin/sparc-solaris/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/sparc-solaris/pdfpun b/Master/bin/sparc-solaris/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/sparc-solaris/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdf180 b/Master/bin/universal-darwin/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/universal-darwin/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdf270 b/Master/bin/universal-darwin/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/universal-darwin/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdf90 b/Master/bin/universal-darwin/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/universal-darwin/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfbook b/Master/bin/universal-darwin/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfflip b/Master/bin/universal-darwin/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfjam b/Master/bin/universal-darwin/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfjam-pocketmod b/Master/bin/universal-darwin/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfjam-slides3up b/Master/bin/universal-darwin/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfjam-slides6up b/Master/bin/universal-darwin/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfjoin b/Master/bin/universal-darwin/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfnup b/Master/bin/universal-darwin/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/universal-darwin/pdfpun b/Master/bin/universal-darwin/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/universal-darwin/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdf180 b/Master/bin/x86_64-linux/pdf180
new file mode 120000
index 00000000000..d70d8f8c501
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdf180
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf180 \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdf270 b/Master/bin/x86_64-linux/pdf270
new file mode 120000
index 00000000000..4bf2d996234
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdf270
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf270 \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdf90 b/Master/bin/x86_64-linux/pdf90
new file mode 120000
index 00000000000..298ffab7aa5
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdf90
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdf90 \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfbook b/Master/bin/x86_64-linux/pdfbook
new file mode 120000
index 00000000000..23cb419ebbd
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfbook
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfbook \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfflip b/Master/bin/x86_64-linux/pdfflip
new file mode 120000
index 00000000000..11c791763c8
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfflip
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfflip \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfjam b/Master/bin/x86_64-linux/pdfjam
new file mode 120000
index 00000000000..6e112a2280a
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfjam
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfjam-pocketmod b/Master/bin/x86_64-linux/pdfjam-pocketmod
new file mode 120000
index 00000000000..89a9f8d03ca
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfjam-pocketmod
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-pocketmod \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfjam-slides3up b/Master/bin/x86_64-linux/pdfjam-slides3up
new file mode 120000
index 00000000000..249aa2104b3
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfjam-slides3up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides3up \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfjam-slides6up b/Master/bin/x86_64-linux/pdfjam-slides6up
new file mode 120000
index 00000000000..78ae900d291
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfjam-slides6up
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjam-slides6up \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfjoin b/Master/bin/x86_64-linux/pdfjoin
new file mode 120000
index 00000000000..69b4b04b9d5
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfjoin
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfjoin \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfnup b/Master/bin/x86_64-linux/pdfnup
new file mode 120000
index 00000000000..0a341064fa8
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfnup
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfnup \ No newline at end of file
diff --git a/Master/bin/x86_64-linux/pdfpun b/Master/bin/x86_64-linux/pdfpun
new file mode 120000
index 00000000000..911379852e2
--- /dev/null
+++ b/Master/bin/x86_64-linux/pdfpun
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pdfjam/pdfpun \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pdfjam/COPYING b/Master/texmf-dist/doc/latex/pdfjam/COPYING
new file mode 100644
index 00000000000..d60c31a97a5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdfjam/COPYING
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff --git a/Master/texmf-dist/doc/latex/pdfjam/PDFjam-README.html b/Master/texmf-dist/doc/latex/pdfjam/PDFjam-README.html
new file mode 100644
index 00000000000..7f3a44b711b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdfjam/PDFjam-README.html
@@ -0,0 +1,328 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html>
+<head>
+<title>PDFjam-README.html</title>
+<!-- pdfmerge, pdfcat, pdfrotate -->
+</head>
+
+<body>
+
+<p><em>Author</em>: David Firth, <a href="http://go.warwick.ac.uk/dfirth">http://go.warwick.ac.uk/dfirth</a></p>
+
+<p> <strong> This file is kept up to date at <a href="http://go.warwick.ac.uk/pdfjam">http://go.warwick.ac.uk/pdfjam</a>. </strong> </p>
+
+<ul>
+ <li><a href="#overview">Overview</a> </li>
+ <li><a href="#prereq">Pre-requisites</a> </li>
+ <li><a href="#documentation">Documentation</a> </li>
+ <li><a href="#download">Download</a> </li>
+ <li><a href="#install">Installation/configuration</a> </li>
+ <li><a href="#using">Using the scripts</a> </li>
+ <li><a href="#droplets">Mac OS X only: drag-and-drop</a> </li>
+ <li><a href="#faq">FAQ</a> </li>
+ <li><a href="#bugs">Reporting bugs</a> </li>
+ <li><a href="#history">Version history</a> </li>
+</ul>
+
+<p> <a name="overview"></a> </p>
+
+<h2 align="justify">Overview</h2>
+
+<p><strong>PDFjam</strong> is a small collection of shell scripts which provide a simple interface to much of the functionality of the excellent <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf" title="Link to the pdfpages manual (PDF)">pdfpages <img src="http://www2.warwick.ac.uk/brands/icons/acrobat.gif" alt="PDF file" title="PDF file" border="0" height="16" width="16" /></a> package (by Andreas Matthias) for <a href="http://www.tug.org/applications/pdftex/">pdfLaTeX</a>. </p>
+
+<p>The main script is named &quot;<strong><tt>pdfjam</tt></strong>&quot;. This is the core of the package.</p>
+
+<p>All of the other scripts provided in the PDFjam package are optional extras. They are simple wrappers for calls to <tt>pdfjam</tt>, designed to perform some common tasks such as joining or n-upping PDF files or to illustrate other features; they are not very elaborate, nor are they extensively tested. They are probably best thought of as simple templates that can be used for constructing more elaborate wrapper scripts as required. At present the wrapper scripts distributed in the PDFjam package are: </p>
+
+<ul>
+ <li> <strong><tt>pdfnup</tt></strong>, which allows one or more PDF files to be &quot;n-upped&quot; in roughly the way that <a href="http://www.tardis.ed.ac.uk/~ajcd/psutils/psnup.html"><tt>psnup</tt></a> does for PostScript files. (This was the original motivation: for files that have to be printed, or have to be made available to dozens or hundreds of other people for printing, n-up formatting saves trees!)</li>
+ <li><strong><tt>pdfpun</tt></strong>, similar to <tt>pdfnup</tt> but arranges the source pages right-to-left on the output page, ie in a format more suitable for right-to-left languages. This script works only on one file at a time. (Thanks to Ido for suggesting this.)</li>
+ <li> <strong><tt>pdfjoin</tt></strong>, which combines the pages of multiple PDF files together into a single file.</li>
+ <li> <strong><tt>pdf90</tt></strong>, <strong><tt>pdf180</tt></strong> and <strong><tt>pdf270</tt></strong> which rotate the pages of one or more PDF files.</li>
+ <li><strong><tt>pdfflip</tt></strong> which reflects the pages of one or more PDF files. (Suitable for making transparencies if you want to write on the back of them!)</li>
+ <li><strong><tt>pdfbook</tt></strong> which arranges pages into 2-up &quot;signatures&quot; (like <a href="http://www.tardis.ed.ac.uk/~ajcd/psutils/psbook.html"><tt>psbook</tt></a> does for PostScript files), suitable for binding into a book. (Many people have suggested that this would be useful &mdash; I hope it is!)</li>
+ <li><strong><tt>pdfjam-pocketmod</tt></strong> which converts 8 pages from a single PDF file into a pocket-sized booklet. (<a href="http://repocketmod.com/">Folding instructions here!</a> Thanks to Thomas Nemeth for suggesting this.)</li>
+ <li><strong><tt>pdfjam-slides6up</tt></strong> and <strong><tt>pdfjam-slides3up</tt></strong> which process PDF presentation slides to six-per-page or three-per-page for handout purposes. </li>
+</ul>
+
+<p> A potential drawback of <tt>pdfjam</tt> and other scripts based upon it is that any hyperlinks in the source PDF are lost. On the positive side, there is no appreciable degradation of image quality in processing PDF files with these programs, unlike some other indirect methods such as&nbsp; <tt>pdf2ps | psnup | ps2pdf</tt> &nbsp;(in the author's experience). </p>
+
+<p> These tools are designed for Unix-like systems, including Linux and Mac OS X. It seems that they will work also on Windows computers with a suitable installation of <a href="http://www.cygwin.com/">Cygwin</a>, but this has not been extensively tested.</p>
+
+<p> An alternative set of PDF manipulation tools, which are java-based, is provided by the <a href="http://multivalent.sourceforge.net/">Multivalent</a> project. They do much the same things as <tt>pdfjam</tt>, and quite a bit more. Hyperlinks don't seem to be preserved there either, though, when n-upping a document. </p>
+
+<p> For Mac OS X, n-up with a more visual interface is provided by <a href="http://evolve.lse.ac.uk/software/PDFNupMaker/">PDF Nup Maker</a>. Like <tt>pdfjam</tt>, this is a front end to pdflatex/pdfpages. </p>
+
+<p> The PDFjam software is made available free, under GPL version 2 (see the file named <tt>COPYING</tt> that is included with the package). It comes with ABSOLUTELY NO WARRANTY of fitness for any purpose whatever. </p>
+
+<a name="prereq"></a> <h2 align="justify">Pre-requisites</h2>
+
+<ol>
+ <li>A Unix-like operating system (Linux, Mac OS X, Solaris, etc.; possibly Cygwin)</li>
+ <li>A working, up-to-date installation of <a href="http://www.tug.org/applications/pdftex">pdfTeX</a> (including <tt>pdflatex</tt> and an up-to-date copy of <a href="http://pdftex-def.berlios.de/"><tt>pdftex.def</tt></a>)</li>
+ <li>A working installation of the LaTeX package <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages">pdfpages</a> (version 0.4f or later)</li>
+</ol>
+
+<p>Some of the options offered by <tt>pdfjam</tt> also require the LaTeX packages <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/">geometry</a> and <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/">hyperref</a>.</p>
+
+<a name="documentation"></a> <h2 align="justify">Documentation</h2>
+
+<p>The primary documentation for <tt>pdfjam</tt>, and hence for the other scripts that call it, is obtained by </p>
+
+<pre>
+ pdfjam --help
+</pre>
+<p>This gives information on the arguments to <tt>pdfjam</tt>, and the default settings that apply at your installation. In addition to the arguments that are explicitly documented there, <tt>pdfjam</tt> provides access to all of the options of the pdfpages package: that's a large number of options, and it's a set of options that might change, so users are referred to the current <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf" title="Link to the pdfpages manual (PDF)">pdfpages manual <img src="http://www2.warwick.ac.uk/brands/icons/acrobat.gif" alt="PDF file" title="PDF file" border="0" height="16" width="16" /></a> to see what's available.</p>
+
+<p>In addition, each of the scripts has a (rather basic) <tt>man</tt> page. For example,</p>
+
+<pre>
+ man pdfjam-pocketmod
+</pre>
+<p>gives information about usage and other aspects of the <tt>pdfjam-pocketmod</tt> script.</p>
+
+<a name="download"></a> <h2 align="justify">Download</h2>
+
+<p>Download the shell scripts as <a href="http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/pdfjam_2.01.tgz">pdfjam_2.01.tgz</a>. </p>
+
+<p> Eduard Bloch has kindly packaged <a href="http://packages.debian.org/unstable/text/pdfjam">PDFjam for Debian</a>. Paul Chvostek has kindly made a <a href="http://www.freebsd.org/cgi/ports.cgi?query=pdfjam">port to FreeBSD</a>. Pander has kindly provided a link to <a href="http://packages.ubuntu.com/search?keywords=pdfjam">Ubuntu packages</a>. Petr Uzel has kindly made available <a href="http://software.opensuse.org/search?baseproject=ALL&amp;p=1&amp;q=pdfjam">openSUSE packages</a>.</p>
+
+<p> For some Mac OS X droplets (based on PDFjam version 1.21), see <a href="#droplets">below</a>. </p>
+
+<p> PDFjam is a project at <a href="http://freshmeat.net/projects/pdfjam/">freshmeat</a>: please subscribe there to receive update announcements. <a name="install"></a> </p>
+
+<a name="install"></a><h2 align="justify">Installation/configuration</h2>
+
+<p>The shell scripts in the <em>bin</em> sub-directory of the package should be placed on the PATH of anyone who needs to use them.</p>
+
+<p>The man files in the <em>man1</em> sub-directory should be installed on the <tt>MANPATH</tt> of all who need to read them.</p>
+
+<p> On many unix-like systems the scripts should run without any further configuration, provided that the pre-requisite TeX installation is present. </p>
+
+<p>If configuration <em>is</em> needed, this can be done through a site-wide or user-specific configuration file. This might be necessary if, for example, your site has a non-standard TeX installation, or a non-standard location for temporary files, or a paper size that is different from the A4 international standard.</p>
+
+<p>The file <a href="pdfjam.conf" title="Sample pdfjam configuration file, plain text"><tt>pdfjam.conf</tt></a> is a sample configuration file which can be edited as needed. After editing, either install the file for site-wide use (at <tt>/etc/pdfjam.conf</tt>, <tt>/usr/share/etc/pdfjam.conf</tt>, <tt>/usr/local/share/pdfjam.conf</tt>, or <tt>/usr/local/etc/pdfjam.conf</tt>) or as a user-defaults file at <tt>~/.pdfjam.conf</tt>. User settings made at <tt>~/.pdfjam.conf</tt> override corresponding settings made in a site-wide configuration file.</p>
+
+<p>For example, if you want your own output to be on &quot;US letter&quot; size paper by default, simply put the line </p>
+
+<pre>
+ paper=letterpaper
+</pre>
+<p> in a plain text file named file <tt>.pdfnup.conf</tt> in your home directory. (The code word <tt>letterpaper</tt> is how LaTeX refers to that particular page size; for other available paper sizes, please see the output of <tt>pdfjam --help</tt>.)</p>
+
+<p>On some systems it might even be necessary to change the list of places (i.e., <tt>/etc/pdfjam.conf</tt> and others as listed above) that is searched for site-wide configuration files. This can only be done by editing the <tt>pdfjam</tt> script itself. To see which directories on <em>your</em> system are searched for a file named <tt>pdfjam.conf</tt>, use </p>
+
+<pre>
+ pdfjam --configpath
+</pre>
+<a name="using"></a> <h2 align="justify">Using the scripts</h2>
+
+<p>For a full overview of what <tt>pdfjam</tt> can do, the importance of the <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf" title="Link to the pdfpages manual (PDF)">pdfpages manual <img src="http://www2.warwick.ac.uk/brands/icons/acrobat.gif" alt="PDF file" title="PDF file" border="0" height="16" width="16" /></a> cannot be stressed enough! The following examples merely serve as a brief introduction.</p>
+
+<h3 align="justify">Example 1</h3>
+
+<p>Consider converting each of two documents to a side-by-side &quot;2-up&quot; format. Since we want the two documents to be processed separately, we'll use the <tt>--batch</tt> option: </p>
+
+<pre>
+ pdfjam --batch --nup 2x1 --suffix 2up --landscape --outfile . file1.pdf file2.pdf
+</pre>
+<p> This will produce new files <tt>file1-2up.pdf</tt> and <tt>file2-2up.pdf</tt> in the current working directory. The above call could be shortened a bit, by using <tt>pdfnup</tt>, to</p>
+
+<pre>
+ pdfnup --batch --suffix 2up file1.pdf file2.pdf
+</pre>
+<p> In a 'vanilla' installation of <tt>pdfjam</tt>, the default for <tt>--outfile</tt> is the current working directory.</p>
+
+<h3 align="justify">Example 2</h3>
+
+<p>Suppose we want a single new document which puts together selected pages from two different files: </p>
+
+<pre>
+ pdfjam file1.pdf '{},2-' file2.pdf '10,3-6' --outfile ../myNewFile.pdf
+</pre>
+<p>The new file <tt>myNewFile.pdf</tt>, in the parent directory of the current one, contains an empty page, followed by all pages of <tt>file1.pdf</tt> except the first, followed by pages 10, 3, 4, 5 and 6 from <tt>file2.pdf</tt>. </p>
+
+<p> The resulting PDF page size will be whatever is the default paper size for you at your site. If instead you want to preserve the page size of (the first included page from) <tt>file1.pdf</tt>, use the option <tt>--fitpaper true</tt>: this is the default action of the <tt>pdfjoin</tt> convenience script. </p>
+
+<p>(All pages in an output file from <tt>pdfjam</tt> will have the same size and orientation: for joining together PDF files while preserving different page sizes and orientations, <tt>pdfjam</tt> is not the tool to use; and since <tt>pdfjoin</tt> simply calls <tt>pdfjam</tt>, the same comment applies also to <tt>pdfjoin</tt>. I'm told that if you have <a href="http://pages.cs.wisc.edu/~ghost/">Ghostscript</a> installed, something along these lines might more nicely join files with different page sizes and orientations: </p>
+
+<pre>
+ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
+</pre>
+<p>But I haven't tried it.)</p>
+
+<h3 align="justify">Example 3</h3>
+
+<p>To make a portrait-oriented 4-up file from the pages of three input files, with a thin-line frame around the input pages,</p>
+
+<pre>
+ pdfjam file1.pdf file2.pdf file3.pdf --no-landscape --frame true --nup 2x2 \
+ --suffix 4up --outfile ~/Documents
+</pre>
+<p>Here a <em>directory</em> was specified at <tt>--outfile</tt>: the resultant file in this case will be ~/Documents/file3-4up.pdf. (Note that <strong>if there's a writeable file with that name already, it will be overwritten</strong>: no check is made, and no warning given.)</p>
+
+<h3 align="justify">Example 4</h3>
+
+<p>Suppose we have a document made up of &quot;US letter&quot; size pages, and we want to convert it to A4:</p>
+
+<pre>
+ pdfjam 'my US letter file.pdf' --a4paper --outfile 'my A4 file.pdf'
+</pre>
+<h3 align="justify">Example 5</h3>
+
+<p>A useful application of <tt>pdfjam</tt> is for producing a handout from a file of presentation slides. For slides made with the standard 4:3 aspect ratio a nice 6-up handout on A4 paper can be made by </p>
+
+<pre>
+ pdfjam --nup 2x3 --frame true --noautoscale false --delta &quot;0.2cm 0.3cm&quot; \
+ --scale 0.95 myslides.pdf --outfile myhandout.pdf
+</pre>
+<p>The <tt>--delta</tt> option here comes from the pdfpages package; the <tt>--scale</tt> option is passed to LaTeX's <tt>\includegraphics</tt> command. </p>
+
+<p>The two wrapper scripts <tt>pdfjam-slides6up</tt> and <tt>pdfjam-slides3up</tt> are provided in order to make this particular application of <tt>pdfjam</tt> easy: for example, </p>
+
+<pre>
+ pdfjam-slides3up --pagenumbering true --batch slides1.pdf slides2.pdf
+</pre>
+<p>makes a pair of 3-up handouts <tt>slides1-3up.pdf</tt> and <tt>slides2-3up.pdf</tt>, with space for side-notes and with the handout pages numbered.</p>
+
+<p>(Slides made by LaTeX's <em>beamer</em> package, using the <tt>handout</tt> class option, work especially nicely with this!)</p>
+
+<h3 align="justify">Example 6</h3>
+
+<p> Suppose we want to trim the pages of our input file prior to n-upping. This can be done by using a pipe: </p>
+
+<pre>
+ pdfjam myfile.pdf --trim '1cm 2cm 1cm 2cm' --clip true --outfile /dev/stdout | \
+ pdfnup --frame true --outfile myoutput.pdf
+</pre>
+<p>The <tt>--trim</tt> option specifies an amount to trim from the left, bottom, right and top sides respectively; to work as intended here it needs also <tt>--clip true</tt>. These (i.e., <tt>trim</tt> and <tt>clip</tt>) are in fact options to LaTeX's <tt>\includegraphics</tt> command (in the standard <em>graphics</em> package).</p>
+
+<p>(Thanks to Christophe Lange and Christian Lohmaier for suggesting an example on this.)</p>
+
+<h3 align="justify">Example 7</h3>
+
+<p>To offset the content of double-sided printed pages so that they are suitable for binding with a <a href="http://de.wikipedia.org/wiki/Heftstreifen">Heftstreifen</a>, use the <tt>--twoside</tt> option:</p>
+
+<pre>
+ pdfjam --twoside myfile.pdf --offset '1cm 0cm' --suffix 'offset'
+</pre>
+<h3 align="justify">Example 8</h3>
+
+<p> To use PDF input files whose names do not end in &quot;<tt>.pdf</tt>&quot;, you will need to use the <tt>--checkfiles</tt> option. This depends on the availability of the <tt>file</tt> utility, with support for the options <tt>-Lb</tt>; this can be checked by trying </p>
+
+<pre>
+ file -Lb 'my PDF file'
+</pre>
+<p> where <tt>'my PDF file'</tt> is the name of a PDF file on your system. The result should be something like &quot;<tt>PDF document, version 1.4</tt>&quot; (possibly with a different version number).</p>
+
+<p> With &quot;<tt>file -Lb</tt>&quot; available, we can use PDF files whose names lack the usual &quot;<tt>.pdf</tt>&quot; extension. For example, </p>
+
+<pre>
+ pdfnup --checkfiles 'my PDF file'
+</pre>
+<p>should result in a file named &quot;<tt>my PDF file-nup.pdf</tt>&quot; in the current working directory.</p>
+
+<h3 align="justify">Example 9</h3>
+
+<p> Please feel free to suggest other examples that might help people! (For the email address, see <a href="#bugs">reporting bugs</a>)</p>
+
+<a name="droplets"></a> <h2 align="justify">Mac OS X only: drag-and-drop</h2>
+
+<p>Under <strong>Mac OS X</strong>, <a href="http://www.wsanchez.net/software/">DropScript</a> has been used to make some simple drag-and-drop applications. Some sample droplets are provided in <a href="http://www.warwick.ac.uk/go/pdfjam/pdfdroplets_1.21.dmg">pdfdroplets_1.21.dmg</a>: these may be all you'll need! The sample droplets look like this: </p>
+
+<center> <img src="pdfdroplets.png" border="0" /> </center>
+<p> These droplets assume that your pdflatex is at <tt>/usr/texbin/pdflatex</tt>. If pdflatex lives somewhere else on your system, the droplets won't work until you include in your home directory a file named <tt>.pdfnup.conf</tt> (or there is a system-wide file <tt>pdfnup.conf</tt> at one of the four locations listed above), containing the line </p>
+
+<pre>
+pdflatex=/path/to/pdflatex
+</pre>
+<p>where <tt> /path/to/pdflatex </tt> is the answer you get when you type <tt> which pdflatex </tt> in the Terminal. (If you get no answer, chances are that you do not have <tt>pdflatex</tt> installed on your Mac; if you need to install it, you could just download and install <a href="http://www.tug.org/mactex">MacTeX</a> or one of its slimmed-down variants.) </p>
+
+<a name="faq"></a> <h2 align="justify">FAQ</h2>
+
+<p> <strong>1. Why &quot;PDFjam&quot;?</strong><br />
+ Because it's for PDF files, and jam is what I like best on my toast (well, second best after marmalade, anyway). </p>
+
+<p> <strong>2. The thing runs but the output doesn't look the way it should. Why?</strong><br />
+ Most likely either your pdfTeX or your pdfpages installation is an old version. (Check also that <tt>pdftex.def</tt>, to be found in in <tt>.../texmf/tex/latex/graphics/</tt>, is up to date.) If the problem persists even with up-to-date versions of pdfTeX, <tt>pdftex.def</tt> and pdfpages, then please do report it. </p>
+
+<a name="bugs"></a> <h2 align="justify">Reporting bugs</h2>
+
+<p>Please report any bugs found in these scripts, to d.firth (at warwick.ac.uk).</p>
+
+<a name="history"></a> <h2 align="justify">Version history</h2>
+
+<p> <strong>2.01</strong>: fixed a silly bug (thoughtless use of &quot;<tt>test -a</tt>&quot; in a couple of places) which seriously affected portability. [2010-04-13] </p>
+
+<hr color="grey" />
+<p> <strong>2.00</strong>: a <strong>major re-design</strong>. This is not completely backward-compatible with previous versions of the <tt>pdfnup</tt>, <tt>pdfjoin</tt> and <tt>pdf90</tt> scripts. The differences in interface are few, though, and the main ones are listed below. </p>
+
+<p>The main changes are:</p>
+
+<ul>
+ <li> The new script <tt>pdfjam</tt> now does all the work; all the other scripts included with the package are just simple wrappers for <tt>pdfjam</tt>. </li>
+ <li> <tt>pdfjam</tt> makes available essentially <em>all</em> of the facilities of the pdfpages package (without having to know what they are). </li>
+ <li> Various security and portability issues have been resolved. (None of the scripts now calls for <tt>/bin/bash</tt>; and the handling of temporary files is now much safer.) </li>
+ <li> <tt>pdfjam</tt> can take PDF input from <tt>/dev/stdin</tt>, and send output to <tt>/dev/stdout</tt>. (This allows <tt>pdfjam</tt> to be used in a pipeline.) </li>
+ <li> If the <tt>--outfile</tt> option specifies a relative path, that path is now relative to the <em>current working directory</em> (as is normally expected of unix utilities). <strong>This is different behaviour from previous versions.</strong> </li>
+ <li> With multiple input files, <tt>pdfjam</tt> offers two distinct methods of processing. The default is to take pages as specified from the input files, and combine them into a single document. If the <tt>--batch</tt> option is used, <tt>pdfjam</tt> operates <em>separately</em> on the input files, producing one output file per input file. <strong>This is different behaviour from previous versions.</strong> </li>
+ <li> Page selection is available separately for each input file. A <strong>difference from previous versions</strong> is that the <tt>--pages</tt> keyword is no longer used. </li>
+ <li><tt>pdfjam</tt> uses the <tt>\includepdfmerge</tt> command from <em>pdfpages</em>, as a result of which all pages in an output file have the same size and orientation. <strong>This is different behaviour from previous versions.</strong> </li>
+ <li> Output page orientation is now controlled by using <tt>--landscape</tt> (negated, if necessary, by <tt>--no-landscape</tt>). The previous <tt>--orient</tt> option is no longer used, and in particular &quot;<tt>--orient auto</tt>&quot; is no longer available. <strong>This is different behaviour from previous versions.</strong> </li>
+ <li> Other new features include:
+ <ul>
+ <li> <tt>--keepinfo</tt> option, to allow preservation of PDF document information, if the <tt>pdfinfo</tt> utility and the LaTeX <tt>hyperref</tt> package are available (thanks to Robert Wenner for suggesting this); </li>
+ <li> <tt>--pdftitle</tt>, <tt>--pdfauthor</tt>, <tt>--pdfsubject</tt> and <tt>--pdfkeywords</tt> options, to specify new PDF document information (these require the LaTeX <tt>hyperref</tt> package); </li>
+ <li> many more &quot;named&quot; output page sizes are available if the LaTeX <tt>geometry</tt> package is installed (the full list of allowed paper specifications is: <tt>a0paper, a1paper, a2paper, a3paper, a4paper, a5paper, a6paper b0paper, b1paper, b2paper, b3paper, b4paper, b5paper, b6paper letterpaper, executivepaper, legalpaper</tt>;&nbsp; thanks to Corn&eacute; Verbruggen and Mel Irizarry for suggesting this) and non-standard page sizes can also be defined; </li>
+ <li> <tt>--checkfiles</tt> option to request that input files be checked using the <tt>file</tt> utility, rather than requiring the file name to end in &quot;<tt>.pdf</tt>&quot; or &quot;<tt>.PDF</tt>&quot;; </li>
+ <li> <tt>--twoside</tt> option, to allow the LaTeX <em>twoside</em> class option to be specified (thanks to Johannes Reinhard for suggesting this); </li>
+ <li> <tt>--pagecolor</tt> option, to allow the background colour of output pages to be changed (thanks to James Fisher for suggesting this); </li>
+ <li> <tt>--vanilla</tt> option to run <tt>pdfjam</tt> without reading site-wide or user configuration files. </li>
+ </ul>
+
+ </li>
+</ul>
+
+<p> In addition, various reported bugs have been fixed &mdash; many thanks to all those kind people who reported them (too numerous to list here!) [2010-03-14]</p>
+
+<hr color="grey" />
+<p> <strong>1.21</strong>: bug fixes, including security issues (many thanks to Eduard Bloch, Robert Buchholz and Martin Vaeth for helpful reports on vulnerabilities and for kindly contributing patches); the scripts now call for <tt>/bin/bash</tt> as interpreter; availability of <tt>mktemp</tt> is now also assumed; the Mac OS X droplets now look for <tt>pdflatex</tt> at (by default) <tt>/usr/texbin/pdflatex</tt> [2009-01-19]</p>
+
+<p> <strong>1.20</strong>: added minimal man pages; added extra possible locations for the site-wide configuration file [2005-01-25] </p>
+
+<p> <strong>1.11</strong>: added the <tt>--scale</tt> option to pdfnup, which allows page margins either to be enlarged (e.g,. <tt>--scale 0.9</tt>) or reduced (e.g,. <tt>--scale 1.1</tt>) by scaling the page contents. By popular request! [2004-10-13] </p>
+
+<p> <strong>1.10</strong>: output files now appear by default in same directory as input, rather than in the current working directory; fixed a bug that caused the scripts not to work on some versions of Solaris (thanks to Daniel Gebhart); major improvements to the Mac OS X sample droplets. [2004-06-24] </p>
+
+<p> <strong>1.03</strong>: minor changes towards POSIX compliance. [2004-05-09] </p>
+
+<p> <strong>1.02</strong>: added a COPYING file to the package. [2004-05-08] </p>
+
+<p> <strong>1.00</strong>: package re-named PDFjam. [2004-05-07] </p>
+
+<p> <strong>0.99a</strong>: a minor change to the output of <tt>pdfnup --help</tt> and <tt>pdfjoin --help</tt> [2004-05-06] </p>
+
+<p> <strong>0.99</strong>: various improvements to pdfnup, including the handling of multiple PDF input files. Added pdfjoin and pdf90. [2004-05-05] </p>
+
+<p> <strong>0.97</strong>: corrections to the output of <tt>pdfnup --help</tt> [2004-04-23] </p>
+
+<p> <strong>0.96</strong>: minor changes to comments in the pdfnup script [2004-02-12] </p>
+
+<p> <strong>0.95</strong>: added the possibility of site-specific and user-specific configuration files (thanks to Jason Lewis for suggesting this) [2004-01-28] </p>
+
+<p> <strong>0.9</strong>: added <tt>--openright</tt> (thanks to Jason Lewis for suggesting this) [2004-01-28] </p>
+
+<p> <strong>0.8</strong>: added <tt>pdfnup --help</tt> facility (thanks to Wilfrid Kendall for this suggestion) [2003-09-12] </p>
+
+<p> <strong>0.7</strong>: paths involving spaces now permitted; page trimming added (thanks to Alex Montgomery for suggesting that); default output filename now has a dash inserted before the &quot;nup&quot; label (as in <tt> wasteful-2x2.pdf </tt>); sample Mac OS X droplets provided [2003-01-26] </p>
+
+<p> <strong>0.6</strong>: use of paths involving spaces now reports an error [2002-08-22] </p>
+
+<p> <strong>0.5</strong>: fixed a bug which caused incompatibility with some types of unix [2002-06-24] </p>
+
+<p> <strong>0.4</strong>: better error trapping, improved portability [2002-04-30] </p>
+
+<p> <strong>0.3</strong>: first public release of pdfnup [2002-04-04] </p>
+
+
+</body> </html> \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pdfjam/VERSION b/Master/texmf-dist/doc/latex/pdfjam/VERSION
new file mode 100644
index 00000000000..d507853e573
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdfjam/VERSION
@@ -0,0 +1 @@
+This is PDFjam 2.01 \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pdfjam/pdfdroplets.png b/Master/texmf-dist/doc/latex/pdfjam/pdfdroplets.png
new file mode 100644
index 00000000000..850e5802ac6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdfjam/pdfdroplets.png
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/pdfjam/pdfjam.conf b/Master/texmf-dist/doc/latex/pdfjam/pdfjam.conf
new file mode 100644
index 00000000000..dbebf73ce67
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdfjam/pdfjam.conf
@@ -0,0 +1,91 @@
+###############################################################
+##
+## This is a sample 'pdfjam.conf' file.
+##
+## Edit lines below (and un-comment them as necessary) to
+## override settings made in the 'pdfjam' script itself.
+## (As distributed, the settings made in this file are the
+## same as those made in the 'pdfjam' script.)
+##
+## A file in this format can be used site-wide (as a file named
+## "pdfjam.conf", in an appropriate location), or for a specific
+## user (as "~/.pdfjam.conf"). User-specific settings override
+## any site-wide settings.
+##
+## See 'pdfjam --help' for details, including where to put
+## this file; or see the file PDFjam-README.html.
+##
+###############################################################
+##
+## UNUSUAL TEX INSTALLATION?
+##
+## Specify the location of the 'pdflatex' to be used:
+# pdflatex='/usr/bin/pdflatex' ## typical unix installation
+# pdflatex='/usr/texbin/pdflatex' ## for MacTeX on Mac OS X
+# pdflatex='C:/texmf/miktex/bin/pdflatex.exe' ## Windows??
+##
+###############################################################
+##
+## TEMPORARY FILES
+##
+## Specify the location for temporary files written by pdfjam:
+tempfileDir='/var/tmp' ## fairly standard on many unix systems
+# tempfileDir='C:/tmp' ## use something like this under Cygwin?
+##
+## Should temporary files be deleted immediately by default?
+tidy='true' ## overridden by '--no-tidy' in the call
+# tidy='false' ## the alternative
+##
+###############################################################
+##
+## USE OF THE 'PDFINFO' UTILITY
+##
+## Specify whether pdfjam should, by default, try to run 'pdfinfo'
+## to preserve source document information in the output:
+keepinfo='false' ## overridden by '--keepinfo' in the call
+# keepinfo='true' ## the alternative
+##
+## Specify the 'pdfinfo' program to be used (if any):
+# pdfinfo='/usr/bin/pdfinfo' ## typical unix system
+# pdfinfo='/opt/local/bin/pdfinfo' ## Mac OS X with MacPorts
+##
+###############################################################
+##
+## USE OF 'file -Lb MYFILE' TO CHECK WHETHER A FILE IS A PDF FILE
+##
+## Should the '--checkfiles' option be used by default?
+checkfiles='false' ## overridden by '--checkfiles' in the call;
+# checkfiles='true' ## the alternative
+##
+###############################################################
+##
+## DEFAULT PAPER SIZE
+##
+## Set the default paper size to be used:
+paper='a4paper' ## for ISO A4 paper
+# paper='letterpaper' ## for 'US letter' paper
+##
+###############################################################
+##
+## DEFAULT PATH FOR THE --outfile OPTION
+##
+outFile="$pwd" ## the obvious default
+# outFile="$HOME/Documents" ## another possibility, perhaps
+# outFile=/dev/stdout ## for easy pipes
+##
+###############################################################
+##
+## OTHER DEFAULTS
+##
+## Defaults for some other options:
+##
+suffix='pdfjam' ## overridden by '--suffix MYSUFFIX' in the call
+##
+landscape='false' ## overridden by '--landscape' in the call
+# landscape='true' ## the alternative
+##
+twoside='false' ## overridden by '--twoside' in the call
+# twoside='true' ## the alternative
+##
+###############################################################
+## END OF FILE: that's all you can configure here!
diff --git a/Master/texmf-dist/scripts/pdfjam/pdf180 b/Master/texmf-dist/scripts/pdfjam/pdf180
new file mode 100755
index 00000000000..a9f4b7a250d
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdf180
@@ -0,0 +1,11 @@
+#!/bin/sh
+##
+## pdf180: A shell program to rotate pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix rotated180 --angle 180 --fitpaper true "$@"
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdf270 b/Master/texmf-dist/scripts/pdfjam/pdf270
new file mode 100755
index 00000000000..bca6c57b02b
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdf270
@@ -0,0 +1,11 @@
+#!/bin/sh
+##
+## pdf270: A shell program to rotate pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix rotated270 --angle 270 --fitpaper true --rotateoversize true "$@"
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdf90 b/Master/texmf-dist/scripts/pdfjam/pdf90
new file mode 100755
index 00000000000..ac38aa490f3
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdf90
@@ -0,0 +1,11 @@
+#!/bin/sh
+##
+## pdf90: A shell program to rotate pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix rotated90 --angle 90 --fitpaper true --rotateoversize true "$@"
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfbook b/Master/texmf-dist/scripts/pdfjam/pdfbook
new file mode 100755
index 00000000000..8d032d3a351
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfbook
@@ -0,0 +1,19 @@
+#!/bin/sh
+##
+## pdfbook: Rearrange pages of one or more PDF files into 2-up signatures
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+case "${1}" in
+ --right-edge-binding)
+ shift ;
+ pdfjam --suffix book --signature* 4 --landscape "$@" ;;
+ *)
+ pdfjam --suffix book --signature 4 --landscape "$@" ;;
+esac
+
+
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfflip b/Master/texmf-dist/scripts/pdfjam/pdfflip
new file mode 100755
index 00000000000..125c4adea9c
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfflip
@@ -0,0 +1,9 @@
+#!/bin/sh
+##
+## pdfflip: A shell program to "flip over" the pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+pdfjam --suffix flipped --reflect true --fitpaper true "$@"
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjam b/Master/texmf-dist/scripts/pdfjam/pdfjam
new file mode 100755
index 00000000000..52641909681
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfjam
@@ -0,0 +1,1202 @@
+#! /bin/sh
+version=2.01
+#########################################################################
+## ##
+## pdfjam: A shell-script interface to the "pdfpages" LaTeX package ##
+## ------ ##
+## ##
+## Author: David Firth (http://go.warwick.ac.uk/dfirth) ##
+## ##
+## Usage: see http://go.warwick.ac.uk/pdfjam or "pdfjam --help" ##
+## ##
+## Relies on: ##
+## -- pdflatex ##
+## -- the 'pdfpages' package for LaTeX (ideally version >= 0.4f) ##
+## ##
+## License: GPL version 2 or later. This software comes with ##
+## ABSOLUTELY NO WARRANTY of fitness for any purpose at all; if you ##
+## do not accept that, then you must not use it. ##
+## ##
+## The path searched for site-wide configuration files can be set ##
+## through the following variable: ##
+## ##
+ configpath='/etc:/usr/share/etc:/usr/local/share:/usr/local/etc' ##
+## ##
+## ##
+#########################################################################
+##
+## PRELIMINARIES
+##
+## First determine:
+## --- whether verbose commentary should be provided (not if --quiet
+# or --configpath was specified);
+## --- whether this call to pdfjam is a "batch" call;
+## --- whether just the help text is required;
+## --- or whether all configuration files should be ignored.
+##
+verbose=true
+for arg in "$@"; do
+ case "$arg" in
+ --quiet | -q | --configpath)
+ verbose=false ;
+ ;;
+ --batch)
+ batch=true ;
+ ;;
+ --help | -u | -h)
+ help=true ;
+ ;;
+ --vanilla)
+ vanilla=true ;
+ ;;
+ *)
+ ;;
+ esac
+done
+##
+## Check to see whether this is a "secondary" call to pdfjam:
+##
+if test "$PDFJAM_CALL_NUMBER" = "" ## not a secondary call
+then
+ PDFJAM_CALL_NUMBER=0
+fi
+##
+## Keep a copy of the internal file separator, so we can change it safely
+##
+OIFS="$IFS"
+##
+## Record the full filename of the current working diractory
+##
+pwd=`pwd`
+##
+## Trap interrupts so that they kill everything:
+##
+trap 'IFS=$OIFS; exit 1' 1 2 9 15
+##
+## The following will be useful for readability of the script:
+##
+newline='
+'
+##
+## Define a function to escape tricky characters in file names etc:
+##
+escape_chars () {
+ ## use 'printf "%q" if available
+# (printf "%q" "${1}") ||
+ (printf "%s" "${1}" | sed 's/[^a-zA-Z0-9._/\-]/\\&/g')
+}
+##
+## Define a function to output verbose comments:
+##
+prattle () { ## second argument here is non-null for continuation lines
+ if test $verbose = true; then
+ prefix1=" pdfjam:" ;
+ prefix2=`printf "%s" "$prefix1" | sed 's/pdfjam:/ /'` ;
+ indent="" ;
+ if test "$PDFJAM_CALL_NUMBER" -gt 0 &&
+ test "$batch" != true
+ then
+ indent=" "
+ fi
+ IFS="$newline" ;
+ lineCounter=0 ;
+ for line in ${1}
+ do
+ lineCounter=`expr $lineCounter + 1` ;
+ if test $lineCounter -eq 1 && test ! -n "${2}" ;
+ then
+ if test -e "$PDFJAM_MESSAGES_FILE"
+ then printf "$prefix1$indent %b\n" "$line" 1>/dev/null >> \
+ "$PDFJAM_MESSAGES_FILE"
+ else messages="$messages$prefix1$indent $line$newline"
+ ## msg file not made yet
+ fi
+ else
+ if test -e "$PDFJAM_MESSAGES_FILE"
+ then printf "$prefix2$indent %b\n" "$line" 1>/dev/null >> \
+ "$PDFJAM_MESSAGES_FILE"
+ else messages="$messages$prefix2$indent $line$newline"
+ ## msg file not made yet
+ fi
+ fi ;
+ done ;
+ IFS="$OIFS" ;
+ fi ;
+ return ;
+}
+##
+## And here's the first piece of verbose commentary:
+##
+prattle "----" 1
+prattle "This is pdfjam version ${version}."
+##
+#########################################################################
+##
+## CONFIGURATION
+##
+## THESE SETTINGS WILL BE OVER-RIDDEN by any found in configuration
+## files. By default such files are found at any or all of
+## /etc/pdfjam.conf
+## /usr/share/etc/pdfjam.conf
+## /usr/local/share/pdfjam.conf
+## /usr/local/etc/pdfjam.conf
+## ~/.pdfjam.conf
+## (And they are read in that order; if a setting is made more than
+## once, the last one prevails.)
+##
+## An example configuration file can be found at
+## http://go.warwick.ac.uk/pdfjam
+##
+## The path searched for site-wide configuration files can be changed
+## by editing the variable 'configpath' at the top of this file.
+##
+##
+## First check whether 'pdflatex' is in the user's path:
+##
+pdflatex=pdflatex
+(hash pdflatex >/dev/null 2>&1) || pdflatex="not found"
+##
+##
+## Likewise for the pdfinfo utility (only needed for `--keepinfo'):
+##
+pdfinfo='pdfinfo'
+(hash pdfinfo >/dev/null 2>&1) || pdfinfo="not found"
+##
+##
+## Next a permitted location for temporary files on your system:
+##
+tempfileDir='/var/tmp' ## /var/tmp is standard on most unix systems
+##
+##
+## Default for the output file location:
+##
+outFile="$pwd" ## Output to the current working directory
+##
+##
+## A few more default settings for pdfjam:
+##
+tidy='true' ## Delete all temporary files at the end
+##
+keepinfo='false' ## Don't try to preserve "pdfinfo" data
+##
+checkfiles='false' ## Don't use the Unix 'file -Lb' utility to
+## identify PDF files from their contents;
+## rely on the .pdf or .PDF extension instead.
+##
+suffix='pdfjam' ## Default filename suffix to be used when
+## --outfile is either (a) a directory, or (b)
+## not specified in a --batch call.
+##
+paper='a4paper' ## Default paper size is ISO A4.
+##
+## END OF SETTINGS MADE DIRECTLY WITHIN THE SCRIPT
+##
+## Now read the site's or user's configuration file(s) if such exist,
+## unless '--vanilla' was specified.
+##
+if test "$vanilla" != true
+then
+ if test "$PDFJAM_CALL_NUMBER" = 0 ## not a secondary call to pdfjam
+ then
+ configFiles=`printf "%s" "$configpath" | \
+ sed 's/:/\/pdfjam.conf:/g; s/$/\/pdfjam.conf/'`
+ configFiles="${configFiles}:$HOME/.pdfjam.conf"
+ PDFJAM_CONFIG=""
+ prattle "Reading any site-wide or user-specific defaults..."
+ IFS=':'
+ for d in $configFiles
+ do
+ if test -f "$d"; then
+ change=`sed '/^ *#.*/d ; s/ *#.*//; s/^ *//' "$d"`
+ comment="## ${newline}## From ${d}: ${newline}##"
+ PDFJAM_CONFIG="$PDFJAM_CONFIG$comment$newline$change$newline"
+ fi
+ done
+ IFS="$OIFS"
+ PDFJAM_CONFIG=`printf "%s" "$PDFJAM_CONFIG" | sed 's/^/ /'`
+ if test "$batch" = true ; then export PDFJAM_CONFIG ; fi
+ if test "$PDFJAM_CONFIG" = ""
+ then
+ prattle "(none found)" 1
+ else
+ prattle "$PDFJAM_CONFIG" 1
+ fi
+ fi
+ if test -n "$PDFJAM_CONFIG" ; then eval "$PDFJAM_CONFIG" ; fi
+else
+ if test $PDFJAM_CALL_NUMBER -eq 0
+ then
+ prattle "Called with '--vanilla': no user or site configuration"
+ prattle "files will be read." 1
+ fi
+fi
+##
+## END OF CONFIGURATION BLOCK
+##
+#########################################################################
+##
+## HELP TEXT
+##
+## Defines the output of 'pdfjam --help'
+##
+helptext="
+pdfjam is a shell-script front end to the LaTeX 'pdfpages' package (for
+which, see http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages).
+
+Usage: pdfjam [OPTIONS] [--] [FILE1 [SEL1]] [FILE2 [SEL2]]...
+where
+* 'FILE1' etc. are PDF files. For input from /dev/stdin, use the special name
+ '/dev/stdin' in place of any of FILE1, FILE2, etc: this can be mixed with
+ 'real' files as needed, to allow PDF data to be input through a pipe (note
+ that if /dev/stdin is connected to tty, an error results). If 'FILE1' is
+ absent, pdfjam will use '/dev/stdin' (and will use '-' for the page
+ selection -- see next item).
+* 'SEL1' is a page selection for FILE1, etc.
+ To select all pages (the default) use '-'. See the pdfpages manual for
+ more details. An example:
+ ... file1 '{},2,4-5,9-' ...
+ makes an empty page, followed by pages 2,4,5,6 of file1, followed by pages
+ 9 onwards (up to the end of file1).
+ A page selection can be applied to more than one file, e.g.,
+ ... file1 file2 file3 1-7 ...
+ applies page selection '1-7' to all three files; but for example
+ ... file1 file2 2- file3 1-7 ...
+ would apply the page selection '2-' to file1 and file2, and '1-7'
+ to file3. A page selection applies to all the files *immediately*
+ preceding it in the argument list. A missing page selection defaults to
+ '-'; this includes the case where 'FILE1' is absent and so /dev/stdin gets
+ used by default.
+* 'options' are pdfpages specifications in the form '--KEY VALUE' (see
+ below), or
+ --help (or -h, or -u)
+ Output this text only; no processing of PDF files.
+ --configpath
+ Output the 'configpath' variable and exit immediately; no
+ processing of PDF files.
+ --quiet (or -q)
+ Suppress verbose commentary on progress.
+ --batch
+ Run pdfjam sequentially on each input file in turn, and
+ produce a separate output file for each input, rather
+ than the default behaviour (which is a single run of
+ pdfjam on all of the input files, producing a single
+ output document). For the location of output
+ files, see '--outfile'. The --batch option cannot be
+ used in the case of input fron stdin.
+ --outfile PATH (or -o PATH)
+ Specifies where the output file(s) will go. If PATH is an
+ existing directory, pdfjam will attempt to write its
+ output PDF file(s) there, with name(s) derived from the
+ input file name(s) and the --suffix option (see below).
+ Otherwise the output file will be PATH. If '/dev/stdin'
+ is the only or last input file, PATH cannot be a directory.
+ Your current default PATH for output is:
+ $outFile
+ --suffix STRING
+ Specifies a suffix for output file names, to be used when
+ --outfile is either (a) a directory, or
+ (b) not specified in a --batch call.
+ A good STRING should be descriptive: for example,
+ --suffix 'rotated'
+ would append the text '-rotated' to the name of the input
+ file in order to make the output file name, as in
+ 'myfile-rotated.pdf'. The STRING must not have zero
+ length.
+ [Default for you at this site: suffix=$suffix]
+ --checkfiles
+ --no-checkfiles
+ If the Unix 'file' utility is available, with options
+ -L and -b, the output of 'file -Lb FILE1' should be
+ 'PDF document...' where '...' gives version information.
+ If this is the case on your system you should use
+ '--checkfiles'; otherwise use '--no-checkfiles',
+ in which case all input PDF files must have .pdf or .PDF
+ as their name extension.
+ [Default for you at this site: checkfiles=$checkfiles]
+ --preamble STRING
+ Append the supplied STRING to the preamble of the LaTeX
+ source file(s), immediately before the '\begin{document}'
+ line. An example:
+ pdfjam --nup 2x2 myfile.pdf -o myfile-4up.pdf \\
+ --preamble '\usepackage{fancyhdr} \pagestyle{fancy}'
+ The --preamble option can be used, for example, to load LaTeX
+ packages and/or to set global options.
+ --keepinfo
+ --no-keepinfo
+ Preserve (or not) Title, Author, Subject and Keywords
+ (from the last input PDF file, if more than one) in the
+ output PDF file. This requires the pdfinfo utility, from
+ the xpdf package, and the LaTeX 'hyperref' package; if
+ either of those is not available, '--keepinfo' is ignored.
+ [Default for you at this site: keepinfo=$keepinfo]
+ --pdftitle STRING
+ --pdfauthor STRING
+ --pdfsubject STRING
+ --pdfkeywords STRING
+ Provide text for the Title, Author, Subject and Keywords
+ in the output PDF file. Requires the LaTeX 'hyperref'
+ package. These options, individually, over-ride --keepinfo.
+ --landscape
+ --no-landscape
+ Specify landscape page orientation (or not) in the
+ output PDF file.
+ [Default for you at this site: landscape=$landscape]
+ --twoside
+ --no-twoside
+ Specify (or not) the 'twoside' document class option.
+ [Default for you at this site: twoside=$twoside]
+ --paper PAPERSPEC (or simply --PAPERSPEC)
+ Specify a LaTeX paper size, for example
+ '--paper a4paper' or simply '--a4paper' for ISO A4 paper.
+ If the LaTeX 'geometry' package is installed, a wider range
+ of paper sizes is available. For details see documentation
+ for LaTeX and/or the 'geometry' package.
+ [Default for you at this site: paper=$paper]
+ --papersize '{WIDTH,HEIGHT}'
+ Specify a custom paper size, e.g.,
+ --papersize '{10in,18cm}'
+ (Note the braces, and the comma!)
+ If the 'geometry' package is not found, this has no effect.
+ --pagecolor RGBSPEC
+ Specify a background colour for the output pages. The
+ RGBSPEC must be a comma-separated trio of integers
+ between 0 and 255. An example:
+ --pagecolor 150,200,150
+ [Default is no background colour]
+ --tidy
+ --no-tidy
+ Specify whether the temporary directory created by
+ pdfjam should be deleted. Use '--no-tidy' to help debug
+ most errors.
+ [Default for you at this site: tidy=$tidy]
+ --vanilla
+ Suppress the reading of any site-wide or user-specific
+ configuration files.
+ --KEY VALUE
+ Specify options to '\includepdfmerge', in the LaTeX
+ 'pdfpages' package. Here KEY is the name of any of the
+ many options for '\includepdfmerge', and VALUE is a
+ corresponding value. Examples are
+ --nup 2x1 (for 2-up side-by-side imposition)
+ --scale 0.7 (to scale all input pages to 70% size)
+ --offset '1cm 0.5cm'
+ (to offset all pages -- note the quotes!)
+ --frame true (to put a frame round each input page)
+ --trim '1cm 2cm 1cm 2cm' --clip true
+ (to trim those amounts from left, bottom,
+ right and top, respectively, of input
+ pages)
+ etc., etc. For more information see the manual for
+ the 'pdfpages' package, at
+ http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages
+* '--' can be used to signal that there are no more options to come.
+
+Defaults for the options '--suffix', '--keepinfo', '--paper', '--outfile',
+'--landscape', '--twoside', '--tidy' and '--checkfiles' can be set in
+site-wide or user-specific configuration files. The path that is searched
+for site-wide configuration files (named pdfjam.conf) at this installation is
+ $configpath
+This configuration path can be changed by editing the pdfjam script if
+necessary. Any user-specific configuration should be put in a file named
+.pdfjam.conf in your home directory. (All of these files are ignored
+if the '--vanilla' argument is used.)
+
+For more information, including an example configuration file, see
+http://go.warwick.ac.uk/pdfjam.
+"
+##
+## END OF HELP TEXT
+##
+#########################################################################
+##
+## ERROR CODES
+##
+E_USAGE=64 # command line usage error
+E_DATAERR=65 # data format error
+E_NOINPUT=66 # cannot open input
+E_UNAVAILABLE=69 # service unavailable
+E_SOFTWARE=70 # internal software error
+E_CANTCREATE=73 # can't create (user) output file
+E_CONFIG=78 # configuration error
+##
+## Define a function to print an error message and exit:
+##
+error_exit () {
+ if (test -e "$PDFJAM_MESSAGES_FILE")
+ then cat "$PDFJAM_MESSAGES_FILE" >&2
+ else printf "$messages" 1>&2
+ fi
+ printf " pdfjam ERROR: %s\n" "$1" 1>&2 ;
+ exit "$2" ;
+}
+##
+#########################################################################
+##
+## READ AND PROCESS THE ARGUMENTS
+##
+## In case of NO argument supplied, mention 'pdfjam --help':
+##
+if test $# -eq 0
+then
+ prattle "No arguments supplied; continuing anyway. (See"
+ prattle "'pdfjam --help' for information on usage.)" 1
+fi
+##
+## Now do the argument loop.
+##
+fileSpec=""
+miscOptions=""
+callOptions=""
+optionsFinished=""
+##
+## First note any '--checkfiles' or '--no-checkfiles' option
+##
+for arg in "$@"; do
+ case "$arg" in
+ --checkfiles)
+ checkfiles=true ;
+ callOptions="$callOptions --checkfiles" ;
+ ;;
+ --no-checkfiles)
+ checkfiles=false ;
+ callOptions="$callOptions --no-checkfiles" ;
+ ;;
+ esac
+done
+while test -n "${1}${2}"; do
+ argUnmatched=""
+ if test "$optionsFinished" != true
+ then
+ case "${1}" in
+ --) ## signals end of command-line options
+ optionsFinished=true ;
+ shift ;
+ continue ;
+ ;;
+ --help | -u | -h)
+ printf "%s\n" "$helptext" ;
+ exit 0;;
+ --configpath)
+ printf "%s\n" "$configpath" ;
+ exit 0;;
+ --* | -q | -o)
+ if test "$pageSpecAwaited" = true ; then
+ ## fill in any missing page specs before continuing
+ fileSpec=`printf "%s" "$fileSpec" | sed 's/|awaited/|-/g'`
+ pageSpecAwaited=false
+ fi
+ case "${1}" in
+ --batch)
+ batch=true ;
+ ;;
+ --vanilla)
+ callOptions="$callOptions ${1}" ;
+ ;;
+ --quiet | -q)
+ verbose=false ;
+ callOptions="$callOptions ${1}" ;
+ ;;
+ --outfile | -o)
+ outFile="${2}" ;
+ if test "$batch" = true
+ then
+ outFile=`escape_chars "$outFile"`
+ fi
+ callOptions="$callOptions --outfile $outFile" ;
+ shift ;;
+ --suffix)
+ if test -n "${2}"
+ then
+ suffix="${2}" ;
+ if test "$batch" = true
+ then
+ suffix=`escape_chars "$suffix"`
+ fi
+ callOptions="$callOptions --suffix $suffix"
+ shift
+ else
+ error_exit \
+ "'--suffix' string has zero length" \
+ $E_USAGE ;
+ fi
+ ;;
+ --tidy)
+ tidy=true ;
+ callOptions="$callOptions --tidy" ;
+ ;;
+ --no-tidy)
+ tidy=false ;
+ callOptions="$callOptions --no-tidy" ;
+ ;;
+ --keepinfo)
+ keepinfo=true ;
+ callOptions="$callOptions --keepinfo" ;
+ ;;
+ --no-keepinfo)
+ keepinfo=false ;
+ callOptions="$callOptions --no-keepinfo" ;
+ ;;
+ --checkfiles)
+ ;; ## already done above
+ --no-checkfiles)
+ ;; ## already done above
+ --pdftitle)
+ pdfTitle="${2}" ;
+ if test "$batch" = true
+ then
+ pdfTitle=`escape_chars "$pdfTitle"`
+ fi
+ callOptions="$callOptions --pdftitle $pdfTitle" ;
+ shift ;;
+ --pdfauthor)
+ pdfAuthor="${2}" ;
+ if test "$batch" = true
+ then
+ pdfAuthor=`escape_chars "$pdfAuthor"`
+ fi
+ callOptions="$callOptions --pdfauthor $pdfAuthor" ;
+ shift ;;
+ --pdfsubject)
+ pdfSubject="${2}" ;
+ if test "$batch" = true
+ then
+ pdfSubject=`escape_chars "$pdfSubject"`
+ fi
+ callOptions="$callOptions --pdfsubject $pdfSubject" ;
+ shift ;;
+ --pdfkeywords)
+ pdfKeywords="${2}" ;
+ if test "$batch" = true
+ then
+ pdfKeywords=`escape_chars "$pdfKeywords"`
+ fi
+ callOptions="$callOptions --pdfkeywords $pdfKeywords" ;
+ shift ;;
+ --paper)
+ paper="${2}"
+ callOptions="$callOptions ${1} ${2}" ;
+ shift;;
+ --pagecolor)
+ pagecolor="${2}" ;
+ callOptions="$callOptions ${1} ${2}" ;
+ shift;;
+ --a4paper | --a5paper | --b5paper | --letterpaper | \
+ --executivepaper | --legalpaper)
+ ## standard LaTeX paper sizes
+ paper=`printf "%s" "${1}" | sed 's/^--//'` ;
+ callOptions="$callOptions ${1}" ;
+ ;;
+ --a0paper | --a1paper | --a2paper | --a3paper | \
+ --a6paper | --b0paper | --b1paper | --b2paper | \
+ --b3paper | --b4paper | --b6paper)
+ ## the 'geonetry' package is needed
+ if test "$geometry" != false ;
+ then
+ paper=`printf "%s" "${1}" | sed 's/^--//'` ;
+ callOptions="$callOptions ${1}" ;
+ geometry=true ;
+ fi ;
+ ;;
+ --papersize)
+ ## the 'geonetry' package is needed
+ if test "$geometry" != false ;
+ then
+ papersize="papersize=${2}" ;
+ callOptions="$callOptions ${1} '${2}'" ;
+ geometry=true ;
+ fi ;
+ shift ;;
+ --landscape)
+ landscape=true ;
+ callOptions="$callOptions --landscape" ;
+ ;;
+ --no-landscape)
+ landscape=false ;
+ callOptions="$callOptions --no-landscape" ;
+ ;;
+ --twoside)
+ twoside=true ;
+ callOptions="$callOptions --twoside" ;
+ ;;
+ --no-twoside)
+ twoside=false ;
+ callOptions="$callOptions --no-twoside" ;
+ ;;
+ --preamble)
+ preamble="${2}" ;
+ callOptions="$callOptions ${1} '$preamble'" ;
+ shift ;;
+ --*)
+ ## options for \includepdfmerge
+ argName=`printf "%s" "${1}" | sed 's/^--//'`;
+ value="${2}"
+ miscOptions=$miscOptions,"$argName=$value" ;
+ ## saved for possible use in LaTeX file
+ callOptions="$callOptions ${1} '$value'" ;
+ ## saved for possible use in a further call to pdfjam
+ shift ;
+ ;;
+ esac ;;
+ '' | *)
+ argUnmatched=true
+ ;;
+ esac
+ fi
+ if test "$optionsFinished" = true || test "$argUnmatched" = true
+ then
+ case "${1}" in
+ "" | /dev/stdin)
+ fileSpec="${fileSpec}${newline}/dev/stdin|awaited"
+ pageSpecAwaited=true
+ inputFromStdin=true ;;
+ -)
+ if test "$pageSpecAwaited" = true ; then
+ fileSpec=`printf "%s" "$fileSpec" | \
+ sed 's/|awaited/|-/g'`
+ pageSpecAwaited=false
+ else
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ fi ;;
+ *) ## All other args should be PDF source files and page
+ ## selections; if not, we'll quit
+ if test "$checkfiles" = true ; ## not always available
+ then
+ case `file -Lb "${1}"` in
+ "PDF document"*) ## it's a PDF file as expected
+ fileSpec="$fileSpec${newline}"${1}"|awaited"
+ pageSpecAwaited=true
+ ;;
+ *)
+ case "${1}" in
+ *.[pP][dD][fF]) ## should be PDF file, but isn't
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ ;;
+ *) ## if page spec needed, assume this is it;
+ ## otherwise something is wrong
+ if test "$pageSpecAwaited" = true ; then
+ fileSpec=`printf "%s" "$fileSpec" | \
+ sed "s/|awaited/|$1/g"`
+ pageSpecAwaited=false
+ else
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ else ## no checking of file contents; rely on .pdf extension
+ case "${1}" in
+ *.[pP][dD][fF]) ## assume it's a PDF file
+ test -f "${1}" || error_exit \
+ "${1} not found" $E_NOINPUT
+ fileSpec="$fileSpec"$newline${1}"|"awaited
+ pageSpecAwaited=true
+ ;;
+ *) ## if page spec needed, assume this is it;
+ ## otherwise something is wrong
+ if test "$pageSpecAwaited" = true ; then
+ fileSpec=`printf "%s" "$fileSpec" | \
+ sed "s/|awaited/|$1/g"`
+ pageSpecAwaited=false
+ else
+ error_exit "no PDF file found at ${1}" \
+ $E_NOINPUT
+ fi
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ fi
+ shift
+done
+##
+## Use the default page spec for any that remain unspecified:
+##
+fileSpec=`printf "%s" "$fileSpec" | sed '/^$/d; s/^ //; s/|awaited$/|-/'`
+##
+## Check whether input from stdin should be used by default:
+if test $PDFJAM_CALL_NUMBER -eq 0 && test "$inputFromStdin" != true
+then
+ ## the special argument '/dev/stdin' was not used
+ if test "$fileSpec" = "" ; then
+ ## no argument specifying a PDF source was given
+ inputFromStdin=true
+ fileSpec="/dev/stdin|-"
+ prattle "No pdf source specified: input is from stdin."
+ fi
+fi
+##
+## Delete leading comma from $miscOptions:
+##
+miscOptions=`printf "%s" "$miscOptions" | sed 's/^,//'`
+##
+## Delete leading space from $callOptions:
+##
+callOptions=`printf "%s" "$callOptions" | sed 's/^ //'`
+##
+## Set up a document options variable:
+##
+case "$landscape" in
+ true)
+ orientation=landscape ;;
+ *)
+ orientation="" ;;
+esac
+case "$twoside" in
+ true)
+ twoside=twoside ;;
+ *)
+ twoside="" ;;
+esac
+if test "$geometry" != false
+then
+## we haven't already found that geometry.sty is missing
+ case "$paper" in
+ a0paper | a1paper | a2paper | a3paper | \
+ a6paper | b0paper | b1paper | b2paper | \
+ b3paper | b4paper | b6paper)
+ ## the 'geonetry' package is needed
+ geometry=true ;
+ ;;
+ *)
+ ;;
+ esac
+fi
+documentOptions="$paper","$orientation","$twoside"
+documentOptions=`printf "%s" "$documentOptions" | sed 's/^,//' | sed 's/,$//'`
+##
+## END OF ARGUMENT PROCESSING
+##
+#########################################################################
+##
+## CHECK SYSTEM SETUP
+##
+## These checks are not repeated in secondary calls.
+##
+if test $PDFJAM_CALL_NUMBER -eq 0 ## not a secondary call
+then
+ ## Check whether there's a pdflatex, if "$pdflatex" is still unset:
+ case "$pdflatex" in
+ "not found")
+ error_exit "can't find pdflatex!" $E_UNAVAILABLE
+ ;;
+ pdflatex)
+ ;;
+ *) ## $pdflatex was set in a configuration file
+ if test ! -x "$pdflatex"
+ then
+ error_exit \
+ "configuration error, $pdflatex is not an executable file" \
+ $E_CONFIG
+ fi
+ ;;
+ esac
+ ##
+ ## Check that necessary LaTeX packages are installed:
+ ##
+ modifyPath=`printf "%s" "$pdflatex" | sed 's/\/[^\/]*$//'`
+ if [ -n "$modifyPath" ] ; then
+ PATH="$modifyPath:$PATH"
+ export PATH
+ fi
+ (kpsewhich pdfpages.sty >/dev/null) ||
+ error_exit \
+ "LaTeX package pdfpages.sty is not installed" \
+ $E_UNAVAILABLE
+ (kpsewhich eso-pic.sty >/dev/null) ||
+ error_exit \
+ "LaTeX package eso-pic.sty not installed (see the pdfpages manual)" \
+ $E_UNAVAILABLE
+ (kpsewhich everyshi.sty >/dev/null) ||
+ error_exit \
+ "LaTeX package everyshi.sty not installed (see the pdfpages manual)" \
+ $E_UNAVAILABLE
+ if test "$keepinfo" = true ||
+ test -n "$pdfTitle$pdfSubject$pdfAuthor$pdfKeywords"
+ ## ie, if hyperref is required
+ then
+ (kpsewhich hyperref.sty >/dev/null) || {
+ prattle "LaTeX package hyperref.sty is not installed, so any"
+ prattle "--keepinfo, --pdftitle,--pdfauthor, --pdfsubject or" 1
+ prattle "--pdfkeywords setting will be ignored." 1
+ hyperref=false
+ if test "$batch" = true
+ then
+ export hyperref ## for use in any secondary calls
+ fi
+ }
+ else
+ hyperref=false
+ fi
+ if test "$geometry" = true
+ ## if, if the 'geometry' package is needed for paper size
+ then
+ (kpsewhich geometry.sty >/dev/null) || {
+ prattle "LaTeX package geometry.sty is not installed, so only the"
+ prattle "standard LaTeX paper sizes are available." 1
+ geometry=false
+ if test "$batch" = true
+ then
+ export geometry ## for use in any secondary calls
+ fi
+ }
+ fi
+fi
+if test "$hyperref" = false
+then
+ keepinfo=false
+ pdfTitle="" ; pdfAuthor="" ; pdfSubject="" ; pdfKeywords=""
+else
+ if test "$keepinfo" = true
+ then
+ case "$pdfinfo" in
+ "not found")
+ if test $PDFJAM_CALL_NUMBER -eq 0
+ then
+ prattle \
+ "The pdfinfo utility was not found, so --keepinfo is ignored."
+ fi
+ keepinfo=false
+ ;;
+ pdfinfo)
+ ;;
+ *) ## $pdfinfo was set in a configuration file
+ if test ! -x "$pdfinfo"
+ then
+ if test $PDFJAM_CALL_NUMBER -eq 0
+ then
+ prattle \
+ "No pdfinfo utility at $pdfinfo, so --keepinfo is ignored."
+ keepinfo=false
+ fi
+ fi
+ ;;
+ esac
+ fi
+fi
+##
+## END OF CHECKING THE SETUP
+##
+#########################################################################
+##
+## TEMPORARY FILES
+##
+## Make a secure temporary directory (following
+## the autoconf manual).
+##
+## Use mktemp if possible; otherwise fall back on mkdir,
+## with random name to make file collisions less likely.
+##
+umask 177
+if test $PDFJAM_CALL_NUMBER = 0 ## don't repeat this work for secondary calls
+then
+ PDFJAM_TEMP_DIR=''
+ trap 'IFS="$OIFS"; \
+ if test $tidy != false ; then cd "$pwd"; rm -rf "$PDFJAM_TEMP_DIR"; fi; exit 1' \
+ 1 2 9 15
+ trap 'IFS="$OIFS"; \
+ if test $tidy != false ; then cd "$pwd"; rm -rf "$PDFJAM_TEMP_DIR"; fi' 0
+ {
+ PDFJAM_TEMP_DIR=`
+ (umask 077 && mktemp -d "$tempfileDir/pdfjam-XXXXXX") 2>/dev/null
+ ` &&
+ test -n "$PDFJAM_TEMP_DIR" && test -d "$PDFJAM_TEMP_DIR"
+ } || {
+ ## We'll use awk to make random number, for portability
+ random=`
+ awk 'END { srand(); printf ("%d\n", rand()*1000000); }' /dev/null`
+ PDFJAM_TEMP_DIR="$tempfileDir"/pdfjam"$$"-"$random"
+ (umask 077 && mkdir "$PDFJAM_TEMP_DIR")
+ } || exit $?
+##
+ export PDFJAM_TEMP_DIR ## so that same dir is used in secondary calls
+ if test $tidy = false ; then
+ prattle "Temporary directory for this job is
+ $PDFJAM_TEMP_DIR"
+ fi
+ PDFJAM_MESSAGES_FILE="$PDFJAM_TEMP_DIR"/messages.txt
+ export PDFJAM_MESSAGES_FILE
+ ## so that secondary calls can write messages there as well
+ printf "$messages" > "$PDFJAM_MESSAGES_FILE" ## initial file contents
+ messages="" ## we won't be using this variable again!
+else
+ PDFJAM_TEMP_DIR="$PDFJAM_TEMP_DIR"/"file$PDFJAM_CALL_NUMBER"
+ umask 077 && mkdir "$PDFJAM_TEMP_DIR"
+fi
+##
+## TEMPORARY DIRECTORY ALL DONE
+##
+#########################################################################
+##
+## HANDLING THE "--batch" OPTION
+##
+## If --batch was used, we'll call pdfjam separately on each input
+## file.
+##
+if test "$batch" = true ; then
+ if test "$fileSpec" = "" ; then
+ error_exit "--batch was used, but no PDF source file(s) specified" \
+ $E_USAGE
+ fi
+ if test "$inputFromStdin" = true ; then
+ error_exit "--batch cannot be used with input from stdin" \
+ $E_USAGE
+ fi
+ IFS="$newline"
+ for k in $fileSpec ; do
+ sourcePath=`printf "%s" "$k" | sed 's/|[^|]*$//'`
+ pageSpec=`printf "%s" $k | sed 's/.*|//'`
+ callNumber=`expr $PDFJAM_CALL_NUMBER + 1`
+ prattle "--"
+ prattle "Processing file ${callNumber}, '$sourcePath'..."
+ prattle "Page spec is '$pageSpec'."
+ sourcePath=`escape_chars "$sourcePath"`
+ PDFJAM_EFFECTIVE_CALL="$0 $callOptions -- $sourcePath $pageSpec"
+ export PDFJAM_EFFECTIVE_CALL
+ PDFJAM_CALL_NUMBER=$callNumber
+ export PDFJAM_CALL_NUMBER
+ eval "$PDFJAM_EFFECTIVE_CALL"
+ ## i.e., call pdfjam again with one input file
+ done
+ if (test $verbose = true) then cat "$PDFJAM_MESSAGES_FILE" >&2 ; fi
+ IFS=$OIFS
+ exit 0
+fi
+##
+## END OF THE '--batch' PROCESSING
+##
+#########################################################################
+##
+## RECORD THE EFFECTIVE CALL TO PDFJAM, FOR POSSIBLE DEBUGGING PURPOSES
+##
+## Save the text of this (effective) call to pdfjam in a temporary file,
+## for later inspection if necessary.
+##
+## For secondary calls, the effective call text is already made;
+## otherwise we make it here.
+##
+if test "$PDFJAM_CALL_NUMBER" -gt 0
+then
+ theCall="$PDFJAM_EFFECTIVE_CALL"
+else
+ filePageSpec=""
+ IFS="$newline"
+ for k in $fileSpec ; do
+ ## Last substitution on next line is needed for silly characters in
+ ## file names...
+ sourcePath=`printf "%s" $k | sed 's/|[^|]*$//'`
+ sourcePath=`escape_chars "$sourcePath"`
+ pageSpec=`printf "%s" $k | sed 's/.*|//'`
+ filePageSpec="$filePageSpec$sourcePath $pageSpec "
+ done
+ IFS="$OIFS"
+ theCall="$0 $callOptions -- $filePageSpec"
+fi
+printf "%s\n%s\n" "cd $pwd" "$theCall" > "$PDFJAM_TEMP_DIR"/call.txt
+prattle "Effective call for this run of pdfjam:"
+prattle "$theCall" 1
+##
+#########################################################################
+##
+## NOW MAKE THE INPUT FILE ETC., READY FOR PDFLATEX
+##
+filePageList="" ## initialize a string to supply to \includepdfmerge
+counter=0
+##
+## Make symbolic link(s) to the source file(s) in the temporary dir,
+## and make the $filePageList string for input to \includepdfmerge
+##
+stdinUnread=true
+IFS="$newline"
+for k in $fileSpec
+do
+ counter=`expr $counter + 1`
+ sourcePath=`printf "%s" "$k" | sed 's/|[^|]*$//'`
+ pageSpec=`printf "%s" $k | sed 's/.*|//'`
+ ## Check, though not exhaustively, for problems with the
+ ## page spec: leading or trailing comma, double comma or
+ ## double dash, alphabetic characters other than the word "last",
+ ## braces not paired as {} with nothing inbetween. A fully
+ ## specified pattern for valid \includepdfmerge page spec would
+ ## be better here; but life is too short...
+ if printf "%s" "$pageSpec" | sed 's/last/99/g' | \
+ grep '^,.*\|,$\|,,\|--\|[A-Za-z]\|{[^}]\|[^{]}' 1>/dev/null
+ then
+ error_exit "invalid page spec $pageSpec" $E_USAGE
+ fi
+ case "$sourcePath" in
+ /dev/stdin)
+ uniqueName="$PDFJAM_TEMP_DIR"/stdin.pdf
+ if test "$stdinUnread" = true
+ then
+ if tty -s ; then
+ error_exit \
+ "tty is connected to connected to stdin, no PDF file found" \
+ $E_NOINPUT
+ fi
+ cat > "$uniqueName"
+ stdinUnread=false
+ fi
+ ;;
+ *)
+ pdfName=`basename "$sourcePath"`
+ sourceDir=`dirname "$sourcePath"`
+ cd "$sourceDir" || exit 1 ## just to get the full path
+ sourceDir=`pwd`
+ cd "$pwd" || exit 1
+ sourceFullPath="$sourceDir"/"$pdfName"
+ uniqueName="source-$counter.pdf"
+ uniqueName="$PDFJAM_TEMP_DIR"/"$uniqueName"
+ ln -s "$sourceFullPath" "$uniqueName"
+ ;;
+ esac
+ filePageList="$filePageList","$uniqueName","$pageSpec"
+done
+IFS="$OIFS"
+filePageList=`printf "%s" "$filePageList" | \
+ sed 's/^,//'` ## remove leading comma
+##
+## Do the pdfinfo stuff (if relevant)...
+##
+if test "$hyperref" != false
+then
+ if test "$keepinfo" = true
+ then
+ prattle "Calling ${pdfinfo}..." ;
+ PDFinfo=`pdfinfo "$uniqueName"`;
+ pdftitl=`printf "%s" "$PDFinfo" | \
+ grep -e '^Title:'| sed s/^Title:\\\s\*//`;
+ pdfauth=`printf "%s" "$PDFinfo" | \
+ grep -e '^Author:'| sed s/^Author:\\\s\*//`;
+ pdfsubj=`printf "%s" "$PDFinfo" | \
+ grep -e '^Subject:'| sed s/^Subject:\\\s\*//`;
+ pdfkeyw=`printf "%s" "$PDFinfo" | \
+ grep -e '^Keywords:'| sed s/^Keywords:\\\s\*//`;
+ fi
+ if test -n "$pdfTitle" ; then
+ pdftitl="$pdfTitle"
+ fi
+ if test -n "$pdfAuthor" ; then
+ pdfauth="$pdfAuthor"
+ fi
+ if test -n "$pdfSubject" ; then
+ pdfsubj="$pdfSubject"
+ fi
+ if test -n "$pdfKeywords" ; then
+ pdfkeyw="$pdfKeywords"
+ fi
+fi
+##
+## Now set up the files for pdflatex...
+##
+fileName="$PDFJAM_TEMP_DIR"/a
+texFile="$fileName".tex
+msgFile="$fileName".msgs
+tempFile="$PDFJAM_TEMP_DIR"/temp.tex
+(cat <<EndTemplate
+\batchmode
+\documentclass[$documentOptions]{article}
+\usepackage{color} \definecolor{bgclr}{RGB}{$pagecolor} \pagecolor{bgclr}
+\usepackage[$papersize]{geometry}
+\usepackage{hyperref}
+\hypersetup{pdftitle=$pdftitl}
+\hypersetup{pdfauthor=$pdfauth}
+\hypersetup{pdfsubject=$pdfsubj}
+\hypersetup{pdfkeywords=$pdfkeyw}
+\usepackage{pdfpages}
+$preamble
+\begin{document}
+\includepdfmerge[$miscOptions]{$filePageList}
+\end{document}
+EndTemplate
+ ) > $texFile
+if test "$hyperref" = false; then ## we don't need hyperref
+ cp $texFile $tempFile
+ sed '/\\\usepackage{hyperref}/d' $tempFile | \
+ sed '/\\\hypersetup.*/d' > "${texFile}"
+ rm $tempFile
+fi
+if test ! -n "$geometry" ; then geometry=false ; fi
+if test "$geometry" = false; then ## geometry package is not to be used
+ cp $texFile $tempFile
+ cat $tempFile | sed '/\\\usepackage.*{geometry}/d' > $texFile
+ rm $tempFile
+fi
+if test "$pagecolor" = ""; then ## color package is not needed
+ cp $texFile $tempFile
+ cat $tempFile | sed '/\\\usepackage.*{color}/d' > $texFile
+ rm $tempFile
+fi
+##
+## INPUT FILES ARE ALL READY
+##
+#########################################################################
+##
+## RUN PDFLATEX AND COPY THE RESULTING PDF FILE TO STDOUT
+##
+prattle "Calling ${pdflatex}..." ;
+cd "$PDFJAM_TEMP_DIR" || exit 1
+failureText=\
+"FAILED.
+The call to 'pdflatex' resulted in an error.
+If '--no-tidy' was used, you can examine the
+log file at
+ $fileName.log
+to try to diagnose the problem."
+if ! ("$pdflatex" "$texFile" > "$msgFile")
+then
+ prattle "$failureText"
+ error_exit "Output file not written" $E_SOFTWARE
+fi
+cd "$pwd" || exit 1
+if test -f "$fileName".pdf ## if LaTeX didn't choke
+then
+ ## Checks on output file path:
+ if test -d "$outFile" ## outfile is a directory
+ then
+ if test "$sourcePath" = /dev/stdin
+ then
+ error_exit \
+ "--outfile cannot be a directory when input is stdin" \
+ $E_USAGE
+ fi
+ if test ! -w "$outFile"
+ then
+ prattle "FAILED: no write permission in ${outFile}."
+ continue
+ fi
+ separator="-"
+ if test "$pageSpec" != "-"
+ then
+ separator="-$pageSpec"
+ fi
+ outFile=`printf "%s" "$outFile" | sed 's/\/$//'`
+ ## (delete any trailing slash)
+ pdfName=`basename "$sourcePath"`
+ pdfName=`printf "%s" "$pdfName" | \
+ sed 's/\.[pP][dD][fF]$//'` ## strip extension
+ pdfName="$pdfName$separator$suffix".pdf
+ outFile="$outFile"/"$pdfName"
+ fi
+fi
+if test -f "$outFile" && test ! -w "$outFile"
+ ## file exists and we can't over-write it
+then
+ error_exit "no write permission at ${outFile}" $E_CANTCREATE
+fi
+(cat "$fileName".pdf > "$outFile" 2>/dev/null) &&
+ prattle "Finished. Output was to ${outFile}." ||
+ error_exit "cannot write output at ${outFile}" $E_CANTCREATE
+if (test "$PDFJAM_CALL_NUMBER" = "0") && ## not a secondary call
+ (test $verbose = true)
+then cat "$PDFJAM_MESSAGES_FILE" >&2
+fi
+exit 0
+##
+## END
+##
+#########################################################################
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod b/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
new file mode 100755
index 00000000000..0bebe86961c
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
@@ -0,0 +1,54 @@
+#!/bin/sh
+##
+## pdfjam-pocketmod: A shell program to make an 8-page PDF document
+## into an 8-up file with pages ordered and oriented for folding as
+## a pocket-sized booklet, as described at http://repocketmod.com/
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for (three runs of) pdfjam, version 2.01
+##
+##
+## It's hard (?) to set up this particular script to read from /dev/stdin,
+## so we'll just insist that the first argument is a file:
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfjam-pocketmod ERROR: the --batch option is not allowed\n" 1>&2 ;
+ exit "$E_USAGE" ;;
+ --no-tidy)
+ n='--no-tidy' ;;
+ --quiet | -q)
+ q='-q' ;;
+ --checkfiles)
+ c='--checkfiles' ;;
+ *)
+ ;;
+ esac
+done
+##
+sourceFile="$1" ;
+shift ;
+##
+## Some (very) minimal checking of the first argument:
+##
+if test ! -f "$sourceFile" ;
+then
+ printf "pdfjam-pocketmod ERROR: first argument must be a PDF file\n" ;
+ exit $E_USAGE ;
+fi
+##
+## That's all the argument checking!
+##
+pageSpec="1-8" ## the default page spec
+case "${1}" in
+ --* | "") ## no page spec was given
+ ;;
+ *) ## a page spec was given, so use it
+ pageSpec="$1" ;
+ shift ;;
+esac
+pdfjam $n $q $c -o /dev/stdout "$sourceFile" "$pageSpec" | pdfjam --angle 180 $n $q -o /dev/stdout /dev/stdin '1,8,7,6' | pdfjam --nup 4x2 --landscape --frame true "$sourceFile" '2-5' /dev/stdin "$@"
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjam-slides3up b/Master/texmf-dist/scripts/pdfjam/pdfjam-slides3up
new file mode 100755
index 00000000000..3bd461c8883
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfjam-slides3up
@@ -0,0 +1,29 @@
+#!/bin/sh
+##
+## pdfjam-slides3up: A shell program to make a 3-up "handout"
+## of presentation slides, with space for side-notes
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+footskip=3.1cm ## default setting
+pagecommand='{\thispagestyle{empty}}' ## default setting
+case "${1}" in
+ --pagenumbering)
+ case "${2}" in
+ false)
+ continue ;;
+ true)
+ pagecommand='{\thispagestyle{plain}}' ;;
+ *) ## a footskip dimension was supplied
+ pagecommand='{\thispagestyle{plain}}' ;
+ footskip="$2" ;;
+ esac ;
+ shift 2 ;;
+ *)
+ continue ;;
+esac
+pdfjam --suffix 3up --nup 1x3 --frame true --noautoscale false \
+ --delta "0cm 0.2cm" --scale 0.87 --offset "-3.8cm 0cm" \
+ --preamble "\footskip $footskip" --pagecommand "$pagecommand" "$@"
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjam-slides6up b/Master/texmf-dist/scripts/pdfjam/pdfjam-slides6up
new file mode 100755
index 00000000000..47fa2ea1ec8
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfjam-slides6up
@@ -0,0 +1,31 @@
+#!/bin/sh
+##
+## pdfjam-slides6up: A shell program to make a 6-up "handout"
+## of presentation slides
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+footskip=2.7cm ## default setting
+pagecommand='{\thispagestyle{empty}}' ## default setting
+case "${1}" in
+ --pagenumbering)
+ case "${2}" in
+ false)
+ continue ;;
+ true)
+ pagecommand='{\thispagestyle{plain}}' ;;
+ *) ## a footskip dimension was supplied
+ pagecommand='{\thispagestyle{plain}}' ;
+ footskip="$2" ;;
+ esac ;
+ shift 2 ;;
+ *)
+ continue ;;
+esac
+pdfjam --suffix 6up --nup 2x3 --frame true --noautoscale false \
+ --delta "0.2cm 0.3cm" --scale 0.95 --preamble "\footskip $footskip" \
+ --pagecommand "$pagecommand" "$@"
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjoin b/Master/texmf-dist/scripts/pdfjam/pdfjoin
new file mode 100755
index 00000000000..02c397fc31d
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfjoin
@@ -0,0 +1,25 @@
+#!/bin/sh
+##
+## pdfjoin: A shell program to concatenate PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfjoin ERROR: the --batch option is not allowed\n" 1>&2;
+ exit "$E_USAGE" ;;
+ --orient) ## this was allowed in previous versions of pdfjoin
+ printf "pdfjoin ERROR: the --orient option is not allowed,\n" 1>&2;
+ printf " use --landscape or --no-landscape to specify\n" 1>&2;
+ printf " the output page orientation" 1>&2;
+ exit "$E_USAGE" ;;
+ *) continue ;;
+ esac
+done
+pdfjam --fitpaper true --rotateoversize true --suffix joined "$@"
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfnup b/Master/texmf-dist/scripts/pdfjam/pdfnup
new file mode 100755
index 00000000000..a4744a112fd
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfnup
@@ -0,0 +1,28 @@
+#!/bin/sh
+##
+## pdfnup: A shell program to n-up pages of PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --orient) ## this was allowed in previous versions of pdfnup
+ printf "pdfnup ERROR: the --orient option is not allowed,\n" 1>&2;
+ printf " use --landscape or --no-landscape to specify\n" 1>&2;
+ printf " the output page orientation" 1>&2;
+ exit "$E_USAGE" ;;
+ --pages) ## this was allowed in previous versions of pdfnup
+ printf "pdfnup ERROR: the --pages option is not allowed,\n" 1>&2;
+ printf " see 'pdfjam --help' or http://go.warwick.ac.uk/pdfjam\n" \
+ 1>&2;
+ printf " for page selection examples\n" 1>&2;
+ exit "$E_USAGE" ;;
+ *) continue ;;
+ esac
+done
+pdfjam --suffix nup --nup 2x1 --landscape "$@"
+
+
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfpun b/Master/texmf-dist/scripts/pdfjam/pdfpun
new file mode 100755
index 00000000000..eee08a05d33
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfpun
@@ -0,0 +1,72 @@
+#!/bin/sh
+##
+## pdfpun: A shell program to n-up pages of a PDF file with
+## the n-upped pages ordered from right to left
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for (three runs of) pdfjam, version 2.01
+##
+##
+E_USAGE=64 ## for a command line usage error
+##
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfpun ERROR: the --batch option is not allowed\n" 1>&2;
+ exit "$E_USAGE" ;;
+ --no-tidy)
+ n='--no-tidy' ;;
+ --quiet | -q)
+ q='-q' ;;
+ --checkfiles)
+ c='--checkfiles' ;;
+ *) continue ;;
+ esac
+done
+sourceFile="$1" ;
+shift ;
+##
+## Some (very) minimal checking of the first argument:
+##
+if test ! -e "$sourceFile" ;
+then
+ printf "pdfpun ERROR: first argument must be a PDF file\n" ;
+ exit $E_USAGE ;
+fi
+if test "$sourceFile" = /dev/stdin ;
+then
+ if tty -s ; then
+ printf "pdfpun ERROR: tty is connected to connected to stdin, no PDF file found\n"
+ exit $E_USAGE ;
+ fi
+fi
+##
+## That's all the argument checking!
+##
+pageSpec="-" ## the default
+case "${1}" in
+ --* | "")
+ ;;
+ *) ## a page spec was given
+ pageSpec="$1" ;
+ shift ;;
+esac
+case "${1}" in
+ --outfile)
+ outFile="$2" ;
+ shift 2 ;;
+ *)
+ ;;
+esac
+if test "$outFile" = "" ;
+then
+ printf "pdfpun ERROR: no output file specified\n" 1>&2 ;
+ exit "$E_USAGE" ;
+fi
+pdfjam --reflect true $n $q $c "$sourceFile" "$pageSpec" -o /dev/stdout | \
+ pdfjam --landscape --nup 2x1 "$@" -o /dev/stdout | \
+ pdfjam --suffix nup --reflect true --fitpaper true $n $q -o "$outFile"
+
+
+
diff --git a/Master/texmf/doc/man/man1/pdf180.1 b/Master/texmf/doc/man/man1/pdf180.1
new file mode 100644
index 00000000000..86bcc0b8535
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdf180.1
@@ -0,0 +1,74 @@
+.TH "pdf180" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdf180 \- rotate the pages of pdf files
+.SH "SYNOPSIS"
+.PP
+pdf180 [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdf180 rotates the pages of files in the Adobe Portable Document Format (PDF)
+through 180 degrees\&.
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdf180 operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-rotated180' applied to their names by default. To change
+the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdf180 --suffix '-upturned' --batch myfile1.pdf myfile2.pdf
+.RE
+.PP
+will result in files named 'myfile1-upturned.pdf' and 'myfile2-upturned.pdf'.
+.PP
+pdf180 is a simple wrapper for pdfjam, which is a front end to many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex with
+the pdfpages package is required\&.
+.PP
+pdf180 is part of the "PDFjam" package of tools, whose homepage is at
+http://go.warwick.ac.uk/pdfjam\&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+ pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdf180 does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdf180 is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdf270.1 b/Master/texmf/doc/man/man1/pdf270.1
new file mode 100644
index 00000000000..d27f76cce90
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdf270.1
@@ -0,0 +1,74 @@
+.TH "pdf270" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdf270 \- rotate the pages of pdf files
+.SH "SYNOPSIS"
+.PP
+pdf270 [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdf270 rotates the pages of files in the Adobe Portable Document Format (PDF)
+through 90 degrees (clockwise)\&.
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdf270 operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-rotated270' applied to their names by default. To change
+the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdf270 --suffix '-turned' --batch myfile1.pdf myfile2.pdf
+.RE
+.PP
+will result in files named 'myfile1-turned.pdf' and 'myfile2-turned.pdf'.
+.PP
+pdf270 is a simple wrapper for pdfjam, which is a front end to many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex with
+the pdfpages package is required\&.
+.PP
+pdf270 is part of the "PDFjam" package of tools, whose homepage is at
+http://go.warwick.ac.uk/pdfjam\&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+ pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdf270 does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdf270 is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdf90.1 b/Master/texmf/doc/man/man1/pdf90.1
new file mode 100644
index 00000000000..d0b433c2cc0
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdf90.1
@@ -0,0 +1,74 @@
+.TH "pdf90" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdf90 \- rotate the pages of pdf files
+.SH "SYNOPSIS"
+.PP
+pdf90 [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdf90 rotates the pages of files in the Adobe Portable Document Format (PDF)
+through 90 degrees (anti-clockwise)\&.
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdf90 operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-rotated90' applied to their names by default. To change
+the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdf90 --suffix '-turned' --batch myfile1.pdf myfile2.pdf
+.RE
+.PP
+will result in files named 'myfile1-turned.pdf' and 'myfile2-turned.pdf'.
+.PP
+pdf90 is a simple wrapper for pdfjam, which is a front end to many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex with
+the pdfpages package is required\&.
+.PP
+pdf90 is part of the "PDFjam" package of tools, whose homepage is at
+http://go.warwick.ac.uk/pdfjam\&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+ pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdf90 does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdf90 is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfbook.1 b/Master/texmf/doc/man/man1/pdfbook.1
new file mode 100644
index 00000000000..bf87ada1cc2
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfbook.1
@@ -0,0 +1,80 @@
+.TH "pdfbook" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfbook \- put the pages of PDF files into 2-up signatures
+.SH "SYNOPSIS"
+.PP
+pdfbook [--right-edge-binding] [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfbook makes 2-up versions of PDF files, with the pages ordered as
+signatures. The default signature size is 4: to change this, use the
+option '--signature N', where N is a multiple of 4.
+.PP
+The default is to make files suitable for left-edge binding. For right-edge
+binding, use the '--right-edge-binding' argument; in that case, to change
+the default signature is changed by using the option '--signature* N'.
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdfbook is a simple wrapper for pdfjam, which provides a front end to
+many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+pdfbook operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-book' applied to their names by default. To change the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdfbook --suffix '-sig4' --batch myfile1.pdf myfile2.pdf
+.RE
+.PP
+will result in files named 'myfile1-sig4.pdf' and 'myfile2-sig4.pdf'.
+.PP
+pdfbook is part of the "PDFjam" package of tools, whose homepage is at
+http://www.warwick.ac.uk/go/pdfjam\&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the other available options and
+site/user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfbook does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfbook is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfflip.1 b/Master/texmf/doc/man/man1/pdfflip.1
new file mode 100644
index 00000000000..842da1c7fba
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfflip.1
@@ -0,0 +1,73 @@
+.TH "pdfflip" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfflip \- rotate the pages of pdf files
+.SH "SYNOPSIS"
+.PP
+pdfflip [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfflip reflects (left-right) the pages of files in the Adobe Portable Document Format (PDF)\&.
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdfflip operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-flipped' applied to their names by default. To change
+the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdfflip --suffix '-reflected' --batch myfile1.pdf myfile2.pdf
+.RE
+.PP
+will result in files named 'myfile1-reflected.pdf' and 'myfile2-reflected.pdf'.
+.PP
+pdfflip is a simple wrapper for pdfjam, which is a front end to many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex with
+the pdfpages package is required\&.
+.PP
+pdfflip is part of the "PDFjam" package of tools, whose homepage is at
+http://go.warwick.ac.uk/pdfjam\&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+ pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfflip does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfflip is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfjam-pocketmod.1 b/Master/texmf/doc/man/man1/pdfjam-pocketmod.1
new file mode 100644
index 00000000000..40c72cbf10d
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfjam-pocketmod.1
@@ -0,0 +1,64 @@
+.TH "pdfjam-pocketmod" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfjam-pocketmod
+\- make an 8-page PDF document into a pocket-sized booklet
+.SH "SYNOPSIS"
+.PP
+.B pdfjam-pocketmod SRC [PAGESPEC] [OPTION [OPTION] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfjam-pocketmod converts 8 pages of a PDF file into a single 8-up page, with pages ordered and oriented for folding into pocket-sized booklet
+( as described at http://repocketmod.com/ )\&.
+.PP
+SRC must be a regular PDF file (not /dev/stdin).
+.PP
+If PAGESPEC is omitted, the first 8 pages are processed.
+.PP
+OPTION is any option to pdfjam(1) other than --batch.
+.PP
+pdfjam-pocketmod is a simple wrapper for pdfjam, which provides a front end to some of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+pdfjam-pocketmod is part of the "PDFjam" package of tools, whose homepage is at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfjam-pocketmod does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+The '--keepinfo' option does not work.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam\&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfjam-pocketmod is written and maintained by David Firth as part of the PDFjam
+package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfjam-slides3up.1 b/Master/texmf/doc/man/man1/pdfjam-slides3up.1
new file mode 100644
index 00000000000..4602b680e2c
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfjam-slides3up.1
@@ -0,0 +1,88 @@
+.TH "pdfjam-slides3up" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfjam-slides3up \- put presentation slides onto 3-up pages
+.SH "SYNOPSIS"
+.PP
+pdfjam-slides3up [--pagenumbering SWITCH] [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfjam-slides3up converts PDF files whose pages are presentation slides (with
+4:3 aspect ratio) into 3-up versions suitable for making a handout with space
+for handwritten side notes
+(for example). By default, the 3-up pages do not themselves have page numbers.
+.PP
+To put page numbers on the output pages, use either '--pagenumbering true'
+or, for example, '--pagenumbering 3.4cm' to place the page numbers a bit
+lower on the page than the default position. The value of 'SWITCH' must
+be either 'true', 'false' or a dimension that can be used by LateX. (To
+be precise, it's the value of the 'footskip' dimension in LaTeX; by default,
+pdfjam-slides3up sets that as 3.1cm, which works pretty well in
+conjunction with both '--paper a4paper' and '--paper letterpaper'.)
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdfjam-slides3up is a simple wrapper for pdfjam, which provides a front end to
+many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+pdfjam-slides3up operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-3up' applied to their names by default. To change the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdfjam-slides3up --suffix '-1x3' --batch myslides1.pdf myslides2.pdf
+.RE
+.PP
+will result in files named 'myslides1-1x3.pdf' and 'myslides2-1x3.pdf'.
+.PP
+By default a narrow line frame is printed around every slide. This can be
+turned off if required by using the option '--frame false'.
+.PP
+pdfjam-slides3up is part of the "PDFjam" package of tools, whose homepage is at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the other available options and
+site /user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfjam-slides3up does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1) pdfjam-slides6up(1) \&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfjam-slides3up is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfjam-slides6up.1 b/Master/texmf/doc/man/man1/pdfjam-slides6up.1
new file mode 100644
index 00000000000..1508369a807
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfjam-slides6up.1
@@ -0,0 +1,87 @@
+.TH "pdfjam-slides6up" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfjam-slides6up \- put presentation slides onto 6-up pages
+.SH "SYNOPSIS"
+.PP
+pdfjam-slides6up [--pagenumbering SWITCH] [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfjam-slides6up converts PDF files whose pages are presentation slides (with
+4:3 aspect ratio) into 6-up versions suitable for making a handout
+(for example). By default, the 6-up pages do not themselves have page numbers.
+.PP
+To put page numbers on the output pages, use either '--pagenumbering true'
+or, for example, '--pagenumbering 3.0cm' to place the page numbers a bit
+lower on the page than the default position. The value of 'SWITCH' must
+be either 'true', 'false' or a dimension that can be used by LateX. (To
+be precise, it's the value of the 'footskip' dimension in LaTeX; by default,
+pdfjam-slides6up sets that as 2.7cm, which works pretty well in
+conjunction with both '--paper a4paper' and '--paper letterpaper'.)
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdfjam-slides6up is a simple wrapper for pdfjam, which provides a front end to
+many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+pdfjam-slides6up operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-6up' applied to their names by default. To change the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdfjam-slides6up --suffix '-2x3' --batch myslides1.pdf myslides2.pdf
+.RE
+.PP
+will result in files named 'myslides1-2x3.pdf' and 'myslides2-2x3.pdf'.
+.PP
+By default a narrow line frame is printed around every slide. This can be
+turned off if required by using the option '--frame false'.
+.PP
+pdfjam-slides6up is part of the "PDFjam" package of tools, whose homepage is at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the other available options and
+site/user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfjam-slides6up does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1) pdfjam-slides3up(1) \&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfjam-slides6up is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfjam.1 b/Master/texmf/doc/man/man1/pdfjam.1
new file mode 100644
index 00000000000..49a0e4990c2
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfjam.1
@@ -0,0 +1,58 @@
+.TH "pdfjam" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfjam \- A shell script for manipulating PDF files
+.SH "SYNOPSIS"
+.PP
+pdfjam [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfjam provides a front end to most capabilities of the
+"pdfpages" package (by Andreas Matthias) of pdflatex.
+Detailed information can be found via
+"pdfjam --help", and also in the web page mentioned below \&.
+.PP
+A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+The pdfjam script is distributed as (the main) part of the PDFjam package. The homepage of PDFjam is at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "CONFIGURATION FILES"
+.PP
+Configuration of the PDFjam utilities
+involves specifying the location of pdflatex,
+the location of temporary files, specification of default page size,
+etc. This is done in a block of lines near the top of the pdfjam script;
+settings made there are over-ridden by any that
+are found at a site-wide configuration file
+(at /etc/pdfjam.conf,
+/usr/share/etc/pdfjam.conf, /usr/local/share/pdfjam.conf, or
+/usr/local/etc/pdfjam.conf), which
+in turn are over-ridden by any that are found in a user-defaults
+file at ~/.pdfjam.conf\&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfjam does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "AUTHOR"
+.PP
+The PDFjam package is written and maintained by David Firth\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfjoin.1 b/Master/texmf/doc/man/man1/pdfjoin.1
new file mode 100644
index 00000000000..c55b4a4938c
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfjoin.1
@@ -0,0 +1,66 @@
+.TH "pdfjoin" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfjoin
+\- join together pages from multiple PDF files
+.SH "SYNOPSIS"
+.PP
+.B pdfjoin [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfjoin
+concatenates the pages of multiple Portable Document Format (PDF)
+files together into a single file.\&.
+.PP
+If no source PDF file ('SRC') is specified, input (but just one file -- not
+very useful here!
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output.
+The '--batch' option of pdfjam(1) cannot be used.
+.PP
+pdfjoin is a simple wrapper for pdfjam, which provides a front end to many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+pdfjoin is part of the "PDFjam" package of tools, whose homepage is at
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+The pages of the output file will all have the same size and orientation.
+.PP
+pdfjoin does not work with encrypted PDF files, and does not
+preserve hyperlinks. The output pages are all one size.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1)\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfjoin is written and maintained by David Firth as part of the PDFjam
+package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfnup.1 b/Master/texmf/doc/man/man1/pdfnup.1
new file mode 100644
index 00000000000..51d7aad203e
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfnup.1
@@ -0,0 +1,78 @@
+.TH "pdfnup" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfnup \- n-up the pages of pdf files
+.SH "SYNOPSIS"
+.PP
+pdfnup [OPTION [OPTION] \&.\&.\&.] [SRC [PAGESPEC] [SRC [PAGESPEC]] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfnup converts files in the Adobe Portable Document Format (PDF)
+to "n-up" PDF files, that is, with multiple input pages
+per output page, for
+more economical printing etc\&. The default processing is to 2-up
+landscape output with no frame around pages, equivalent to using the
+options '--nup 2x1 --landscape true --frame false'.
+.PP
+If no source PDF file ('SRC') is specified, input
+is from /dev/stdin. If 'PAGESPEC' is omitted, all pages are processed.
+.PP
+Source files are processed sequentially into a single output
+unless the '--batch' option is used, in which case they are processed
+separately.
+.PP
+pdfnup operates on one or more PDF files, and (either with the
+'--batch' option or with '--outfile DIR' where 'DIR' is a directory) the
+resulting files have
+the suffix '-nup' applied to their names by default. To change
+the suffix,
+use the '--suffix' option, for example
+.PP
+.RS
+.B pdfnup --nup 2x2 --suffix '-2x2' --batch myfile1.pdf myfile2.pdf
+.RE
+.PP
+will result in files named 'myfile1-2x2.pdf' and 'myfile2-2x2.pdf'.
+.PP
+pdfnup is a simple wrapper for pdfjam, which provides a front end to many of the capabilities of the pdfpages
+package for pdflatex\&. A working installation of pdflatex, with
+the pdfpages and geometry packages, is required\&.
+.PP
+pdfnup is part of the "PDFjam" package of tools, whose homepage is at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfnup does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1) pdfpun(1) \&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfnup is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/texmf/doc/man/man1/pdfpun.1 b/Master/texmf/doc/man/man1/pdfpun.1
new file mode 100644
index 00000000000..0e4b3415429
--- /dev/null
+++ b/Master/texmf/doc/man/man1/pdfpun.1
@@ -0,0 +1,68 @@
+.TH "pdfpun" "1" "10 March 2010" "" ""
+.SH "NAME"
+pdfpun \- n-up the pages of a pdf file, with right-to-left ordering
+.SH "SYNOPSIS"
+.PP
+pdfpun SRC [PAGESPEC] --outfile FILENAME [OPTION [OPTION] \&.\&.\&.]
+.PP
+.SH "DESCRIPTION"
+.PP
+pdfpun converts a file in the Adobe Portable Document Format (PDF)
+to a "n-up" PDF file, that is, with multiple input pages
+per output page, for
+more economical printing etc\&. The pages are ordered right-to-left in the
+output. The default processing is to 2-up
+landscape output with no frame around pages, equivalent to using the
+options '--nup 2x1 --landscape --frame false'.
+.PP
+SRC must be a PDF file; '/dev/stdin' can be used for PDF input via a pipeline.
+.PP
+If PAGESPEC is omitted, all pages are processed (equivalent to '-' as PAGESPEC)
+.PP
+OPTION is any option of pdfjam(1) other than --batch.
+.PP
+pdfpun is a simple wrapper for pdfjam, which provides a front end to many
+of the capabilities of the pdfpages package for pdflatex\&.
+A working installation of pdflatex, with
+the pdfpages package, is required\&.
+.PP
+pdfpun is part of the "PDFjam" package of tools, whose homepage is at
+http://www.warwick.ac.uk/go/pdfjam\&.
+.PP
+.SH "SETUP"
+.PP
+See http://go.warwick.ac.uk/pdfjam .
+.PP
+.SH "USAGE"
+.PP
+For the available options and site/user defaults, see the output of
+.PP
+.RS
+.B pdfjam --help
+.RE
+.PP
+For further information and some examples see
+http://go.warwick.ac.uk/pdfjam \&.
+.PP
+.SH "LIMITATIONS AND BUGS"
+.PP
+pdfpun does not work with encrypted PDF files, and does not
+preserve hyperlinks.
+.PP
+The '--keepinfo' option does not work.
+.PP
+Please report bugs! See the website at
+http://www.warwick.ac.uk/go/pdfjam \&.
+.PP
+.SH "LICENSE"
+.PP
+PDFjam is distributed under the GNU public license\&.
+.PP
+.SH "SEE ALSO"
+.PP
+pdfjam(1) pdfnup(1)\&.
+.PP
+.SH "AUTHOR"
+.PP
+pdfpun is written and maintained by David Firth as part of the PDFjam package\&.
+
diff --git a/Master/tlpkg/bin/check-wrapper-consistency b/Master/tlpkg/bin/check-wrapper-consistency
index 32587003358..989016f3ced 100755
--- a/Master/tlpkg/bin/check-wrapper-consistency
+++ b/Master/tlpkg/bin/check-wrapper-consistency
@@ -85,8 +85,9 @@ sub unx_wrapper_entries
# Windows is special, as usual. Given the list of wrappers in UW, check
-# that each of those entries exists in W32DIR as a .exe, and is a copy
-# of the canonical w32 wrapper specified in W32CANONICAL.
+# that each of those entries (excluding various exceptions) exists in
+# W32DIR as a .exe, and is a copy of the canonical w32 wrapper exe
+# specified in W32CANONICAL.
#
sub check_w32
{
@@ -100,6 +101,7 @@ sub check_w32
next if $target =~ /dviout/; # gui stub
next if $target =~ /listings-ext/; # shell script
next if $target =~ /man/; # no symlink
+ next if $target =~ /pdfjam/; # shell scripts
next if $target =~ /psv/; # gui stub
next if $target =~ /simpdftex/; # shell script
next if $target =~ /texmfstart/; # has its own binary
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index ef9f94d246c..b2b32982de4 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -217,7 +217,7 @@ my @TLP_working = qw(
parallel paresse parrun passivetex
patch patchcmd patgen2-tutorial pauldoc pax pbox pb-diagram
pdf14 pdf-forms-tutorial-de pdf-forms-tutorial-en
- pdf-trans pdfcomment pdfcprot pdfcrop pdfmarginpar
+ pdf-trans pdfcomment pdfcprot pdfcrop pdfjam pdfmarginpar
pdfpages pdfscreen pdfslide pdfsync pdftex-def pdftricks pdfx
perception perltex
permute persian-bib petiteannonce
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index ca6069a6754..febb7878956 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -463,6 +463,7 @@ $Master = "$mydir/../..";
'pdf-forms-tutorial-de', "&MAKEpdf_forms_tutorial",
'pdf-forms-tutorial-en', "&MAKEpdf_forms_tutorial",
'pdfbook', "die 'skipping, requires compilation'",
+ 'pdfjam', "&MAKEflatten",
'pdfmarginpar',"&MAKEflatten",
'pdfrack', "die 'skipping until someone asks for it'",
'pdfx', "&MAKEflatten",
@@ -1594,6 +1595,7 @@ $standardxmt='\.xmt';
'mkgrkindex' => 'mkgrkindex$',
'mkjobtexmf' => '\.pl$',
'pdfcrop' => '\.pl$',
+ 'pdfjam' => 'pdf[^.]*$',
'perltex' => '\.pl$',
'pkfix' => '\.pl$',
'pkfix-helper' => 'pkfix-helper$',
@@ -1622,6 +1624,7 @@ $standardxmt='\.xmt';
'latexdiff' => '\.1$',
'latexmk' => 'latexmk.1',
'perltex' => 'perltex.1',
+ 'pdfjam' => '\.1$',
'pkfix-helper' => 'pkfix-helper.1',
'purifyeps' => 'purifyeps.1',
'texdiff' => 'texdiff.1',
diff --git a/Master/tlpkg/tlpsrc/collection-binextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-binextra.tlpsrc
index 22ce0150ff4..c0d35bcf59b 100644
--- a/Master/tlpkg/tlpsrc/collection-binextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-binextra.tlpsrc
@@ -32,6 +32,7 @@ depend listings-ext
depend mkjobtexmf
depend patgen
depend pdfcrop
+depend pdfjam
depend pdftools
depend pkfix
depend pkfix-helper
diff --git a/Master/tlpkg/tlpsrc/pdfjam.tlpsrc b/Master/tlpkg/tlpsrc/pdfjam.tlpsrc
new file mode 100644
index 00000000000..9fa2eee0862
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/pdfjam.tlpsrc
@@ -0,0 +1,38 @@
+binpattern f bin/${ARCH}/pdf180
+binpattern f bin/${ARCH}/pdf270
+binpattern f bin/${ARCH}/pdf90
+binpattern f bin/${ARCH}/pdfbook
+binpattern f bin/${ARCH}/pdfflip
+binpattern f bin/${ARCH}/pdfjam-pocketmod
+binpattern f bin/${ARCH}/pdfjam-slides3up
+binpattern f bin/${ARCH}/pdfjam-slides6up
+binpattern f bin/${ARCH}/pdfjam
+binpattern f bin/${ARCH}/pdfjoin
+binpattern f bin/${ARCH}/pdfnup
+binpattern f bin/${ARCH}/pdfpun
+#
+runpattern f texmf-dist/scripts/pdfjam/pdf180
+runpattern f texmf-dist/scripts/pdfjam/pdf270
+runpattern f texmf-dist/scripts/pdfjam/pdf90
+runpattern f texmf-dist/scripts/pdfjam/pdfbook
+runpattern f texmf-dist/scripts/pdfjam/pdfflip
+runpattern f texmf-dist/scripts/pdfjam/pdfjam-pocketmod
+runpattern f texmf-dist/scripts/pdfjam/pdfjam-slides3up
+runpattern f texmf-dist/scripts/pdfjam/pdfjam-slides6up
+runpattern f texmf-dist/scripts/pdfjam/pdfjam
+runpattern f texmf-dist/scripts/pdfjam/pdfjoin
+runpattern f texmf-dist/scripts/pdfjam/pdfnup
+runpattern f texmf-dist/scripts/pdfjam/pdfpun
+#
+docpattern +f texmf/doc/man/man1/pdf180.*
+docpattern +f texmf/doc/man/man1/pdf270.*
+docpattern +f texmf/doc/man/man1/pdf90.*
+docpattern +f texmf/doc/man/man1/pdfbook.*
+docpattern +f texmf/doc/man/man1/pdfflip.*
+docpattern +f texmf/doc/man/man1/pdfjam-pocketmod.*
+docpattern +f texmf/doc/man/man1/pdfjam-slides3up.*
+docpattern +f texmf/doc/man/man1/pdfjam-slides6up.*
+docpattern +f texmf/doc/man/man1/pdfjam.*
+docpattern +f texmf/doc/man/man1/pdfjoin.*
+docpattern +f texmf/doc/man/man1/pdfnup.*
+docpattern +f texmf/doc/man/man1/pdfpun.*