BibTeX, biblatex and biberHow to make two bibliographies with apacite package ?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: How to make two bibliographies with apacite package ?

Post by Johannes_B »

an you show a minimal working example that lets me reproduce the issue?
A surgeon cannot fix a broken leg without looking at it and a mechanic can't fix a broken car without looking at it.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am

How to make two bibliographies with apacite package ?

Post by tullio »

I'm sorry. This a MWE :

Code: Select all

\begin{filecontents}{domiMain.bib}
    @book{Abram2001,
   author = {Abram, Jan},
   title = {Le langage de Winnicott. {D}ictionnaire explicatif des termes winnicottiens},
   Translator = {Athanassiou-Popesco, Cléopâtre},
   publisher = {Éditions Popesco},
   address = {Paris, France},
   year = {2001},
originalyear = {1996},
}

@book{Alain1996,
   author = {Alain},
   title = {Souvenirs concernant {J}ules {L}agneau},
   publisher = {Éditions Gallimard},
   address = {Paris, France},
   pages = {153-265},
   year = {1996},
originalyear = {1925},
}

@book{Althusser2014,
   author = {Althusser, Louis},
   title = {Initiation à la philosophie pour les non-philosophes},
   publisher = {Presses Universitaires de France},
   address = {Paris, France},
   year = {2014},

}
\end{filecontents}
\begin{filecontents}{domiAnnex.bib}
    @article{bb,
        author= {Busy Bee},
        year= {2015},
    }
\end{filecontents} 
 
    \documentclass{book}
    \usepackage{apacite}
    \usepackage{multibib}
    \newcites{annex}{Annex Stuff}
    \bibliographystyle{apa}
    \begin{document}
        \tableofcontents
    \chapter{Argumentaire}

    blabla  \cite{Abram2001}
    
    \nocite{*}
    \bibliography{domiMain}
    \appendix
        \nociteannex{*}
    \bibliographystyleannex{apa}
    \bibliographyannex{domiAnnex}
    \end{document}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to make two bibliographies with apacite package ?

Post by Johannes_B »

Package natbib is missing.

Code: Select all

\RequirePackage{filecontents}
\begin{filecontents}{domiMain.bib}
	@book{Abram2001,
		author = {Abram, Jan},
		title = {Le langage de Winnicott. {D}ictionnaire explicatif des termes winnicottiens},
		Translator = {Athanassiou-Popesco, Cléopâtre},
		publisher = {Éditions Popesco},
		address = {Paris, France},
		year = {2001},
		originalyear = {1996},
	}

	@book{Alain1996,
		author = {Alain},
		title = {Souvenirs concernant {J}ules {L}agneau},
		publisher = {Éditions Gallimard},
		address = {Paris, France},
		pages = {153-265},
		year = {1996},
		originalyear = {1925},
	}

	@book{Althusser2014,
		author = {Althusser, Louis},
		title = {Initiation à la philosophie pour les non-philosophes},
		publisher = {Presses Universitaires de France},
		address = {Paris, France},
		year = {2014},

	}
\end{filecontents}
\begin{filecontents}{domiAnnex.bib}
	@article{bb,
		author= {Busy Bee},
		year= {2015},
	}
\end{filecontents} 

\documentclass{book}
\usepackage{apacite}
\usepackage{natbib}
\usepackage{multibib}

\newcites{annex}{Annex Stuff}
\bibliographystyle{apa}
\begin{document}
\tableofcontents
\chapter{Argumentaire}

blabla  \cite{Abram2001}

\nocite{*}
\bibliography{domiMain}
\appendix
\nociteannex{*}
\bibliographystyleannex{apa}
\bibliographyannex{domiAnnex}
\end{document}

But since your bibliography is obviously set up for use with biblatex, use it.

Code: Select all

\RequirePackage{filecontents}
\begin{filecontents}{domiMain.bib}
	@book{Abram2001,
		author = {Abram, Jan},
		title = {Le langage de Winnicott. {D}ictionnaire explicatif des termes winnicottiens},
		Translator = {Athanassiou-Popesco, Cléopâtre},
		publisher = {Éditions Popesco},
		address = {Paris, France},
		year = {2001},
		originalyear = {1996},
	}

	@book{Alain1996,
		author = {Alain},
		title = {Souvenirs concernant {J}ules {L}agneau},
		publisher = {Éditions Gallimard},
		address = {Paris, France},
		pages = {153-265},
		year = {1996},
		originalyear = {1925},
	}

	@book{Althusser2014,
		author = {Althusser, Louis},
		title = {Initiation à la philosophie pour les non-philosophes},
		publisher = {Presses Universitaires de France},
		address = {Paris, France},
		year = {2014},

	}
	@article{bb,
		author= {Busy Bee},
		year= {2015},
		keywords = {annex},
	}
