Continuing my journey into BibLaTeX + scrlayer-notecolumn.
I thought, once I had the BibLaTeX working with \marginpar it would all be easy.
But not so.
I want to create my sidebar using the scrlayer-notecolumn's \makenote.
MWE:
\documentclass{scrbook}
\usepackage{scrlayer-notecolumn}
% bib-file
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Knu86,
author = {Knuth, Donald E.},
year = {1986},
title = {The \TeX book},
}
}
\end{filecontents}
\usepackage[backend=bibtex, citestyle=authoryear]{biblatex}
\addbibresource{\jobname}
\DeclareCiteCommand{\tcite}
{\usebibmacro{prenote}}
{ %loopcode
\usebibmacro{cite}
\makenote{\printfield{title}}
%\marginpar{\printfield{title}}
}
{\multicitedelim}
{\usebibmacro{postnote}}
\begin{document}
hi
\makenote{a side note}
\tcite{Knu86}
\end{document}
\marginpar{
using the commented out \marginpar works fine:
\makenote{
using \makenote does not.
With errors:
line 35: Undefined control sequence. \end{document}
: Overwriting file `./dco2.bib'.
: Using fall-back BibTeX(8) backend:(biblatex) functionality may be reduced/unavailable.
: \clearnotecolumns while active non-layer page style.
line 35: Flush note box `marginpar'
: \pdfmdfivesum unavailable.
\makenote{\protect
To me this seems like maybe it was being fragile,
So I used protect
changing to \makenote{\protect\printfield{title}}
Which gave me, basically the same set of errors.
line 35: Undefined control sequence. \end{document}
: Overwriting file `./dco2.bib'.
: Using fall-back BibTeX(8) backend:(biblatex) functionality may be reduced/unavailable.
: \clearnotecolumns while active non-layer page style.
line 35: Note moved down from(scrlayer-notecolumn) 11.0pt to 15.08002pt(scrlayer-notecolumn) at note box `marginpar'
line 35: Flush note box `marginpar'
: \pdfmdfivesum unavailable.





\makenoteat the post code of the cite command. – Schweinebacke Jul 10 '17 at 10:23