summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-ms/doc/examples/12-references-by-segment-ms.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-ms/doc/examples/12-references-by-segment-ms.tex')
-rw-r--r--macros/latex/contrib/biblatex-ms/doc/examples/12-references-by-segment-ms.tex49
1 files changed, 49 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-ms/doc/examples/12-references-by-segment-ms.tex b/macros/latex/contrib/biblatex-ms/doc/examples/12-references-by-segment-ms.tex
new file mode 100644
index 0000000000..2e7f07926f
--- /dev/null
+++ b/macros/latex/contrib/biblatex-ms/doc/examples/12-references-by-segment-ms.tex
@@ -0,0 +1,49 @@
+%
+% This file differs from the 'by section' example in that the
+% citation labels are assigned globally. They are not local to the
+% 'refsegment' environments.
+%
+\documentclass[a4paper,oneside]{book}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[american]{babel}
+\usepackage{csquotes}
+\usepackage[style=authoryear,backend=biber]{biblatex-ms}
+\usepackage{hyperref}
+\usepackage{nameref}
+\addbibresource{biblatex-examples.bib}
+\defbibheading{subbibliography}{%
+ \section*{%
+ Chapter \therefsegment:
+ \nameref{refsegment:\therefsection\therefsegment}}}
+\begin{document}
+
+\chapter{Title of first chapter}
+\begin{refsegment}
+This is just filler text \parencite{westfahl:space}.
+This is just filler text \parencite{nietzsche:ksa}.
+\end{refsegment}
+
+\chapter{Title of second chapter}
+\begin{refsegment}
+This is just filler text \parencite{nietzsche:historie}.
+This is just filler text \parencite{westfahl:frontier}.
+\end{refsegment}
+
+\chapter{Title of third chapter}
+\begin{refsegment}
+This is just filler text \parencite{aristotle:anima}.
+This is just filler text \parencite{averroes/bland}.
+\end{refsegment}
+
+\printbibheading
+\bibbysegment[heading=subbibliography]
+%
+% \bibbysegment is a shorthand for:
+%
+% \printbibliography[segment=1]
+% \printbibliography[segment=2]
+% \printbibliography[segment=3]
+% ...
+
+\end{document}