Closed ifarup closed 4 years ago
Very strange. Seems to appear only on last page of bibliography if that page has the layout of an odd numbered page.
Any ideas? @Hexoplon @barskern @marni
Do you have a document where the mentioned error occurs? @ifarup
Testing this on my machine with fedora and everything seems fine.
I compiled the standard document from the repository with no modifications, the bibligraphy ended up relative page 21 and absolute page 39, and the heading is correct.
See attached file:
Created a new branch 'issue-21' that demonstrates the problem. Play with (un)commenting some of the \nocites{} in thesis.tex in order to get the bibliography span different number of pages and observe the headers (not headings!)
The same issues seems to be occuring with the code listings if it extends over three pages. It then has Tables
as its header.
Fixed issue in #22
The \printbibliography command seems to create its own "environment" when printing that ends as soon as the contents are printed. After this, the preceeding chapter will "take over". This creates issues with headers if the bibliography ends on an odd numbered page, other than the first page of the bibliography. This issue is avoided by printing the bibliography without a heading, and creating a chapter instead.
The issue with the code listings was addressed by changing the behaviour of the \lstlistoflistings command to create an unnumbered chapter, instead of a float like the original source code in the package does.
Thanks, @Hexoplon !
The bibliography gets the header of the last chapter instead of saying 'Bibliography' as it should.