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...pdfpages
package there is abooklet
option or you could usesignature=40
(any number which is a multiple of 4 is fine) if that option wouldn't be sufficient for you.