The following works well and shows exactly what I want. I am just wondering
about this: Why do I have to use \newrefsegment
, if I already specified
refsegment=section
? I expected everything to work without extra
\newrefsegment
commands. On the other hand, I can omit refsegment=section
and it still works (which is somehow clear).
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[american]{babel}
\usepackage{titlesec}
\usepackage[
backend=bibtex,
style=authoryear,
refsegment=section
]{biblatex}
\defbibheading{subbibheading}{
\section*{References for Section \ref{refsegment:\therefsection\therefsegment}}
}
\addbibresource{biblatex-examples.bib}
\begin{document}
\section{Foo}
\newrefsegment
\textcite{reese}
\printbibliography[segment=\therefsegment, heading=subbibheading]
\section{Bar}
\newrefsegment
\textcite{glashow}
\printbibliography[segment=\therefsegment, heading=subbibheading]
\printbibliography[heading=bibintoc]
\end{document}
refsegment=section
is the rough equivalent of setting\newrefsegment
before\section
. biblatex patches divisional commands this way to ensure that citations in titles don't get assigned to the previous reference segment or section. – Audrey Feb 25 '13 at 21:30refsegment=section
leads to the correct output? I just tried\setcounter{therefsegment}{1}
... but that fails – Marius Hofert Feb 25 '13 at 21:39