summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-ms/doc/examples/17-numeric-prefixed-2-ms.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-ms/doc/examples/17-numeric-prefixed-2-ms.tex')
-rw-r--r--macros/latex/contrib/biblatex-ms/doc/examples/17-numeric-prefixed-2-ms.tex45
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-ms/doc/examples/17-numeric-prefixed-2-ms.tex b/macros/latex/contrib/biblatex-ms/doc/examples/17-numeric-prefixed-2-ms.tex
new file mode 100644
index 0000000000..8c03cdff33
--- /dev/null
+++ b/macros/latex/contrib/biblatex-ms/doc/examples/17-numeric-prefixed-2-ms.tex
@@ -0,0 +1,45 @@
+%
+% This example is almost the same as the previous one except that
+% the catch-all sub-bibliography does not assign any prefix.
+%
+\documentclass[a4paper,oneside]{article}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[american]{babel}
+\usepackage{csquotes}
+\usepackage[style=numeric,defernumbers,backend=biber]{biblatex-ms}
+\usepackage{hyperref}
+\usepackage{nameref}
+\addbibresource{biblatex-examples.bib}
+\defbibfilter{other}{
+ not type=article
+ and
+ not type=book
+ and
+ not type=collection
+}
+\begin{document}
+
+\section*{Prefixed numerical citations}
+
+% Some citations:
+\cite{angenendt, kastenholz, augustine, companion, jaffe, ctan}
+
+\nocite{*}
+
+\printbibheading
+
+\newrefcontext[labelprefix={A}]
+\printbibliography[heading=subbibliography,title={Articles},type=article]
+\newrefcontext[labelprefix={B}]
+\printbibliography[heading=subbibliography,title={Books},type=book]
+\newrefcontext[labelprefix={C}]
+\printbibliography[heading=subbibliography,title={Collections},type=collection]
+\endrefcontext
+
+% The catch-all sub-bibliography for all remaining types. We don't
+% use a prefix but we still need to set resetnumbers=true to restart
+% the item numbering:
+\printbibliography[heading=subbibliography,title={Other Sources},filter=other,resetnumbers]
+
+\end{document}