## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ How to make two bibliographies with apacite package ?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am

### How to make two bibliographies with apacite package ?

Hi! I'm trying to solve a big problem which is the following: I have to make a bibliography with apacite package and need to have two separate bibliographies : one is for the references cited in the text, the other one is for the whole list of the books I read. But I don't really know how to do it. This is a MWE :

\documentclass[12pt,a4paper,twoside=semi,footinclude=true,headinclude=true]{scrbook}\usepackage[numberedbib,nosectionbib]{apacite}\begin{document}...\bibnewpage {\raggedright \bibliographystyle{apacite} \bibliography{mabiblio}}\end{document}

Tags:

Johannes_B
Site Moderator
Posts: 4138
Joined: Thu Nov 01, 2012 4:08 pm
Crosspost

Using package multibib:
\begin{filecontents}{domiMain.bib}     	@article{cc,     		author= {Crazy Capybara},     		year= {2015},     	}     \end{filecontents}     \begin{filecontents}{domiAnnex.bib}     	@article{bb,     		author= {Busy Bee},     		year= {2015},     	}     \end{filecontents}     \documentclass{article}     \usepackage{apacite}     \usepackage{multibib}     \newcites{annex}{Annex Stuff}     \bibliographystyle{apa}     \begin{document}     \section{usual stuff}     \nocite{*}     \bibliography{domiMain}     \appendix     \section{other stuff}     \nociteannex{*}     \bibliographystyleannex{apa}     \bibliographyannex{domiAnnex}     \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
I've just try to follow your indications, but I failed. My annex bib file isn't recognized as you can see it in this new MWE :

\documentclass[12pt]{article}\usepackage{fontspec}    \usepackage[frenchb]{babel}\usepackage[numberedbib,nosectionbib]{apacite}\usepackage{multibib}\newcites{annex}{Références complémentaires}\begin{document}\section{Partie argumentative}  \cite{Abram2001}    \section{Conclusion générale}\nocite{*}\bibliographystyle{apacite}\bibliography{domiMain} \appendix\section{Références complémentaires} \nociteannex{}\bibliographystyleannex{apacite}\bibliographyannex{domiAnnex}\end{document}

Johannes_B
Site Moderator
Posts: 4138
Joined: Thu Nov 01, 2012 4:08 pm
What you posted is not an MWE, becausse the databases are missing. If you are using the databases that were generated by my MWE, the cite keys obviously don't match. The case of the appendix does not have an asterisk in the argument of nocite, so will fail as well.

