[OS X TeX] Compile to 2 separate (pdf) documents...
vivrii at gmail.com
Tue Sep 30 00:54:23 CEST 2008
On Mon, Sep 29, 2008 at 5:46 PM, Maarten Sneep <maarten.sneep at xs4all.nl> wrote:
> On 29 sep 2008, at 23:36, Joseph C. Slater PE, PhD wrote:
>> For reasons beyond my control, I need to separate my document into two
>> separate documents (body/references). I can do this by hand, but it would be
>> nice if I could have the references automatically split off into a separate
>> file. Is there an easy way to do this within the latex document?
> Very tricky: printing a copy of the reference to a separate file is easy:
> just \input the .bbl file (assuming you're using bibtex) in a minimal latex
> file. However, to keep the correct references within the body itself, you
> need to have the references in there somewhere for the \cite commands.
>> (yeah, I can split by printing to PDF, using Acrobat, etc, but would like
>> this more direct automatic solution).
> With the separate files (body + references and references alone), you can
> count the number of pages (pdfinfo), and then script something with pdftk.
Or with gs
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=3 -dLastPage=5
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
More information about the macostex-archives