[Tex/LaTex] Print Bibliography Only

bibliographiesbibtex

I need to generate my references separately from the main document (i.e., one pdf with the content and one with the bibliography). I achieved this the following way:

To generate the pdf lacking references, compile the document with the following line \nobibliography{bibfile}. To compile, run pdflatex; bibtex; pdflatex; pdflatex.

To generate the pdf with only references, change the above line to \bibliography{bibfile}, and comment the entire document except this line and the \bibliographystyle line. To comment, I used verbatim (\usepackage{verbatim}) and enclosed everything within \begin{document} and \end{document} with \begin{comment} and \end{comment}, except, as mentioned, the bibliography-pertinent commands. To compile, run pdflatex once.

Is there a simpler way to achieve the same result (one file with references only and one with content only)?

Best Answer

Maybe not exactly the solution to your problem, but I give it a shot: You could start the bibliography on a new page and reset the page counter to one

\newpage
\setcounter{page}{1}
\bibliography{bibfile}

This way you still produce one PDF file with both content and references, but you could separate them into two appropriately page numbered independent files.