summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/pdfjam/pdfjam-slides3up
blob: e41e50a7b96191889d1e4daf29faac131b963ffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.08
##
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; shift ;;
    *)
	continue ;;
esac
exec 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" "$@"