i have different bibliography entries in different bibliography files. I have tried to use the \usepackage{multibib} but I am getting an error. This is how I define the entries in the main file.
\usepackage{multibib}
\bibliographystyle{apalike}
\renewcommand\bibname{References}% Multiple bibliography entries from different bibliograph files
\bibliography{bibliography1}
\bibliography{bibliography2}
\bibliography{bibliography3}
For example in Chapter 1, I cite from bibliograpgy1 with this reference; \cite{K1
In chapter 2, I cite from from bibliograpgy2 with this reference; \cite{Gouvea,Apos}
In chapter 3, I cite from from bibliograpgy3 with this reference; ~\cite{CryptoBook,LiCai}
there is no repetition of these entries in either bibliography, however instead of appending the different citations into one bibliography, I end up with three references pages with the same repeated reference.
I have attached the log files, resultant pdf output and a simplified code for the template can be found here; https://drive.google.com/file/d/1oEuo36 ... sp=sharing
Your suggestions and corrections are highly appreciated.
Theses, Books, Title pages ⇒ Reading bibliography entries from different bib files and merging them into one bibliography at the end.
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
The link to the simplified working template is here; https://drive.google.com/file/d/1O5c5Vh ... sp=sharing
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
I don't see an error in the log file. You did not mention the text of the error message, what is it?
Stefan
Stefan
LaTeX.org admin
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
This is the error from the compilation: "Process started
This is BibTeX, Version 0.99d (TeX Live 2022) The top-level auxiliary file: main.aux The style file: apalike.bst Illegal, another \bibdata command---line 53 of file main.aux : \bibdata : {bibliography2} I'm skipping whatever remains of this command Illegal, another \bibdata command---line 55 of file main.aux : \bibdata : {bibliography3} I'm skipping whatever remains of this command Database file #1: bibliography1.bib Warning--I didn't find a database entry for "Gouvea" Warning--I didn't find a database entry for "Apos" Warning--I didn't find a database entry for "CryptoBook" Warning--I didn't find a database entry for "LiCai" (There were 2 error messages)
Process exited with error(s)"
This is BibTeX, Version 0.99d (TeX Live 2022) The top-level auxiliary file: main.aux The style file: apalike.bst Illegal, another \bibdata command---line 53 of file main.aux : \bibdata : {bibliography2} I'm skipping whatever remains of this command Illegal, another \bibdata command---line 55 of file main.aux : \bibdata : {bibliography3} I'm skipping whatever remains of this command Database file #1: bibliography1.bib Warning--I didn't find a database entry for "Gouvea" Warning--I didn't find a database entry for "Apos" Warning--I didn't find a database entry for "CryptoBook" Warning--I didn't find a database entry for "LiCai" (There were 2 error messages)
Process exited with error(s)"
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
The auxilliary file is attached here
and everything else is as is in the template.- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
multibib can be complicated. From Overleaf:
Stefan
You can do that, or if it's too complicated, use a single bibliography. That's relevant for a scientist. Splitting in multiple bibliographies are cosmetics.If compiling on a local machine: Compiling your main document .tex will generate multiple .aux files. You must now run bibtex on all these .aux files, before compiling the main document .tex file again.
Stefan
LaTeX.org admin
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
I am compiling on a local machine, how would i run separate Bibtex files.
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
Gotcha! I combined and run bibtex and it worked. Thanks!