Suppose that I want to split the output of my LaTeX document in several .pdf files. Is there something like:


some part of my document


some other part

\fromnowwriteagaintofile{foo.pdf} %I don't know it this is asking too much.
  • 1
    See if that gets you started: tex.stackexchange.com/questions/5228/…
    – Ingmar
    May 17, 2022 at 13:05
  • 2
    You'd have to start a new page, write the current absolute page number to an auxiliary file, create a script that reads in that auxiliary file and splits your output pdf into several files based on that auxiliary file's contents. LaTeX alone can't open multiple output files, only one PDF is supported.
    – Skillmon
    May 17, 2022 at 13:08


Browse other questions tagged .