I'd like to show the bibliography in the TOC.
This is how far I got:
\clearpage
\def \nextsection{\thesection + 1}
\addcontentsline{toc}{section}{\nextsection Bibliography}
\printbibliography
\thispagestyle{empty}
\clearpageFor some reason, the page number wasn't right without this. It would seem, the bibliography command alone won't increment it.\def ...This is meant to return an integer. Actually, it returns a string (for example,11 + 1), so the computation is not performed; the arithmetic is taken literally. I could replace this by the section I know it to be, but that would break if I ever were to add another section (assuming the bibliography would remain last). Yet another problem (while a detail) is the incorrect spacing of the TOC: see the screenshot below.\thispagestyle{empty}As I'd like the page number not to show up on the bibliography page (works).
Also, I'd say "Bibliography" is a bit pretentious. Is there a way to change it to, say, "References" or "Sources"? This is actually related to this question: perhaps that way, I could name it to use the "increase section" function so that it will show up as (say) "12. Sources" both in the TOC and as page header?
Edit
As for the name, and header, this is an improvement:
\clearpage
\renewcommand\bibname{12 Sources}
\addcontentsline{toc}{section}{\bibname}
Still: explicit section number (no increment), TOC align thing, and, for a clickable TOC, you don't get to the correct place by clicking the Sources line (probably because of the \clearpage).
Edit 2: MWE
OK, check out the MWE here.
Files: Makefile; x.bib, x.tex; and x.pdf
Problems, already described above and in comments: Increment, TOC align, clickable, consistent header looks.


report– Emanuel Berg Mar 4 at 1:01reportdocument class, issue a command such as\renewcommand\bibname{Sources}(or whatever alternative title you prefer). – Mico Mar 4 at 3:07hyperrefpackage. – Mico Mar 4 at 3:33