Because i have a quite large number of literature sources (and for the sake of clarity), I chose to use separate (printed) bibliographies for the various chapters by using the biblatex command \bibbysection. Because I was not 100% convinced of that solution, I tried (for curiosity) to add a prefix to the intext citation using the chapter number, which results e.g. in [1.1]. This works fine if I use \printbibliography within the chapters but not anymore with \bibbysection.
So please help me (to understand) what's missing here. Thx in advance.
\documentclass{scrbook}
\usepackage{blindtext}
\usepackage[backend=biber, refsection=chapter, defernumbers=true, style=numeric]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Knuth.1986,
author = {Knuth, Donald E.},
year = {1986},
title = {The \TeX book},
}
@article{Einstein.1923,
author = {Einstein, Albert},
year = {1923},
title = {Grundgedanken und Probleme der Relativitätstheorie},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareRefcontext{myContext}{labelprefix=\therchapter.}
\begin{document}
%\begin{refcontext}[labelprefix=\thechapter.]{altContext}
\chapter{Ch 1}
\newrefcontext{myContext}
\blindtext \cite{Knuth.1986} \cite{Einstein.1923}
%\printbibliography[heading=subbibliography,section=\therefsection]
\chapter{Ch 2}
\newrefcontext{myContext}
\blindtext \cite{Einstein.1923}
%\printbibliography[heading=subbibliography,section=\therefsection]
\bibbysection
%\end{refcontext}
\end{document}
