Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong header with bibliography #65

Closed
PierreMarchand20 opened this issue Jul 6, 2019 · 7 comments
Closed

Wrong header with bibliography #65

PierreMarchand20 opened this issue Jul 6, 2019 · 7 comments
Labels

Comments

@PierreMarchand20
Copy link

PierreMarchand20 commented Jul 6, 2019

As mentionned here, the header in the bibliography references the previous chapter. Here's a MWE with biblatex:

\begin{filecontents*}{\jobname.bib}
@incollection{deitmar2005schemes,  
  title={Schemes over },  
  author={Deitmar, Anton},  
  booktitle={Number fields and function fields---two parallel worlds},  
  editor={Gerard van der Geer and Ben Moonen and Ren{\'e} Schoof},
  pages={87--100},  
  year={2005},  
  publisher={Birkh{\"a}user Boston}
}  
@article{kurokawa2005zeta,  
  title={Zeta functions over},  
  author={Kurokawa, Nobushige and others},  
  journal={Proceedings of the Japan Academy, Series A, Mathematical Sciences},  
  volume={81},  
  number={10},  
  pages={180--184},  
  year={2005},  
  publisher={The Japan Academy}  
}  
\end{filecontents*}

\documentclass{yathesis}
\usepackage{fontspec}
\usepackage{biblatex}

\addbibresource{\jobname.bib}

\begin{document}

\mainmatter
\chapter{test}

\nocite{*}
\printbibliography

\end{document}

and another MWE with bibtex:

\documentclass{yathesis}

\usepackage{fontspec}

\begin{document}

\mainmatter
\chapter{test}

\nocite{*}

\begin{thebibliography}{99}

\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\bibitem{example}
\end{thebibliography}

\end{document}
@dbitouze dbitouze added the bug label Aug 27, 2019
@PierreMarchand20
Copy link
Author

PierreMarchand20 commented Sep 11, 2019

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:
image

@PierreMarchand20
Copy link
Author

PierreMarchand20 commented Sep 11, 2019

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.

@samcarter
Copy link

samcarter commented Sep 11, 2019

@PierreMarchand20 Where would I add submitted to reproduce the problem?

@PierreMarchand20
Copy link
Author

This is how I call yathesis \documentclass[mainlanguage=english,localtocs,output=screen,version=submitted,fncychap=Sonny,secnumdepth=subsubsection]{yathesis}

@samcarter
Copy link

samcarter commented Sep 11, 2019

@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)

@PierreMarchand20
Copy link
Author

I did not see any issue with removing \begingroup....\endgroup, but your improved workaround works also.

dbitouze added a commit that referenced this issue Mar 23, 2020
@dbitouze
Copy link
Owner

Issue closed thanks to the @samcarter's workaround: thanks @samcarter! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants