I am writing my thesis using \documentclass{book} on overleaf. In order to perform plagiarism test, I have to remove the references but then all the citation, \citeauthor are replaced by question marks. Is there anyway to get author, year citation without the bibliography or references?
1 Answers
Using the solution in the linked questions, if the bib file is testa.bib, together with your \usepackage[natbibapa]{apacite} setting, then \bibliography{testa.bib} prints the bibliography and \nobibliography{testa.bib} does not print the bibliography.
Whenever bib data has changed between runs or on first run, remember to compile with the 3 steps: pdflatex (scan for bib data in document), bibtex (get bib data from bib file), pdflatex (print returned bib data).
MWE
% arara: pdflatex
% arara: bibtex
% arara: pdflatex
\begin{filecontents*}[overwrite]{testa.bib}
@article{bla,
title={blabla},
author={me},
}
\end{filecontents*}
\documentclass{book}
\usepackage[natbibapa]{apacite}
\usepackage{bibentry}
%============ document
\begin{document}
xxx author citation: \citeauthor{bla}
\bibentry{bla}
\bibliographystyle{plainnat}
\bibliography{testa.bib} % prints the bibliography
%\nobibliography{testa.bib} % does not print the bibliography
\end{document}
With:
Without:
- 10,129


\clearpageright before\bibliography-- and then deleting the bibliography page(s) from the pdf file? – Mico Nov 30 '22 at 20:41biblatex, you can also simply omit\printbibliography. – Fran Nov 30 '22 at 21:25\nobibliographycommand? Overleaf. You do not say how you are managing your bibliography: is itapacite(which can mask citations), ornatbiborbiblatexusing natbib style, orbiblatexusing apa6 style, ..etc? Does this or this help? Note: It is really easy withbiblatex. – Cicada Dec 01 '22 at 11:04