I want to create a bibliography in two different parts: books and online. But copying the code from a working example, I don't get what I want. The second bibliography section does not come up. I assume that the problem in my newcite command, but I am not sure.
Here is my code:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage[resetlabels,labeled]{multibib}
\newcites{New}{The other list}
\begin{document}
Les pommes sont rouges.\cite{aa} Il pleut en hiver!\citeNew{ca}
\bibliographystyle{plain}
\bibliography{refa}
\bibliographystyleNew{plain}
\bibliographyNew{refc}
\end{document}
and my bib files:
refa
@Article{aa,
author = {Author, A.},
title = {Les pommes},
journal = {Journal},
year = 2000
}
@Article{ab,
author = {Brother, B.},
title = {Titling},
journal = {Ann. J.},
year = 2002
}
refc:
@Article{ca,
author = {Author, A.},
title = {Title},
journal = {Journal},
year = 2000
}
@Article{cb,
author = {Brother, B.},
title = {Titling},
journal = {Ann. J.},
year = 2002
}
That is what I get. (there is only one citation function that is working) I compiled pdfLaTex, BibLaTeX, pdfLaTeX, pdfLaTeX to generate this pdf.
It is also important to mention that I have all the packages updated.
Finally, what is the file type that Latex is looking for when it is written plain
? Is it a .bst file?
Best Answer
Your code sets up two
.aux
files:\jobname.aux
, where\jobname
is the name of your main tex file, andNew.aux
. You need to run BibTeX on both\jobname
andNew
. Assuming the file name of your main tex file ismain.tex
, the compilation sequence should beIncidentally, the bib entries don't have to be in separate bib files; they can all be in one bib file.