| 1 |
% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04 |
| 2 |
% Example 190 Multiple Bibliographies |
| 3 |
% Label: "ex:multibib" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdflatex |
| 6 |
% arara: pdflatex |
| 7 |
\documentclass[12pt]{article} |
| 8 |
\pagestyle{empty} |
| 9 |
\begin{filecontents}[noheader,overwrite]{sample1.bib} |
| 10 |
@STRING{TUGBOAT = {TUGboat}} |
| 11 |
@STRING{PRACTEX = {The Prac\TeX\ Journal}} |
| 12 |
@ARTICLE{Flom2005, |
| 13 |
author = {Peter Flom and Hans Hagen and Joe Hogg and Nicola Talbot and Philip Taylor and Christina Thiele and David Walden}, |
| 14 |
title = {What is {\TeX}?}, |
| 15 |
journal = PRACTEX, |
| 16 |
year = 2005, |
| 17 |
volume = 3, |
| 18 |
url = {http://tug.org/pracjourn/2005-3/walden-whatis} |
| 19 |
} |
| 20 |
@ARTICLE{tugboat2016, |
| 21 |
title = "Localisation of {\TeX} documents: tracklang", |
| 22 |
author = "Nicola Talbot", |
| 23 |
month = NOV, |
| 24 |
year = 2016, |
| 25 |
volume = 37, |
| 26 |
number = 3, |
| 27 |
journal = TUGBOAT, |
| 28 |
url = "http://www.tug.org/TUGboat/tb37-3/tb117talbot.pdf" |
| 29 |
} |
| 30 |
@ARTICLE{tugboat2022, |
| 31 |
title = "bib2gls: Standalone entries and repeated lists (a little book of poisons)", |
| 32 |
author = "Nicola Talbot", |
| 33 |
month = APR, |
| 34 |
year = 2022, |
| 35 |
volume = 43, |
| 36 |
number = 1, |
| 37 |
journal = TUGBOAT, |
| 38 |
doi = {10.47397/tb/43-1/tb133talbot-bib2gls-reorder}, |
| 39 |
url = "https://tug.org/TUGboat/tb43-1/tb133talbot-bib2gls-reorder.pdf" |
| 40 |
} |
| 41 |
@BOOK{Talbot2012a, |
| 42 |
title = {{\LaTeX} for Complete Novices}, |
| 43 |
publisher = {Dickimaw Books}, |
| 44 |
year = 2012, |
| 45 |
month = SEP, |
| 46 |
author = {Nicola L C Talbot}, |
| 47 |
volume = 1, |
| 48 |
series = {Dickimaw {\LaTeX} Series}, |
| 49 |
isbn = {978-1-909440-00-5}, |
| 50 |
url = {https://www.dickimaw-books.com/latex/novices/} |
| 51 |
} |
| 52 |
@INPROCEEDINGS{Talbot2020, |
| 53 |
author = {Nicola L C Talbot}, |
| 54 |
title = {Sorting Glossaries with bib2gls}, |
| 55 |
booktitle = {{LaTeX}.net}, |
| 56 |
year = 2020, |
| 57 |
month = JUL, |
| 58 |
url = {https://latex.net/sorting-glossaries-with-bib2gls/} |
| 59 |
} |
| 60 |
@BOOK{Talbot2013a, |
| 61 |
title = {Using {\LaTeX} to Write a {PhD} Thesis}, |
| 62 |
publisher = {Dickimaw Books}, |
| 63 |
year = 2013, |
| 64 |
month = MAR, |
| 65 |
author = {Nicola L C Talbot}, |
| 66 |
volume = 2, |
| 67 |
series = {Dickimaw {\LaTeX} Series}, |
| 68 |
isbn = {978-1-909440-02-9}, |
| 69 |
url = {http://www.dickimaw-books.com/latex/thesis/} |
| 70 |
} |
| 71 |
@INPROCEEDINGS{Talbot2012c, |
| 72 |
author = {Nicola L C Talbot}, |
| 73 |
title = {Creating a glossary without using an external indexing application}, |
| 74 |
booktitle = {{LaTeX}.net}, |
| 75 |
year = 2012, |
| 76 |
month = SEP, |
| 77 |
url = {https://latex.net/glossary-without-external-app/}, |
| 78 |
note={Originally posted on the {\LaTeX} Community's Know How Section} |
| 79 |
} |
| 80 |
@BOOK{Talbot2014a, |
| 81 |
title = {{\LaTeX} for Administrative Work}, |
| 82 |
publisher = {Dickimaw Books}, |
| 83 |
month = SEP, |
| 84 |
year = 2014, |
| 85 |
author = {Nicola L C Talbot}, |
| 86 |
volume = 3, |
| 87 |
series = {Dickimaw {\LaTeX} Series}, |
| 88 |
isbn = {978-1-909440-07-4}, |
| 89 |
url = {https://www.dickimaw-books.com/latex/admin/} |
| 90 |
} |
| 91 |
@BOOK{Talbot2013b, |
| 92 |
title = {Quack, Quack, Quack. Give My Hat Back!}, |
| 93 |
publisher = {Dickimaw Books}, |
| 94 |
year = 2013, |
| 95 |
month = MAY, |
| 96 |
author = {Nicola L C Talbot and Magdalene Pritchett}, |
| 97 |
isbn = {978-1-909440-03-6}, |
| 98 |
url = {https://www.dickimaw-books.com/fiction/kids/duck/} |
| 99 |
} |
| 100 |
@BOOK{Talbot2012b, |
| 101 |
title = {The Foolish Hedgehog}, |
| 102 |
publisher = {Dickimaw Books}, |
| 103 |
year = 2012, |
| 104 |
month = NOV, |
| 105 |
author = {Nicola L C Talbot and Magdalene Pritchett}, |
| 106 |
isbn = {978-1-909440-01-2}, |
| 107 |
url = {https://www.dickimaw-books.com/fiction/kids/hedgehog/} |
| 108 |
} |
| 109 |
\end{filecontents} |
| 110 |
\usepackage[auto]{databib} |
| 111 |
\DTLmultibibs{nonfiction,fiction} |
| 112 |
\DTLloadmbbl{nonfiction}{nonfictionDB}{sample1} |
| 113 |
\DTLloadmbbl{fiction}{fictionDB}{sample1} |
| 114 |
\DTLloadbbl{fullDB}{sample1} |
| 115 |
\DTLsortdata{fullDB}{Year,Month} |
| 116 |
\begin{document} |
| 117 |
\section{Non Fiction} |
| 118 |
In this section I'm going to describe some \LaTeX work, |
| 119 |
and in the process I'm going to cite some related |
| 120 |
papers \DTLcite{nonfiction}{tugboat2016,Talbot2012a}. |
| 121 |
|
| 122 |
\DTLmbibliography{nonfiction}{nonfictionDB} |
| 123 |
|
| 124 |
\section{Fiction} |
| 125 |
In this section I'm going to describe my fiction, and in the process, I'm going |
| 126 |
to cite some books \DTLcite{fiction}{Talbot2013b,Talbot2012b} |
| 127 |
|
| 128 |
\DTLmbibliography{fiction}{fictionDB} |
| 129 |
|
| 130 |
\nocite{*} |
| 131 |
\renewcommand{\refname}{Complete List of Publications} |
| 132 |
\DTLbibliography{fullDB} |
| 133 |
\end{document} |