% This file is embedded in datatool-user.pdf version 3.4.4 2026-07-31
% Example 186 Five Most Recent Publications
% Label: "ex:topnbib"
% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{filecontents}[noheader,overwrite]{sample1.bib}
@STRING{TUGBOAT = {TUGboat}}
@STRING{PRACTEX = {The Prac\TeX\ Journal}}
@ARTICLE{Flom2005,
 author = {Peter Flom and Hans Hagen and Joe Hogg and Nicola Talbot and Philip Taylor and Christina Thiele and David Walden},
 title = {What is {\TeX}?},
 journal = PRACTEX,
 year = 2005,
 volume = 3,
 url = {http://tug.org/pracjourn/2005-3/walden-whatis}
}
@ARTICLE{tugboat2016,
 title = "Localisation of {\TeX} documents: tracklang",
 author = "Nicola Talbot",
 month = NOV,
 year = 2016,
 volume = 37,
 number = 3,
 journal = TUGBOAT,
 url = "http://www.tug.org/TUGboat/tb37-3/tb117talbot.pdf"
}
@ARTICLE{tugboat2022,
 title = "bib2gls: Standalone entries and repeated lists (a little book of poisons)",
 author = "Nicola Talbot",
 month = APR,
 year = 2022,
 volume = 43,
 number = 1,
 journal = TUGBOAT,
 doi = {10.47397/tb/43-1/tb133talbot-bib2gls-reorder},
 url = "https://tug.org/TUGboat/tb43-1/tb133talbot-bib2gls-reorder.pdf"
}
@BOOK{Talbot2012a,
 title = {{\LaTeX} for Complete Novices},
 publisher = {Dickimaw Books},
 year = 2012,
 month = SEP,
 author = {Nicola L C Talbot},
 volume = 1,
 series = {Dickimaw {\LaTeX} Series},
 isbn = {978-1-909440-00-5},
 url = {https://www.dickimaw-books.com/latex/novices/}
}
@INPROCEEDINGS{Talbot2020,
 author = {Nicola L C Talbot},
 title = {Sorting Glossaries with bib2gls},
 booktitle = {{LaTeX}.net},
 year = 2020,
 month = JUL,
 url = {https://latex.net/sorting-glossaries-with-bib2gls/}
}
@BOOK{Talbot2013a,
 title = {Using {\LaTeX} to Write a {PhD} Thesis},
 publisher = {Dickimaw Books},
 year = 2013,
 month = MAR,
 author = {Nicola L C Talbot},
 volume = 2,
 series = {Dickimaw {\LaTeX} Series},
 isbn = {978-1-909440-02-9},
 url = {http://www.dickimaw-books.com/latex/thesis/}
}
@INPROCEEDINGS{Talbot2012c,
 author = {Nicola L C Talbot},
 title = {Creating a glossary without using an external indexing application},
 booktitle = {{LaTeX}.net},
 year = 2012,
 month = SEP,
 url = {https://latex.net/glossary-without-external-app/},
 note={Originally posted on the {\LaTeX} Community's Know How Section}
}
@BOOK{Talbot2014a,
 title = {{\LaTeX} for Administrative Work},
 publisher = {Dickimaw Books},
 month = SEP,
 year = 2014,
 author = {Nicola L C Talbot},
 volume = 3,
 series = {Dickimaw {\LaTeX} Series},
 isbn = {978-1-909440-07-4},
 url = {https://www.dickimaw-books.com/latex/admin/}
}
@BOOK{Talbot2013b,
 title = {Quack, Quack, Quack. Give My Hat Back!},
 publisher = {Dickimaw Books},
 year = 2013,
 month = MAY,
 author = {Nicola L C Talbot and Magdalene Pritchett},
 isbn = {978-1-909440-03-6},
 url = {https://www.dickimaw-books.com/fiction/kids/duck/}
}
@BOOK{Talbot2012b,
 title = {The Foolish Hedgehog},
 publisher = {Dickimaw Books},
 year = 2012,
 month = NOV,
 author = {Nicola L C Talbot and Magdalene Pritchett},
 isbn = {978-1-909440-01-2},
 url = {https://www.dickimaw-books.com/fiction/kids/hedgehog/}
} 
\end{filecontents}
\usepackage{databib}
\usepackage{url}
\DTLloadbbl{mybib}{sample1}
\DTLsortdata{mybib}{Year=descending,Month=descending}
\renewcommand{\DTLendbibitem}{% 
 \DTLifbibfieldexists{ISBN}% 
 { ISBN: \DTLbibfield{ISBN}.}{}% 
 \DTLifbibfieldexists{Url}% 
 { \DTLencapbibfield{\url}{Url}}{}% 
 } 
\begin{document}
\nocite{*}
\DTLbibliography[\value{DTLbibrow}<5]{mybib} 
\end{document}
