I'm writing some kind of a notebook using \LaTeX.
I have a lot of notes.
(EDIT: Like, a lot.
Almost one per day for the past couple years.
They range from very short, single line, notes to very long ones including equations, figures, references, web links, etc.)
In order not to recompile all notes whenever I add a new note (EDIT: I used to have a single tex file, but it was becoming too large, and compiling too slow), I now put them into separate folders (EDIT: e.g., YYYY/MM/DD/note.tex), compile only the new ones, and then merge the PDFs together using gs. (EDIT: I'm running "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Notebook.pdf -dBATCH "+full_filenames where I build full_filenames in python using os.walk.)
Everything is pretty smooth, but the merge is pretty slow.
Is there a way to rapidly merge many PDFs together?
(EDIT: I tried pdftk before, it's definitely faster, but the merged pdf is huge!)
EDIT: Another reason why I split the big notebook into many folders, is that I have a now a small handwriting device, so I also take notes manually now, and I would like to merge all pdfs, from LaTeX and the handwriting software, into a single pdf.
EDIT: Sorry for being sentimental, but thanks for the help guys, I really appreciate!
pdftk pdf1 pdf2 ... pdfn cat output final-pdfcould be a solution. – Jay Dec 16 '14 at 12:29subfilespackage? – darthbith Dec 16 '14 at 12:38pdfpages. – Dec 16 '14 at 12:52pdfpagesyou can set it up so that you at least get a ToC and headers. – cfr Dec 16 '14 at 23:09addtotocor some other amazing feature never will be a good substitute of a true LaTeX subdocument. What happen if you have numbered sections in each PDF? You can make a fake ToC, but how change the section titles inside each PDF? The list of drawbacks is endless. I often use the greatpdfpages, but for this specific task IMHO is not the appropiate tool ... at least if you are the owner of the LaTeX source code. – Fran Dec 17 '14 at 00:19pdfpagesoverpdftk, for example.) – cfr Dec 17 '14 at 01:15\include, the packages asdocmutesave your day without noticeable constrains. I compile stand alone articles that lately are merged as chapters of a big book. I do not need to recompile the book often, since I detect most problems after compiling each article. – Fran Dec 17 '14 at 02:49standaloneas well. I'm not against your approach: it is often best. But sometimes, you just don't need it or it just isn't worth the extra hassle! – cfr Dec 17 '14 at 03:19:)just a few days ago one of my answers and some other were based in this nice package. Whether to use a screwdriver or a wrench to remove a screw? Depends on the screw type!:)– Fran Dec 17 '14 at 12:58