Please test the example as posted above and show us the log file.
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
Here is the log file :

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex 2015.12.24)  31 DEC 2015 18:31entering extended mode  restricted \write18 enabled.  file:line:error style messages enabled.  %&-line parsing enabled.**Essai.tex(./Essai.texLaTeX2e <2015/01/01>Babel <3.9l> and hyphenation patterns for 79 languages loaded.(/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.clsDocument Class: article 2014/09/29 v1.4h Standard LaTeX document class(/usr/local/texlive/2015/texmf-dist/tex/latex/base/size10.cloFile: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option))\c@part=\count79\c@section=\count80\c@subsection=\count81\c@subsubsection=\count82\c@paragraph=\count83\c@subparagraph=\count84\c@figure=\count85\c@table=\count86\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102)(/usr/local/texlive/2015/texmf-dist/tex/latex/apacite/apacite.styPackage: apacite 2013/07/21 v6.03 APA citation\c@BibCnt=\count87\bibleftmargin=\skip43\bibindent=\skip44\bibparsep=\skip45\bibitemsep=\skip46\biblabelsep=\skip47)(/usr/local/texlive/2015/texmf-dist/tex/latex/multibib/multibib.styPackage: multibib 2008/12/10 v1.4 Multiple bibliographies for one document.\mb@biblabelwidth=\count88)\@auxoutannex=\write3 (./annex.aux)\openout3 = annex.aux'.   (./Essai.aux)\openout1 = Essai.aux'. LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.LaTeX Font Info:    ... okay on input line 6.LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.LaTeX Font Info:    ... okay on input line 6.LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.LaTeX Font Info:    ... okay on input line 6.LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.LaTeX Font Info:    ... okay on input line 6.LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.LaTeX Font Info:    ... okay on input line 6.LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.LaTeX Font Info:    ... okay on input line 6.\c@maskedRefs=\count89 (/usr/local/texlive/2015/texmf-dist/tex/latex/apacite/english.apcFile: english.apc 2013/07/21 v6.03 apacite language fileLaTeX Info: Redefining \BPBI on input line 129.LaTeX Info: Redefining \BHBI on input line 130.) (./Essai.bblMissing character: There is no Ã in font cmr10!Missing character: There is no  in font cmr10!)No file annex.bbl.[1 {/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}](./Essai.aux) ) Here is how much of TeX's memory you used:  755 strings out of 493089  9440 string characters out of 6134841  66809 words of memory out of 5000000  4304 multiletter control sequences out of 15000+600000  4591 words of font info for 17 fonts, out of 8000000 for 9000  1141 hyphenation exceptions out of 8191  23i,4n,20p,139b,148s stack positions out of 5000i,500n,10000p,200000b,80000s</usr/local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb>Output written on Essai.pdf (1 page, 37386 bytes).PDF statistics:  20 PDF objects out of 1000 (max. 8388607)  13 compressed objects within 1 object stream  0 named destinations out of 1000 (max. 500000)  1 words of extra memory for PDF output out of 10000 (max. 10000000)

Johannes_B
Site Moderator
Posts: 4138
Joined: Thu Nov 01, 2012 4:08 pm
Sorry, i missed an s. We also need to see the log file (blg) of the BibTeX runs.
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
Good morning and happy new year!
Please, what do you mean by "missed an s" ?
This is the blg file :

This is BibTeX, Version 0.99d (TeX Live 2015)Capacity: max_strings=35307, hash_size=35307, hash_prime=30011The top-level auxiliary file: Essai.auxThe style file: apa.bstDatabase file #1: domiMain.bibYou've used 1 entry,             1940 wiz_defined-function locations,             480 strings with 3825 characters,and the built_in function-call counts, 299 in all, are:= -- 26> -- 7< -- 1+ -- 2- -- 2* -- 20:= -- 59add.period$-- 3call.type$ -- 1change.case$-- 5chr.to.int$ -- 1cite$-- 1duplicate$ -- 14empty$-- 24format.name$ -- 3if$-- 56int.to.chr$ -- 1int.to.str$-- 0missing$ -- 2newline$-- 8num.names$ -- 3pop$-- 7preamble$ -- 1purify$-- 6quote$ -- 0skip$-- 11stack$ -- 0substring$-- 12swap$ -- 2text.length$-- 0text.prefix$ -- 0top$-- 0type$ -- 4warning$-- 0while$ -- 2width$-- 0write$ -- 15

Johannes_B
Site Moderator
Posts: 4138
Joined: Thu Nov 01, 2012 4:08 pm
You also have to run BibTeX over annex.aux, which is generated by mulitbib. This is explicitely explained in the manual.
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
OK. It works! Thanks so much for your help! Do you think it can work with Xelatex too since I use this latter to compile my classic thesis ? I'm going to try it and tell.

tullio
Posts: 13
Joined: Sun Sep 28, 2014 9:33 am
I took time to understand what did not work finally and it seems that I have got two problems.
First, I cannot use the \cite{} command when it's about to mention an author and a book in the body of the text. For instance, if I write something like : "comme l'a écrit \cite{Abram2001}...", I obtain the following result : "comme l'a écrit (Abram2001, Abram2001)...".
Second, my main bibliography does not contain only the references cited in the text: it contains also the entire file of my references. Thanks for your help.