Closed PierreMarchand20 closed 4 years ago
For information, the workaround proposed in the link I gave does not work when the version is set to submitted
. I get the following error:
For the record, the workaround was
\chapter*{\bibname}
\begingroup
\let\cleardoublepage\relax
\printbibliography[heading=none]
\endgroup
which does not work when the version is set to submitted
. But
\chapter*{\bibname}
\let\cleardoublepage\relax
\printbibliography[heading=none]
seems to work for now.
@PierreMarchand20 Where would I add submitted
to reproduce the problem?
This is how I call yathesis \documentclass[mainlanguage=english,localtocs,output=screen,version=submitted,fncychap=Sonny,secnumdepth=subsubsection]{yathesis}
@PierreMarchand20 You can trick the error message with
\chapter*{\bibname}
\begingroup
\let\cleardoublepage\relax
\printbibliography[heading=none]
\endgroup
\makeatletter
\booltrue{YAD@printbibliography@used}
\makeatother
or you could use
\chapter*{\bibname}
\let\cleardoublepageold\cleardoublepage
\let\cleardoublepage\relax
\printbibliography[heading=none]
\let\cleardoublepage\cleardoublepageold
(the risk with removing \begingroup....\endgroup
is that it will then effect the whole remaining document until the end. If you have something else after the bibliography, check carefully if all page breaks are still there)
I did not see any issue with removing \begingroup....\endgroup
, but your improved workaround works also.
Issue closed thanks to the @samcarter's workaround: thanks @samcarter! :smile:
As mentionned here, the header in the bibliography references the previous chapter. Here's a MWE with biblatex:
and another MWE with bibtex: