summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex/examples/12-references-by-segment.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex/examples/12-references-by-segment.tex')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/12-references-by-segment.tex48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/12-references-by-segment.tex b/Master/texmf-dist/doc/latex/biblatex/examples/12-references-by-segment.tex
new file mode 100644
index 00000000000..e4ef8511f51
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/12-references-by-segment.tex
@@ -0,0 +1,48 @@
+%
+% 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[american]{babel}
+\usepackage{csquotes}
+\usepackage[style=authoryear]{biblatex}
+\usepackage{hyperref}
+\usepackage{nameref}
+\bibliography{biblatex-examples}
+\defbibheading{bibliography}{%
+ \section*{%
+ Chapter \therefsegment:
+ \nameref{refsegment:\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}
+
+\chapter*{References}
+\bibbysegment
+%
+% \bibbysegment is a shorthand for:
+%
+% \printbibliography[segment=1]
+% \printbibliography[segment=2]
+% \printbibliography[segment=3]
+% ...
+
+\end{document}