[Tex/LaTex] Memoir 3.7e: treating bibliography like a section, not a chapter

biblatexmemoir

Update: as pointed out in moewe's comment below, the 'culprit' is not memoir but biblatex. The change was introduced in v. 3.0 of biblatex, and as a result the bibliography is printed as a chapter unless \printbibliography[heading=subbibliography] is specified.


Using the memoir class (v. 3.7c), with the article option, the bibliography is formatted like a section.

For example:

\documentclass[article]{memoir}

\usepackage[style=authoryear-comp,backend=biber]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{Bli74,
  author = {Blinder, Alan S.},
  year = {1974},
  title = {The economics of brushing teeth},
  journaltitle = {Journal of Political Economy},
  volume = {82},
  number = {4},
  pages = {887--891},
}
\end{filecontents}

\bibliography{\jobname}

\counterwithout{section}{chapter}
\makechapterstyle{mydefault}{
\addtocounter{secnumdepth}{2}
\setsecheadstyle{\raggedright\scshape}
\setsubsecheadstyle{\raggedright\itshape}
\setsubsubsecheadstyle{\raggedright\itshape}
}

\chapterstyle{mydefault}


\begin{document}

\section{First section}

This paper really is very good: \cite{Bli74}.

\printbibliography

\end{document}

yields the following:

enter image description here

Using memoir v 3.7e, however, yields the following instead:

enter image description here

From looking at the .aux file, the following line suggests that the references section is now being treated as a chapter:

\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {chapter}{References}{1}}

The corresponding bit in the .aux file using 3.7c has this instead:

\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{References}{1}}

Is this behavior intended? I couldn't find anything in the newest version of the manual to suggest that it is.

I should add that the switch to the newer version of memoir happened when I upgraded to texlive 2015. I haven't tried to see what happens if I use the older version of memoir using texlive 2015, so I've been switching to texlive 2014 in order to use the older version of memoir. But my guess is that the problem is not with the newer texlive distribution, but with the newer version of memoir.

In any case, I would like to be able to force memoir to treat the bibliography as a section, at least when using the article option. I tried explicitly redefining \bibsection, as suggested on p. 300 of the manual for v 3.7e, but that doesn't seem to make a difference::

\documentclass[article]{memoir}

\usepackage[style=authoryear-comp,backend=biber]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{Bli74,
  author = {Blinder, Alan S.},
  year = {1974},
  title = {The economics of brushing teeth},
  journaltitle = {Journal of Political Economy},
  volume = {82},
  number = {4},
  pages = {887--891},
}
\end{filecontents}

\bibliography{\jobname}

\counterwithout{section}{chapter}
\makechapterstyle{mydefault}{
\addtocounter{secnumdepth}{2}
\setsecheadstyle{\raggedright\scshape}
\setsubsecheadstyle{\raggedright\itshape}
\setsubsubsecheadstyle{\raggedright\itshape}
}

\chapterstyle{mydefault}



\begin{document}

\renewcommand{\bibsection}{%
   \section{\bibname}
   \prebibhook}

\section{First section}

This paper is very good: \cite{Bli74}.

\printbibliography

\end{document}

Best Answer

The biblatex package disables or redefines many features of memoir, making \renewcommand{\bibsection}{...} useless.

The biblatex manual states in section 3.12.2: Usage with the memoir class:

When using Biblatex with the memoir class, most class facilities for adapting the bibliography have no effect. Use the corresponding facilities of this package instead (§§ 3.6.2, 3.6.8, 3.6.9). Instead of redefining memoir’s \bibsection, use the heading option of \printbibliography and \defbibheading (§§ 3.6.2 and 3.6.8). Instead of \prebibhook and \postbibhook, use the prenote and postnote options of \printbibliography and \defbibnote (§§ 3.6.2 and 3.6.9). All default headings are adapted at load-time such that they blend well with the default layout of this class.

Redefine \defbibheading etc. to change to \section or \section* instead!

\documentclass[article]{memoir}

\usepackage[style=authoryear-comp,backend=biber]{biblatex}



\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{Bli74,
  author = {Blinder, Alan S.},
  year = {1974},
  title = {The economics of brushing teeth},
  journaltitle = {Journal of Political Economy},
  volume = {82},
  number = {4},
  pages = {887--891},
}
\end{filecontents}

\bibliography{\jobname}

\counterwithout{section}{chapter}
\makechapterstyle{mydefault}{
\addtocounter{secnumdepth}{2}
\setsecheadstyle{\raggedright\scshape}
\setsubsecheadstyle{\raggedright\itshape}
\setsubsubsecheadstyle{\raggedright\itshape}
}

\chapterstyle{mydefault}


\defbibheading{bibliography}[\bibname]{%
\section*{#1}%
\markboth{#1}{#1}}


\AtBeginDocument{%
  \renewcommand{\bibname}{References}
}

\begin{document}
\tableofcontents

\section{First section}

This paper is very good: \cite{Bli74}.


\printbibliography

\end{document}
Related Question