Fix markup error
[ccbib.git] / scripts / a5_on_a4
blob787eeefdc831e527c4cc48336929bf6aaf467043
1 #!/bin/sh
3 bbox="0 0 596 842" #A4
5 if [ -z "$2" ]; then
6 output=$(basename $1)
7 else
8 output=$2
9 fi
11 pstops 2:0 $1 | mypsbook -g2 | pstops -pa4 "2:0L(1w,0)+1L(1w,0.5h)" | strippagesize "$bbox" a4 >v_$output
12 pstops 2:1 $1 | mypsbook -g2 | pstops -pa4 "2:0R(0,0.5h)+1R(0,1h)" | strippagesize "$bbox" a4 >h_$output