# Différences

Ci-dessous, les différences entre deux révisions de la page.

 3_composition:annexes:bibliographie:plusieurs_bibliographies_dans_un_document [2018/05/25 00:04]joseph.wright 3_composition:annexes:bibliographie:plusieurs_bibliographies_dans_un_document [2020/12/22 15:42]dbitouze Suppression de formatage inutile Les deux révisions précédentes Révision précédente 2021/11/06 12:30 yannick.tanguy Suppression de la page reportée sur la page française.2021/07/05 20:58 jejust Mise à jour de liens internes. Correction de mise en forme.2020/12/22 15:42 dbitouze Suppression de formatage inutile2018/12/04 00:01 jejust 2018/12/02 23:16 jejust 2018/06/03 16:24 joseph.wright 2018/06/03 16:19 samcarter 2018/06/03 15:35 d.p.carlisle 2018/06/03 15:33 samcarter 2018/06/03 15:19 samcarter 2018/06/03 15:17 d.p.carlisle 2018/06/03 15:17 joseph.wright 2018/06/03 15:13 samcarter 2018/06/03 15:05 joseph.wright 2018/06/03 15:04 samcarter 2018/06/03 14:59 joseph.wright 2018/06/03 12:00 d.p.carlisle 2018/06/02 17:37 joseph.wright 2018/06/02 16:46 d.p.carlisle 2018/05/25 23:20 joseph.wright 2018/05/25 21:33 joseph.wright 2018/05/25 10:59 joseph.wright 2018/05/25 10:58 joseph.wright 2018/05/25 00:04 joseph.wright 2018/05/25 00:04 joseph.wright 2018/05/24 19:09 joseph.wright 2018/05/24 19:00 joseph.wright 2018/05/24 10:40 joseph.wright 2018/05/24 10:40 joseph.wright 2018/05/24 10:31 joseph.wright 2018/05/23 23:27 joseph.wright 2018/05/23 23:21 joseph.wright 2018/05/23 22:27 joseph.wright 2018/05/23 18:49 joseph.wright 2018/05/23 15:57 d.p.carlisle 2018/05/22 21:42 joseph.wright 2018/05/22 13:42 joseph.wright 2018/05/22 13:36 joseph.wright créée Prochaine révision Révision précédente 2021/11/06 12:30 yannick.tanguy Suppression de la page reportée sur la page française.2021/07/05 20:58 jejust Mise à jour de liens internes. Correction de mise en forme.2020/12/22 15:42 dbitouze Suppression de formatage inutile2018/12/04 00:01 jejust 2018/12/02 23:16 jejust 2018/06/03 16:24 joseph.wright 2018/06/03 16:19 samcarter 2018/06/03 15:35 d.p.carlisle 2018/06/03 15:33 samcarter 2018/06/03 15:19 samcarter 2018/06/03 15:17 d.p.carlisle 2018/06/03 15:17 joseph.wright 2018/06/03 15:13 samcarter 2018/06/03 15:05 joseph.wright 2018/06/03 15:04 samcarter 2018/06/03 14:59 joseph.wright 2018/06/03 12:00 d.p.carlisle 2018/06/02 17:37 joseph.wright 2018/06/02 16:46 d.p.carlisle 2018/05/25 23:20 joseph.wright 2018/05/25 21:33 joseph.wright 2018/05/25 10:59 joseph.wright 2018/05/25 10:58 joseph.wright 2018/05/25 00:04 joseph.wright 2018/05/25 00:04 joseph.wright 2018/05/24 19:09 joseph.wright 2018/05/24 19:00 joseph.wright 2018/05/24 10:40 joseph.wright 2018/05/24 10:40 joseph.wright 2018/05/24 10:31 joseph.wright 2018/05/23 23:27 joseph.wright 2018/05/23 23:21 joseph.wright 2018/05/23 22:27 joseph.wright 2018/05/23 18:49 joseph.wright 2018/05/23 15:57 d.p.carlisle 2018/05/22 21:42 joseph.wright 2018/05/22 13:42 joseph.wright 2018/05/22 13:36 joseph.wright créée Prochaine révision Les deux révisions suivantes Ligne 1: Ligne 1: - --- + ====== Multiple bibliographies?​ ====== - section: Bibliographies and citations + - subsection: Creating citations + - permalink: /​FAQ-multbib.html + - date: 2014-06-10 + - --- + - # Multiple bibliographies?​ If you're thinking of multiple bibliographies tied to some part of If you're thinking of multiple bibliographies tied to some part of your document (such as the chapters within the document), please see your document (such as the chapters within the document), please see - [bibliographies per chapter]({% post_url FAQ-chapbib %}). + [[FAQ-chapbib|bibliographies per chapter]]. For more than one bibliography,​ there are three options. For more than one bibliography,​ there are three options. - The [multibbl](https://​ctan.org/​pkg/​multibbl) package offers a very simple interface: you use + The [[ctanpkg>​multibbl|multibbl]] package offers a very simple interface: you use - a command ​\newbibliography to define a bibliography ​''​tag''​.  The package + a command ​''​\newbibliography'' ​to define a bibliography ​"tag".  The package redefines the other bibliography commands so that each time you use any one redefines the other bibliography commands so that each time you use any one of them, you give it the tag for the bibliography where you want the of them, you give it the tag for the bibliography where you want the - citations to appear. ​ The \bibliography command itself also takes + citations to appear. ​ The ''​\bibliography'' ​command itself also takes a further extra argument that says what title to use for the resulting a further extra argument that says what title to use for the resulting section or chapter (i.e., it patches section or chapter (i.e., it patches - [\refname and \bibname]({% post_url FAQ-fixnam %}) in a + [[FAQ-fixnam|\refname and \bibname]] in a - [babel](https://​ctan.org/​pkg/​babel)-safe way).  So one might write: + [[ctanpkg>​babel|babel]]-safe way).  So one might write: - latex + + <​code ​latex> \usepackage{multibbl} \usepackage{multibbl} \newbibliography{bk} \newbibliography{bk} Ligne 36: Ligne 31: \bibliography{bk}{book-bib}{References to books} \bibliography{bk}{book-bib}{References to books} \bibliography{art}{art-bib}{References to articles} \bibliography{art}{art-bib}{References to articles} -  + ​ - (Note that the optional argument of \cite appears ​_before_ ​the + (Note that the optional argument of ''​\cite'' ​appears ​//​before// ​the - new tag argument, and that the \bibliography commands may list + new tag argument, and that the ''​\bibliography'' ​commands may list - more than one bib file&​nbsp;&​mdash; ​indeed all \bibliography commands + more than one ''​bib'' ​file --- indeed all ''​\bibliography'' ​commands may list the same set of files.) may list the same set of files.) - The \bibliography data goes into files whose names are + The ''​\bibliography'' ​data goes into files whose names are - &​lsaquo;​_tag-name_&​rsaquo;​_.aux_, so you will need to run + //​.aux//, so you will need to run - latex + + <​code ​latex> bibtex bk bibtex bk bibtex art bibtex art -  + ​ after the first run of LaTeX, to get the citations in the correct after the first run of LaTeX, to get the citations in the correct place. place. - The [multibib](https://​ctan.org/​pkg/​multibib) package allows you to define a series of + The [[ctanpkg>​multibib|multibib]] package allows you to define a series of - ''​additional topics''​, each of which comes with its own series of + "additional topics", each of which comes with its own series of bibliography commands. ​ So one might write: bibliography commands. ​ So one might write: - + - latex + + <​code ​latex> \usepackage{multibib} \usepackage{multibib} \newcites{bk,​art}% \newcites{bk,​art}% Ligne 69: Ligne 66: \bibliographybk{book-bib} \bibliographybk{book-bib} \bibliographyart{art-bib} \bibliographyart{art-bib} -  + - + - Again, as for [multibbl](https://​ctan.org/​pkg/​multibbl),​ any \bibliography... command may + - scan any list of bib files. + - BibTeX processing with [multibib](https://​ctan.org/​pkg/​multibib) is much like that with + Again, as for [[ctanpkg>​multibbl|multibbl]],​ any ''​\bibliography...''​ command may - [multibbl](https://​ctan.org/​pkg/​multibbl); with the above example, one needs: + scan any list of ''​bib''​ files. - latex + + BibTeX processing with [[ctanpkg>​multibib|multibib]] is much like that with + [[ctanpkg>​multibbl|multibbl]]; with the above example, one needs: + + <​code ​latex> bibtex bk bibtex bk bibtex art bibtex art -  + ​ - Note that, unlike [multibbl](https://​ctan.org/​pkg/​multibbl), [multibib](https://​ctan.org/​pkg/​multibib) ​allows a + Note that, unlike [[ctanpkg>​multibbl|multibbl]], [[ctanpkg>​multibib|multibib]] allows a - simple, unmodified bibliography (as well as the ''​topic'' ​ones).  ​ + simple, unmodified bibliography (as well as the "topic" ​ones).  ​ - The [bibtopic](https://​ctan.org/​pkg/​bibtopic) package allows you separately to cite several + The [[ctanpkg>​bibtopic|bibtopic]] package allows you separately to cite several different bibliographies. ​ At the appropriate place in your document, different bibliographies. ​ At the appropriate place in your document, - you put a sequence of btSect environments (each of which + you put a sequence of ''​btSect'' ​environments (each of which specifies a bibliography database to scan) to typeset the separate specifies a bibliography database to scan) to typeset the separate - bibliographies. ​ Thus, one might have a file diss.tex containing:​ + bibliographies. ​ Thus, one might have a file ''​diss.tex'' ​containing:​ - latex + + <​code ​latex> \usepackage{bibtopic} \usepackage{bibtopic} \bibliographystyle{alpha} \bibliographystyle{alpha} Ligne 104: Ligne 103: \btPrintCited \btPrintCited \end{btSect} \end{btSect} -  + ​ Note the different way of specifying a bibliographystyle:​ if you want Note the different way of specifying a bibliographystyle:​ if you want a different style for a particular bibliography,​ you may give it as an a different style for a particular bibliography,​ you may give it as an - optional argument to the btSect environment. + optional argument to the ''​btSect'' ​environment. - Processing with BibTeX, in this case, uses aux files whose names + Processing with BibTeX, in this case, uses ''​aux'' ​files whose names are derived from the name of the base document. ​ So in this example are derived from the name of the base document. ​ So in this example you need to say: you need to say: - latex + + <​code ​latex> bibtex diss1 bibtex diss1 bibtex diss2 bibtex diss2 -  + ​ - There is also a command ​\btPrintNotCited, which gives the rest of + There is also a command ​''​\btPrintNotCited''​, which gives the rest of the content of the database (if nothing has been cited from the the content of the database (if nothing has been cited from the - database, this is equivalent to LaTeX standard ​\nocite{*}). + database, this is equivalent to LaTeX standard ​''​\nocite{*}''​). - However, the _real_ difference from [multibbl](https:​//ctan.org/pkg/multibbl) and + However, the //real// difference from [[ctanpkg>​multibbl|multibbl]] ​and - [multibib](https://​ctan.org/​pkg/​multibib) is that selection of what appears in each + [[ctanpkg>​multibib|multibib]] is that selection of what appears in each - bibliography section is determined in [bibtopic](https://​ctan.org/​pkg/​bibtopic) by what's in + bibliography section is determined in [[ctanpkg>​bibtopic|bibtopic]] by what's in - the bib files. + the ''​bib'' ​files. - An entirely different approach is taken by the [splitbib](https://​ctan.org/​pkg/​splitbib) + An entirely different approach is taken by the [[ctanpkg>​splitbib|splitbib]] - package. ​ You provide a category environment,​ in the + package. ​ You provide a ''​category'' ​environment,​ in the preamble of your document, for each category you want a separate preamble of your document, for each category you want a separate - citation list for.  In each environment,​ you list the \cite keys + citation list for.  In each environment,​ you list the ''​\cite'' ​keys - that you want listed in each category. ​ The \bibliography command + that you want listed in each category. ​ The ''​\bibliography'' ​command - (or, more precisely, the thebibliography environment it + (or, more precisely, the ''​thebibliography'' ​environment it uses) will sort the keys as requested. ​ (Keys not mentioned in a uses) will sort the keys as requested. ​ (Keys not mentioned in a - category appear in a ''​misc'' ​category created in the + ''​category'' ​appear in a "misc" ​category created in the sorting process.) ​ A code example appears in the package documentation sorting process.) ​ A code example appears in the package documentation (a PDF file in the CTAN directory, (a PDF file in the CTAN directory, which you can browse to, from the link, below). which you can browse to, from the link, below). + + ----- + + //Source:// [[faquk>​FAQ-multbib|Multiple bibliographies?​]] + + {{htmlmetatags>​metatag-keywords=(LaTeX,​bibliographies) + metatag-og:​title=(Multiple bibliographies?​) + metatag-og:​site_name=(FAQ LaTeX francophone) + }}