Contents
Can a PDF file be split into two TeX files?
The answer is no, TeX outputs one PDF file. I’d use a tool to split the PDF files afterwards. pdfpages (TeX) pdfsam, and pdftk should do the trick. I know this is an old question, but here is an alternative approach, based on an idea from Automatically create two PDF output files from one tex file [duplicate]
Is there a way to merge PDF files using latex?
During the past few years, I have become a fan of LaTex. I write documents using LaTex whenever possible for ease of formatting, inserting images and version control. Today I’ve found an easy way to merge PDF files using LaTex.
Can you use shellescape instead of pdflatex?
It also offers a \\ShellEscape which can be used (also with pdflatex) instead of the primitive commands. The example looks then like this. The answer is no, TeX outputs one PDF file. I’d use a tool to split the PDF files afterwards. pdfpages (TeX) pdfsam, and pdftk should do the trick.
Is it possible to create multiple.tex files?
I don’t think you can make a single .tex file produce multiple .PDFs, however you could create some very simple .tex files (one per PDF you want to create), which simply set up a few macros (your personalised variables) and then \\input (or \\include) the common .tex file.
Is it possible to call pdfLaTeX again inside a document?
Yes it is possible if you enable \\write18 (e.g. pdflatex –shell-escape with MiKTeX). Then you can call pdflatex again inside your document. An example (the code is not from me). It will generate three documents \\jobname1 – \\jobname3: As noted in Martin Heller’s comment you need to change this code for case sensitive operating systems to:
Which is the first line in TeX LaTeX?
The first line, for example, says that both volume 1 and volume 2 should start at page 3 and continue until one page before the first chapter. ch:intro is the latex label for the first chapter.
How to compile and extract pages in latex?
You can compile your full document and then extract the required pages using another latex “driving” document whichs uses pdfpages. For example: Defines a command \\outputonly, whose argument is a list of pages to be output.
https://www.youtube.com/watch?v=ORqbmDz84BQ