> From: "Simons, Don" <[EMAIL PROTECTED]>
> Date: Mon, 28 Jun 1999 13:24:12 -0700

Sorry the last mail escaped before I was ready. So I continue:

Procedure for 8 pages using dviselec, dviconca, dvidvi, ...
==============================================================================
setlocal
set del=del
if "%2%" != "" set del=%2%
set file=%@name[%1%]

dviselec   1   %file%.dvi x4.dvi
dviselec   2 7 %file%.dvi x2.dvi
dviselec     8 %file%.dvi x3.dvi
dviconca  -o x1.dvi x3.dvi x4.dvi
dvidvi    2:0,1(21cm,0) x1 y1
dvidvi    2:0,1(21cm,0) x2 y2

dviselec   3   %file%.dvi x4.dvi
dviselec   4 5 %file%.dvi x2.dvi
dviselec     6 %file%.dvi x3.dvi
dviconca  -o x1.dvi x3.dvi x4.dvi
dvidvi    2:0,1(21cm,0) x1 y3
dvidvi    2:0,1(21cm,0) x2 y4

dviconca -o %tmp%\%file%.dvi y1.dvi y2.dvi y3.dvi y4.dvi
%del% y[0-9a-f].dvi x[1-4].dvi
rem dvihp   @1a3_a4 /ob+ /do                    /fd0 %tmp%\%file%.dvi
rem dvihp   @1a3_a4 /ob+ /de                    /fd0 %tmp%\%file%.dvi
    dviview @1a3_a4 /tr0 /w=297mm /h=210mm      /fd0 %tmp%\%file%.dvi
call dvips -t a3 -t landscape -o %tmp%\%file%.ps %tmp%\%file%.dvi 
call touchas %file%.dvi %tmp\%file%.ps
endlocal
==============================================================================

As with the previous procedure "dviview" is used to view the result; the
two calls of dvihp can be used to print the result with emtex's dvi-driver
reduced to A4-paper in two passed on a single-side printer.


Similar to dvibook works pstops. But there are a lot of versions floating
around which have a slightly different syntax and which tell another syntax
when called with "-h" as parameter as they really accept.

Nevertheless here is the procedure, but in this case for packing 4 a4 pages
zoomed to A5 with factor 0.7 on one a4 sheet: p2pbook.bat
==============================================================================
pstops1 4:[email protected](21cm,0)[email protected](21cm,14.85cm),[email protected](0,14.85cm)[email protected](0,29.7cm) %1 %2
==============================================================================

The first parameter is the input file, the 2nd the output file; e.g.:

p2pbook letter.ps ledger.ps

To understand the paramters one should know that the coordinates of a PS-page
have the origin at the lower left corner. Hold the page (virtually) at this
point when manipulating the pages. Pages are processed in hooks of n and are 
numbered from 0 to n-1; negative numbers tell to take the pages from the end 
of the source. So one can read the above parameters:

4: take pages in hooks of four (append as many empty pages to the input so that
    the number of pages may be divided by four)
-3 take the last page from the end of the input
L  rotate it to the left by 90 degrees
@.7 zoom it with factor .7
(21cm,0) put it to the output page at position (21cm,0). That means: move the
   original lower left corner of the current input page, which is now the
   lower right corner after the left turn, to the lower right corner of the
   output page.
+  put another input page to the same output page
0  take the first page
L  rotate it to the left
@.7 ...
(21cm,14.85cm) move the original lower left corner of the current input page, 
   which is now the lower right corner after the left turn, to the lower right
   corner of the output page and then half the output page upward.
,  put another input page from the current hook to the next output page

...
For your case, Don, the parameters are (could be :-):

pstops1 4:[EMAIL PROTECTED](11",0)[EMAIL PROTECTED](11",8.5"),[EMAIL PROTECTED](0,8.5")[EMAIL PROTECTED](0,17") %1 %2


Again: there are different versions of pstops esp. for DOS floating around.
I use a version I calles pstops1. Whoever is interested in those versions I 
use may fetch them for some days from ftp://ftp.gmd.de/outgoing/icking/book.zip

Sorry again that the first mail escaped before I could proof-read it.

Hope this hilft -- Werner

Reply via email to