0

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?

Asma
  • 1
  • Welcome to TeX.SE. Have you tried placing \clearpage right before \bibliography -- and then deleting the bibliography page(s) from the pdf file? – Mico Nov 30 '22 at 20:41
  • 2
    With biblatex, you can also simply omit \printbibliography. – Fran Nov 30 '22 at 21:25
  • I am not using the \printbibliography command. I have used \nobibliography but then citations are replaced by question marks. – Asma Dec 01 '22 at 08:40
  • How did you find \nobibliography command? Overleaf. You do not say how you are managing your bibliography: is it apacite (which can mask citations), or natbib or biblatex using natbib style, or biblatex using apa6 style, ..etc? Does this or this help? Note: It is really easy with biblatex. – Cicada Dec 01 '22 at 11:04
  • i am using \usepackage[natbibapa]{apacite} – Asma Dec 01 '22 at 19:57
  • I am using \usepackage[natbibapa]{apacite}. the links you have mentioned are not working for me @Cicada – Asma Dec 01 '22 at 19:59
  • "not working for me" is not a helpful description: please supply small minimal example code that reproduces the issue (not your thesis), and put the code into the question, so that people can help and test solutions with. – Cicada Dec 02 '22 at 03:19

1 Answers1

1

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:

apa with

Without:

apa without

Cicada
  • 10,129