\end{filecontents}

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{domiMain.bib}

\begin{document}
\tableofcontents
\chapter{Argumentaire}

blabla  \cite{Abram2001}

\printbibliography[notkeyword=annex]
\nocite{bb}
\printbibliography[keyword=annex,title={Extra stuff}]
\end{document}

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am

How to make two bibliographies with apacite package ?

Post by tullio »

Sorry, but even when I insert natbib package, the same error appears with \cite{Abram2001}: this latter is mentioned twice. How could I fix that ?
Finally, it works, but I had to modify the command in this way : \citep{Abram2001} (p is here in bold to emphasize it, mais not in the latex code).
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to make two bibliographies with apacite package ?

Post by Johannes_B »

I bet you forgot to trash all the auxiliary files first. If you click on Open in writelatex you will see, it works as expected :-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am

Re: How to make two bibliographies with apacite package ?

Post by tullio »

OK. It works... partially. The fact is there is two another issues:

1. according to APA norms, I have to indicate place published : publisher. For instance : Paris, France : Éditions Gallimard. But instead of this, I obtain : Éditions Gallimard, Paris, France. How to change that ?

2. Nor the entry called "References" nor the one called "Annex Stuff" appears in the table of contents.

What should I do ? (I mean: instead of stopping there and switch to a basic text editor...)
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to make two bibliographies with apacite package ?

Post by Johannes_B »

As said before, simply use package biblatex.

Code: Select all

%\RequirePackage{filecontents}
\begin{filecontents}{domiMain.bib}
	@book{Abram2001,
		author = {Abram, Jan},
		title = {Le langage de Winnicott. {D}ictionnaire explicatif des termes winnicottiens},
		Translator = {Athanassiou-Popesco, Cléopâtre},
		publisher = {Éditions Popesco},
		address = {Paris, France},
		year = {2001},
		originalyear = {1996},
	}

	@book{Alain1996,
		author = {Alain},
		title = {Souvenirs concernant {J}ules {L}agneau},
		publisher = {Éditions Gallimard},
		address = {Paris, France},
		pages = {153-265},
		year = {1996},
		originalyear = {1925},
	}

	@book{Althusser2014,
		author = {Althusser, Louis},
		title = {Initiation à la philosophie pour les non-philosophes},
		publisher = {Presses Universitaires de France},
		address = {Paris, France},
		year = {2014},

	}
	@article{bb,
		author= {Busy Bee},
		year= {2015},
		keywords = {annex},
	}
\end{filecontents}

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{domiMain.bib}

\begin{document}
\tableofcontents
\chapter{Argumentaire}

blabla  \cite{Abram2001}

\printbibliography[notkeyword=annex,heading=bibintoc]
\nocite{bb}
\printbibliography[keyword=annex,title={Extra
stuff},heading=bibintoc]
\end{document}

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am

Re: How to make two bibliographies with apacite package ?

Post by tullio »

I'm not sure I'm not wrong, since my skill in latex is very low..., but, With Biblatex, first, the brackets don't appear in the text. For instance, I get Abram2001 in bold instead of (Abram, 2001). But above all, the titles of the sections References and Annex Stuff don't appear in my table of contents (whereas it's the case on Sharelatex ?!?!?) and aren't written according to APA. I was wondering if I wasn't about to copy/paste my Endnote basis into a section of my thesis... argh!!!
What can I do ?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to make two bibliographies with apacite package ?

Post by Johannes_B »

Learn how to use biblatex!

biblatex for idiots (The second part in Joseph's answer) as well as Cofigure my editor to avoid undefined references.

When it works on WriteLaTeX and Overleaf, but not on your machine, you are doing something different.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am

Re: How to make two bibliographies with apacite package ?

Post by tullio »

Sure. Thanks for the link. I'm going to read and learn and will come back here once my file modified. Thanks for your help.
Post Reply