0

I have a .bib file (bibliografia.bib) used to cite authors but I don't want to print the references. My latex document is structured as follows:

\usepackage[round]{natbib}
\bibliographystyle{plainnat}
\begin{document}

\bibliography{bibliografia.bib}

\end{document}

How can I remove the printed references?

Thanks in advance!

My attempt

This worked for me

 \usepackage[round]{natbib}
 \bibliographystyle{plainnat}
 \begin{document}

\newsavebox\mytempbib \savebox\mytempbib{\parbox{\textwidth}{\bibliography{bibliografia.bib}}}

\end{document}

  • open the pdf file and delete the pages that contain the formatted bibliography? – Mico Aug 27 '20 at 21:22
  • @Mico Is there a way to generate pdf's from Latex without the printed references? – Celine Harumi Aug 27 '20 at 21:23
  • Not that I know of. – Mico Aug 27 '20 at 21:45
  • @CelineHarumi You can use the atbegshi package to discard (entire) pages from the PDF file. Load \usepackage{atbegshi}, then do \AtBeginShipoutNext{\AtBeginShipoutDiscard} before the page(s) you want discarded. In the next LaTeX release this function will be built into the kernel, so you can do (without packages) \AddToHook{shipout/before}{\DiscardShipoutBox}. – Phelype Oleinik Aug 28 '20 at 06:28
  • The simplest: use biblatex with natbib compatibility enabled as showed here and remove (or comment) the command \printbibliography. – Fran Aug 28 '20 at 09:37

0 Answers0