BibTeX, biblatex and biberCapital Letter for each alphabetical Group in Bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
MrGLoOP
Posts: 2
Joined: Thu Aug 04, 2011 5:16 pm

Capital Letter for each alphabetical Group in Bibliography

Post by MrGLoOP »

Hi all !

I've got a quite long bibliography and I would like to add a capital letter before each alphabetical group (I use natbib package with apalike style).
I know how to do it for an index :
groupesbis.png
groupesbis.png (7.77 KiB) Viewed 2719 times
But I don't know how to do it for bibliography, or even if it's possible or not.

Does anyone have an idea ?

Thanks a lot !
Last edited by localghost on Thu Aug 04, 2011 5:41 pm, edited 1 time in total.

Recommended reading 2024:

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

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

paul
Posts: 49
Joined: Thu Apr 08, 2010 5:56 am

Capital Letter for each alphabetical Group in Bibliography

Post by paul »

MrGLoOP wrote:Hi all !

I've got a quite long bibliography and I would like to add a capital letter before each alphabetical group (I use natbib package with apalike style).
I know how to do it for an index :
groupesbis.png
But I don't know how to do it for bibliography, or even if it's possible or not.

Does anyone have an idea ?

Thanks a lot !
You'd have to edit the .bst file to make it do that. If you're asking the question, it's unlikely you're going to want to do that (BAFFL makes Perl look like a beautiful language that you'd actually want to use!). The easiest way is to produce the bibliography, then edit the .bbl file and add your headings manually...
MrGLoOP
Posts: 2
Joined: Thu Aug 04, 2011 5:16 pm

Capital Letter for each alphabetical Group in Bibliography

Post by MrGLoOP »

Thanks !
I was searching for a new style or option but I didn't think about a manual solution !
So for those who are interested in, this is what I've done: in my *.bbl file, I've inserted a fake reference before each new alphabetical group.

Code: Select all

\bibitem[A, 2011]{A}
\newblock 

{\Huge A}

...

\bibitem[B, 2011]{B}
\newblock 

{\Huge B}
It seems that it's the minimal information requested by natbib to generate these fake entries. The \newblock + new line is not necesseary but looks better for me.
Of course, this have to be done when you're sure to have all your references inserted because each time you'll run bibtex you will loose this tweak.
But even if it's not the cleanest solution this way works for me and the final result is OK.
Post Reply