Debian Codegraph @

texmf-dist/doc/latex/datatool/datatool-user-examples/datatool-user-example187.tex

raw
1 % This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
2 % Example 187 Compact Bibliography
3 % Label: "ex:compactbib"
4 % arara: pdflatex
5 % arara: bibtex
6 % arara: pdflatex
7 % arara: pdfcrop
8 \documentclass[10pt]{article}
9 \pagestyle{empty}
10 \begin{filecontents}[noheader,overwrite]{sample1.bib}
11 @STRING{TUGBOAT = {TUGboat}}
12 @STRING{PRACTEX = {The Prac\TeX\ Journal}}
13 @ARTICLE{Flom2005,
14 author = {Peter Flom and Hans Hagen and Joe Hogg and Nicola Talbot and Philip Taylor and Christina Thiele and David Walden},
15 title = {What is {\TeX}?},
16 journal = PRACTEX,
17 year = 2005,
18 volume = 3,
19 url = {http://tug.org/pracjourn/2005-3/walden-whatis}
20 }
21 @ARTICLE{tugboat2016,
22 title = "Localisation of {\TeX} documents: tracklang",
23 author = "Nicola Talbot",
24 month = NOV,
25 year = 2016,
26 volume = 37,
27 number = 3,
28 journal = TUGBOAT,
29 url = "http://www.tug.org/TUGboat/tb37-3/tb117talbot.pdf"
30 }
31 @ARTICLE{tugboat2022,
32 title = "bib2gls: Standalone entries and repeated lists (a little book of poisons)",
33 author = "Nicola Talbot",
34 month = APR,
35 year = 2022,
36 volume = 43,
37 number = 1,
38 journal = TUGBOAT,
39 doi = {10.47397/tb/43-1/tb133talbot-bib2gls-reorder},
40 url = "https://tug.org/TUGboat/tb43-1/tb133talbot-bib2gls-reorder.pdf"
41 }
42 @BOOK{Talbot2012a,
43 title = {{\LaTeX} for Complete Novices},
44 publisher = {Dickimaw Books},
45 year = 2012,
46 month = SEP,
47 author = {Nicola L C Talbot},
48 volume = 1,
49 series = {Dickimaw {\LaTeX} Series},
50 isbn = {978-1-909440-00-5},
51 url = {https://www.dickimaw-books.com/latex/novices/}
52 }
53 @INPROCEEDINGS{Talbot2020,
54 author = {Nicola L C Talbot},
55 title = {Sorting Glossaries with bib2gls},
56 booktitle = {{LaTeX}.net},
57 year = 2020,
58 month = JUL,
59 url = {https://latex.net/sorting-glossaries-with-bib2gls/}
60 }
61 @BOOK{Talbot2013a,
62 title = {Using {\LaTeX} to Write a {PhD} Thesis},
63 publisher = {Dickimaw Books},
64 year = 2013,
65 month = MAR,
66 author = {Nicola L C Talbot},
67 volume = 2,
68 series = {Dickimaw {\LaTeX} Series},
69 isbn = {978-1-909440-02-9},
70 url = {http://www.dickimaw-books.com/latex/thesis/}
71 }
72 @INPROCEEDINGS{Talbot2012c,
73 author = {Nicola L C Talbot},
74 title = {Creating a glossary without using an external indexing application},
75 booktitle = {{LaTeX}.net},
76 year = 2012,
77 month = SEP,
78 url = {https://latex.net/glossary-without-external-app/},
79 note={Originally posted on the {\LaTeX} Community's Know How Section}
80 }
81 @BOOK{Talbot2014a,
82 title = {{\LaTeX} for Administrative Work},
83 publisher = {Dickimaw Books},
84 month = SEP,
85 year = 2014,
86 author = {Nicola L C Talbot},
87 volume = 3,
88 series = {Dickimaw {\LaTeX} Series},
89 isbn = {978-1-909440-07-4},
90 url = {https://www.dickimaw-books.com/latex/admin/}
91 }
92 @BOOK{Talbot2013b,
93 title = {Quack, Quack, Quack. Give My Hat Back!},
94 publisher = {Dickimaw Books},
95 year = 2013,
96 month = MAY,
97 author = {Nicola L C Talbot and Magdalene Pritchett},
98 isbn = {978-1-909440-03-6},
99 url = {https://www.dickimaw-books.com/fiction/kids/duck/}
100 }
101 @BOOK{Talbot2012b,
102 title = {The Foolish Hedgehog},
103 publisher = {Dickimaw Books},
104 year = 2012,
105 month = NOV,
106 author = {Nicola L C Talbot and Magdalene Pritchett},
107 isbn = {978-1-909440-01-2},
108 url = {https://www.dickimaw-books.com/fiction/kids/hedgehog/}
109 }
110 \end{filecontents}
111 \begin{filecontents}[noheader,overwrite]{sample2.bib}
112 @Article{duck2018,
113 Author = {Dickie Duck and José Arara and Polly Parrot},
114 Title = {Avian Friendship},
115 Journal = {Fowl Times},
116 Year = 2018,
117 Volume = 7,
118 Number = 5,
119 Pages = "1032--5"
120 }
121 @BOOK{duck2016,
122 AUTHOR = {Dickie Duck},
123 TITLE = {Feathered stunt doubles: \emph{The Birds} and other films},
124 PUBLISHER = {Duck Duck Goose},
125 YEAR = 2016
126 }
127 @book{macaw,
128 author = {Prof Macaw},
129 title = {Annotated notes on the \emph{Duck and Goose} chronicles},
130 publisher = {Duck Duck Goose},
131 year = 2012
132 }
133 @inproceedings{parrot2021a,
134 author = {Polly Parrot},
135 title = {Who's a Pretty Polly? {T}he surge of avian chatbots},
136 booktitle = {Avian Intelligence},
137 month = jan,
138 year = 2021
139 }
140 @inproceedings{parrot2021b,
141 author = {Polly Parrot},
142 title = {Pollybot: the next generation in avian translators},
143 booktitle = {Avian Advances},
144 month = apr,
145 year = 2021
146 }
147 @phdthesis{ing2020,
148 author = {Bor Ing},
149 title = {\emph{Duck and Goose}: an allegory for modern times?},
150 school = {Department of Literature, University of Somewhere},
151 month = mar,
152 year = 2010
153 }
154 @booklet{parrots2013,
155 author = {Polly Parrot and Dickie Duck},
156 title = {\emph{Duck and Goose} Cheat Sheet},
157 howpublished = {Limited print run},
158 address = {Dubious Student Resources},
159 year = 2013
160 }
161 @book{parrot2012,
162 author = {von Parrot, Jr, Ann},
163 title = {My Friend is a Duck},
164 publisher = {Duck Duck Goose},
165 year = 2012,
166 }
167 @book{quackalot,
168 author = {Sir Quackalot},
169 title = {The Adventures of Duck and Goose},
170 publisher = {Duck Duck Goose},
171 year = 2011
172 }
173 @techreport{zebra2022,
174 author = {Zoë Zebra and Mabel Canary},
175 title = {Health and Safety when Handling Mind-Controlling Cookies},
176 institution = {Secret Lab of Experimental Stuff},
177 month = {22 } # MAR,
178 year = 2014
179 }
180 @manual{canary2015,
181 author = {Mabel Canary},
182 title = {Ray Gun User Guide},
183 organization = {Secret Lab of Experimental Stuff},
184 edition = "2nd",
185 year = 2015
186 }
187 @book{fan1992,
188 author = {Éli-Fant, Nellie},
189 title = {The Duckinator},
190 publisher = {Duck Duck Goose},
191 year = 1992,
192 note = {A cyborg from the future travels to the past to scramble some eggs.}
193 }
194 @misc{henpecked,
195 title = {Henpecked: Time for a Coup in the Coop!},
196 howpublished = {Flyer}
197 }
198 \end{filecontents}
199 \usepackage[style=abbrv]{databib}
200 \renewcommand*{\DTLtwoand}{ \& }
201 \renewcommand*{\DTLandlast}{, \& }
202 \renewcommand*{\editorname}{ed.}
203 \renewcommand*{\editorsname}{eds.}
204 \renewcommand*{\pagesname}{pp.}
205 \renewcommand*{\pagename}{p.}
206 \renewcommand*{\volumename}{vol.}
207 \renewcommand*{\numbername}{no.}
208 \renewcommand*{\editionname}{ed.}
209 \renewcommand*{\techreportname}{T.R.}
210 \renewcommand*{\mscthesisname}{MSc thesis}
211 \DTLloadbbl{mybib}{sample1,sample2}
212 \DTLsortdata{mybib}{Title}
213 \begin{document}
214 \nocite{*}
215 \DTLbibliography{mybib}
216 \end{document}