Text FormattingFormat Bibliography Title

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
kleifest
Posts: 5
Joined: Tue Mar 20, 2012 9:28 pm

Format Bibliography Title

Post by kleifest »

I am currently finishing a thesis, and have one annoying thing left to fix. I am working in LyX and inserting LaTeX ERT when necessary to make things just perfect. My reference list title currently shows flush left in large font and I want it to be centered in \scshape.

I have made numerous attempts using

Code: Select all

\renewcommand{\refname}{\textsc{References}}
and similar commands, adding them to my preamble and to right above the bibliography section in the document. No matter what I try, nothing changes.

If anyone can help me with this issue I would really really appreciate it.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Format Bibliography Title

Post by Stefan Kottwitz »

Hi,

welcome to the board!
kleifest wrote:I have made numerous attempts using

Code: Select all

\renewcommand{\refname}{\textsc{References}}
and similar commands
Which similar commands?

Which document class do you use? A solution depends on the document class and possibly also on used packages. For example, some classes use \bibname instead of \refname.

Stefan
LaTeX.org admin
kleifest
Posts: 5
Joined: Tue Mar 20, 2012 9:28 pm

Format Bibliography Title

Post by kleifest »

I'm using the article class, with the default bibliography settings, and I've really just been messing with variations of things like

Code: Select all

\renewcommand{\refname}{\textsc {References}}
\renewcommand{\refname}{\centering References}
\renewcommand{\refname}{\normalsize \begin{center} REFERENCES \end{center}}
\defbibheading{bibliography}{\section*{Bibliography}}
trying to change one thing at a time to see if anything at all would change, which it didn't, (probably because my commands are incorrect).

or trying to redefine the section format before the bibliography with \thesection or \titleformat (always using the appropriate packages).

Quite honestly, I can't even remember all of the nonsense I've put into the document, between the madness of trying to put this 275 page thesis together and traveling for 12 hours today, I just kept googling things and typing in whatever I found. I'm not great with Latex yet, I usually just let Lyx do all the work for me.
Last edited by Stefan Kottwitz on Wed Mar 21, 2012 8:52 am, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Format Bibliography Title

Post by Stefan Kottwitz »

Code: Select all

\renewcommand{\refname}{\textsc{References}}
right before the bibliography should work. Though I would not mix a name with markup, but at least this was easy to do.

The bibliography is a section heading like all the other section headings, just unnumbered. If you would change the shape and the justification of this single heading, this is very inconsistent. I would strongly recommend not to do this. I would not do this in my thesis. If it's just because you think it's nice to make that differently (kind of fancy, kind of emphazation, or just because you have seen bibliography headings like that), consider not do this. If in doubt, have a look at some books in your field of science and check if they use a bibliography heading different to normal section or chapter headings.

If you would agree, we don't need to spend time on that. If the requirement of your university is so strange (do all headings left justified, but the bibliography centered and in small caps), well, we can do this. Just let us know and confirm.

Note, the standard font Computer Modern does not have bold small caps, that's why you would not see an effect of \textsc in a section name.

Stefan
LaTeX.org admin
kleifest
Posts: 5
Joined: Tue Mar 20, 2012 9:28 pm

Re: Format Bibliography Title

Post by kleifest »

Hmm...for some reason I was thinking it was necessary to format it like that, but after reading through the school's thesis guidelines again I found I am mistaken. I suppose I was just expecting it after all of the formatting I had to do for the toc, lot, lof, and appendices.

I guess I just won't mess with it anymore! Thanks for your help!
Post Reply