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.
\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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
Stefan
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Reading bibliography entries from different bib files and merging them into one bibliography at the end.
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