Text FormattingChanging depth of the bibliography section's headline

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing depth of the bibliography section's headline

Post by localghost »

Why do you come around only bit by bit with those things? The whole problem could be solved already. Just use the \addcontentsline command to insert the heading manually to the ToC. The best place is right at the beginning of the »thebibliography« environment.

Code: Select all

\begin{thebibliography}{}
  \addcontentsline{toc}{subsection}{Bibliografi}
  …
\end{thebibliography}
And the note is just a note. Ignore it or search the tocbibind manual for an explanation.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Changing depth of the bibliography section's headline

Post by svend_tveskaeg »

localghost wrote:Why do you come around only bit by bit with those things?
I concentrated on getting the other two problems fixed, so at first I didn't realise that this was a problem.

Regarding your solution: I actually tried the \addcontentsline `trick' but put it just before the »thebibliography« environment with the result that I got a wrong link placement when I used it together with the hyperref package.
localghost wrote:And the note is just a note. Ignore it or search the tocbibind manual for an explanation.
I will do that in the future!


Thanks again for helping me with the problems!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply