Druckerei (aka Printing)
1. Printing
CUPS address: http://localhost:631about CUPS: CUPS on the AltLinux page or, the same, here in pdf
2. A5 Printing
make .ps by anyway, like pdftops file.pdf file.ps, step 1:psbook file.ps|psnup -l -2|psselect -o|pstops '1:0(0mm,-10mm)'|lprstep 2:
psbook file.ps|psnup -l -2|psselect -er|pstops '1:0(0mm,-10mm)'|lprdon't mix the sheets! may be, usefull is the option '-pa4' of psnup. see man psutils.
3. A6 printing
psselect -p(list1) file.ps|psnup -4|lprreverse!
psselect -p(list2) file.ps|psnup -4|psselect -r|lprwhere list1, list2 - from math:
n=`nubmerofpages`; L1={n,1};L2={2,n-1}; Do[L1=L1~Join~{n-2i,1+2i};L2=L2~Join~{2+2i,n-1-2i},{i,1,n/4-1}]; Print[L1," ", L2];
4. Cups
#service restart cups
http://127.0.0.1:631/adminadd Printer - AddSocket/HP JetDirect - connection: socket://10.193.114.30 - name - Make: HP - Model: HP LaserJet 3052 hpijs pcl3, 3.10.5
5. Psutils
Task: 60 pages 55 x 105 mm from the file 1.ps must be printed as a booklet on 3 papersheets, with 10 pages on a side. The bash-script:psselect -p60,1,58,3,56,5,54,7,52,9 1.ps 11.ps pstops "10:0(0mm,238mm)+1(105mm,238mm)+2(0mm,183mm)+3(105mm,183mm)+4(0mm,128mm)+5(105mm,128mm)+6(0mm,73mm)+7(105mm,73mm)+8(0mm,18mm)+9(105mm,18mm)" 11.ps 21.ps psselect -p50,11,48,13,46,15,44,17,42,19 1.ps 12.ps pstops "10:0(0mm,238mm)+1(105mm,238mm)+2(0mm,183mm)+3(105mm,183mm)+4(0mm,128mm)+5(105mm,128mm)+6(0mm,73mm)+7(105mm,73mm)+8(0mm,18mm)+9(105mm,18mm)" 12.ps 22.ps psselect -p40,21,38,23,36,25,34,27,32,29 1.ps 13.ps pstops "10:0(0mm,238mm)+1(105mm,238mm)+2(0mm,183mm)+3(105mm,183mm)+4(0mm,128mm)+5(105mm,128mm)+6(0mm,73mm)+7(105mm,73mm)+8(0mm,18mm)+9(105mm,18mm)" 13.ps 23.ps psselect -p2,59,4,57,6,55,8,53,10,51 1.ps 14.ps pstops "10:0(0mm,238mm)+1(105mm,238mm)+2(0mm,183mm)+3(105mm,183mm)+4(0mm,128mm)+5(105mm,128mm)+6(0mm,73mm)+7(105mm,73mm)+8(0mm,18mm)+9(105mm,18mm)" 14.ps 24.ps psselect -p12,49,14,47,16,45,18,43,20,41 1.ps 15.ps pstops "10:0(0mm,238mm)+1(105mm,238mm)+2(0mm,183mm)+3(105mm,183mm)+4(0mm,128mm)+5(105mm,128mm)+6(0mm,73mm)+7(105mm,73mm)+8(0mm,18mm)+9(105mm,18mm)" 15.ps 25.ps psselect -p22,39,24,37,26,35,28,33,30,31 1.ps 16.ps pstops "10:0(0mm,238mm)+1(105mm,238mm)+2(0mm,183mm)+3(105mm,183mm)+4(0mm,128mm)+5(105mm,128mm)+6(0mm,73mm)+7(105mm,73mm)+8(0mm,18mm)+9(105mm,18mm)" 16.ps 26.psforms .ps-files 2x.ps for following printing. The order of rpinting is: 21.ps+24.ps, 22.ps+25.ps, 23.ps+26.ps
This work was inspired by articles:
tex.imm.uran.ru/texserver/utils/pstops/pstops/
www.opennet.ru/base/sys/psutils.txt.html
and here is the solution of '(' problem in bash (take the pagespecs in double quotes):
qnx.org.ru/forum/index.php?topic=1460.0;wap2