Im new to tex so I'm sorry if this is something is actually easy to do but I cannot find a solution.
I want to print a signature/booklet of my book by printing two separate parts of the sig on one piece of paper. Here's an example with a 16 page signature
| Page 1 A side | Page 1 B side | | Page 2 A side | Page 2 B side |
| | | | | |
| P A | B O | | L E | F K |
| | | | | |
| Page 16 Page 1 | Page 2 Page 15 | | Page 12 Page 5 | Page 6 Page 11 |
| | | | | |
| N C | D M | | J G | H I |
| | | | | |
| Page 14 Page 3 | Page 4 Page 13 | | Page 10 Page 7 | Page 8 Page 9 |
I would then cut the pages in half and put the signatures together. Before I discovered TEX I would use a regular word processing program and output the pdfs by specifying the order by hand like this:
16,1,14,3,2,15,4,13,12,5,10,7,6,11,8,9
which is fine when it's something as small as this but figuring out the order and checking for typos for 40+ pages in each of the 8 signatures in a book takes a long time as you can imagine.
What I'm asking is, Is there a way or a package to automatically preform this kind of page ordering when outputting a pdf in TEX?
Many thanks in advance.
Edit: I just wanted to add to add a quick bat code I use to quickly run a pdf through the tex code that Malipivo posted (thanks again!) without having to run each file one by one
ECHO
SET /P UserInput=Please Enter File Name(including path):
copy %UserInput% "c:\path to the tex files folder\Book.pdf"
cd "c:\path to the tex files folder\"
pdflatex order.tex
pdflatex order2.tex
pdflatex order3.tex
pdflatex order4.tex
%This part is optional but it's nice to automatically move the finished file out of the working folder
rename order4.pdf Signature.pdf
move Signature.pdf Signatures\







pdfpages, which wouldn't require you to "check for typos for 40+ pages... – Werner May 19 '14 at 17:22pdfpagespackage there is abookletoption or you could usesignature=40(any number which is a multiple of 4 is fine) if that option wouldn't be sufficient for you. – Malipivo May 19 '14 at 18:35book.pdftotemp1.pdfand then fromtemp1.pdftofinal.pdf, that's for the case that none of the settings would be working for you. – Malipivo May 19 '14 at 19:21\setuppapersize [A5, landscape] [A4] \setuparranging [2TOPSIDE]
\starttext \dorecurse{8}{% \centerline{\definedfont[Serif at 256pt]\recurselevel}\page} \stoptext
– SupahHakahDaru May 20 '14 at 00:40each one of the lines have this errorUndefined control sequence (control sequence here)` oddly. Im using miktex and everything should be right since I'm using the latest version (2.9) and it says context should work with it. Im sorry if this is a beginner's error but googling this didnt pull up much