General ⇒ Section heading style for References
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Section heading style for References
I want to change the section heading style for the "References" section. I want the word "References" appear in the center, bold, and font size 12pt (the same font size that I am using for the rest of my document).
The default style of section heading in the article class that is induced by the command \bibliography{filename.bib} is larger than the 12pt font and is not centered.
Is there an easy way to change the section heading style for the References section or suppress the heading so that I can manually typeset the heading?
Thanks very much.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Section heading style for References
Command
Code: Select all
\renewcommand{\refname}{}
gets rid of the section title name.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Section heading style for References
with the command above you would still get some vertical space. You could disable \section* temporarily:
Code: Select all
{\def\section*#1{}
\bibliography...
}
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Re: Section heading style for References
Section heading style for References
might still be trying to do this:
Code: Select all
\renewcommand\bibsection{\subsection{\refname}}
Section heading style for References
Please explain what exactly do you mean by "more robust" The line of code you just posted produces the errorTritonMan wrote:I know this thread is old, but I think I have a more robust solution for anyone who
might still be trying to do this:
You can replace \subsection with whatever section type you like, which will keep it nicely in line with the style of the rest of your doc. It worked nicely for a project report I had to do a while ago - I remember I had trouble finding anything documented about it then!Code: Select all
\renewcommand\bibsection{\subsection{\refname}}
with the standard classes (book, report, article) and with the KOMA_Script document classes (scrbook, scrreprt); the cause of the error is simple: \bibsection is not defined for those classes.! LaTeX Error: \bibsection undefined.
In fact, your line only compiles with the memoir document class.
Section heading style for References
The line of code from my thesis is:
Code: Select all
\renewcommand\bibsection{\chapter*{\refname}}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Section heading style for References
So it is. See the natbib manual (Section 2.12 - Other formatting options, p. 15f). But this is an essential information to be given together with your solution. Nobody knows at first sight where this command comes from.TritonMan wrote:[...] I'm using the natbib package, which may define the \bibsection macro regardless of document class. [...]
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10