dbitouze / yathesis

Classe de thèse LaTeX pour universités françaises
27 stars 3 forks source link

yathesis v1.0.2 and biblatex "heading" \printbibliography argument #74

Closed degeuser closed 4 years ago

degeuser commented 4 years ago

With yathesis v1.0.2, when using biblatex \printbibliography with heading=none argument (or actually any other heading or title argument), a Bibliography title is still used in addition to that given as an optional argument (see attached image).

This issue does not happen with v0.99.

Any idea on where it may come from ?

image

dbitouze commented 4 years ago

Could you please post a MCE (ECM in French)?

degeuser commented 4 years ago

Thanks for your prompt reply. Here is a MCE as requested.

\documentclass{yathesis}

\usepackage{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{keya,
  author = {Author, A.},
  year = {2001},
  title = {TitleA},
  publisher = {Publisher},
}

@book{keyb,
  author = {Author, B.},
  year = {2001},
  title = {TitleB},
  publisher = {Publisher},
}
\end{filecontents}

\begin{document}

\chapter{Liste des publications}

Un peu de texte

\nocite{*}

\printbibliography[heading=subbibnumbered,title={Articles dans des journaux à comité de lecture}]

\end{document}

A capture of the output on my computer is shown below (note the "Bibliographie" before the title) image

degeuser commented 4 years ago

Simply replacing yathesis class by book class in the previous MCE gives image Note the absence of "Bibliographie"

dbitouze commented 4 years ago

It is indeed a bug. I'm working on it. Meanwhile, you could try to add the following in your preamble:

\makeatletter
\AtEndPreamble{%
  \renewcommand{\printbibliography}[1][]{%
    \booltrue{YAD@printbibliography@used}%
    \singlespace%
    \YAD@printbibliography@ORI[heading=none,#1]%
    \endsinglespace%
  }%
}%
\makeatother
degeuser commented 4 years ago

Thank you very much!! This seems to do the trick !

dbitouze commented 4 years ago

Issue fixed with the latest version (1.0.3) of yathesis, provided by both TeX Live and MiKTeX.