I am using biblatex
(with biber
) and I am currently writing a book
class document. I will have a long bibliography at the end of the document.
Inside this bibliography I would like to have alphabetical sections (A, B, C, ...). The purpose is to help someone who is looking for a reference; he can visualize that he is inside G section (for example). This is the kind of layout that dictionaries have.
Here is an visual attempt to show what I want to achieve:
**A** (Big "A" with a size of a section)
Author1 , ...
--, ...
--, ...
Author2, ...
.
.
.
**B** (Big "B")
Bauthor1, ...
--, ...
Bauthor2, ...
--, ...
.
.
.
Of course, I can add keywords to my .bib
file and say to BibLaTeX to print all references with keywords "A" inside a section "A". But it sounds stupid to add keywords just for alphabetical section sorting.
Here is a MWE:
\documentclass[12pt,twoside,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{xspace}
\usepackage[style=authoryear-comp,hyperref,backend=biber,isbn=false,doi=false,url=false]{biblatex}
\bibliography{bib}
\title{}
\usepackage[francais]{babel}
\usepackage{csquotes}
\usepackage[colorlinks]{hyperref}
\begin{document}
\nocite*
\printbibliography
\end{document}
.bib
file:
@InBook{arwez_title_2000,
author = {Paul Arwez},
title = {Title},
chapter = {Chapter},
publisher = {Publisher},
year = 2000}
@Book{arwez_book_2013,
author = {Paul Arwez},
title = {Book},
publisher = {Publisher},
year = 2013}
@Book{barwez_book_2013,
author = {Paul Barwez},
title = {Book},
publisher = {Publisher},
year = 2013}
@Book{carwez_book_2013,
author = {Paul Carwez},
title = {Book},
publisher = {Publisher},
year = 2013}
@Article{carwez_artic_1873,
author = {Paul Carwez},
title = {Article},
journal = {Journal},
year = 1876}
.bbl
file:
% $ biblatex auxiliary file $
% $ biblatex bbl format version 2.2 $
% Do not modify the above lines!
%
% This is an auxiliary file used by the 'biblatex' package.
% This file may safely be deleted. It will be recreated by
% biber as required.
%
\begingroup
\makeatletter
\@ifundefined{[email protected]}
{\@latex@error
{Missing 'biblatex' package}
{The bibliography requires the 'biblatex' package.}
\aftergroup\endinput}
{}
\endgroup
\refsection{0}
\sortlist{entry}{nyt}
\entry{arwez_title_2000}{inbook}{}
\name{labelname}{1}{}{%
{{uniquename=0,hash=378583d49d9a8ada29208d6cb5267d5f}{Arwez}{A\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\name{author}{1}{}{%
{{uniquename=0,hash=378583d49d9a8ada29208d6cb5267d5f}{Arwez}{A\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\list{publisher}{1}{%
{Publisher}%
}
\strng{namehash}{378583d49d9a8ada29208d6cb5267d5f}
\strng{fullhash}{378583d49d9a8ada29208d6cb5267d5f}
\field{sortinit}{A}
\field{labelyear}{2000}
\field{labeltitle}{Title}
\field{chapter}{Chapter}
\field{title}{Title}
\field{year}{2000}
\endentry
\entry{arwez_book_2013}{book}{}
\name{labelname}{1}{}{%
{{uniquename=0,hash=378583d49d9a8ada29208d6cb5267d5f}{Arwez}{A\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\name{author}{1}{}{%
{{uniquename=0,hash=378583d49d9a8ada29208d6cb5267d5f}{Arwez}{A\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\list{publisher}{1}{%
{Publisher}%
}
\strng{namehash}{378583d49d9a8ada29208d6cb5267d5f}
\strng{fullhash}{378583d49d9a8ada29208d6cb5267d5f}
\field{sortinit}{A}
\field{labelyear}{2013}
\field{labeltitle}{Book}
\field{title}{Book}
\field{year}{2013}
\endentry
\entry{barwez_book_2013}{book}{}
\name{labelname}{1}{}{%
{{uniquename=0,hash=d0455efa6586ff2338c954fc0860f0d2}{Barwez}{B\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\name{author}{1}{}{%
{{uniquename=0,hash=d0455efa6586ff2338c954fc0860f0d2}{Barwez}{B\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\list{publisher}{1}{%
{Publisher}%
}
\strng{namehash}{d0455efa6586ff2338c954fc0860f0d2}
\strng{fullhash}{d0455efa6586ff2338c954fc0860f0d2}
\field{sortinit}{B}
\field{labelyear}{2013}
\field{labeltitle}{Book}
\field{title}{Book}
\field{year}{2013}
\endentry
\entry{carwez_artic_1873}{article}{}
\name{labelname}{1}{}{%
{{uniquename=0,hash=baa123e8e737243bb6575c9b2955a321}{Carwez}{C\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\name{author}{1}{}{%
{{uniquename=0,hash=baa123e8e737243bb6575c9b2955a321}{Carwez}{C\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\strng{namehash}{baa123e8e737243bb6575c9b2955a321}
\strng{fullhash}{baa123e8e737243bb6575c9b2955a321}
\field{sortinit}{C}
\field{labelyear}{1876}
\field{labeltitle}{Article}
\field{journaltitle}{Journal}
\field{title}{Article}
\field{year}{1876}
\endentry
\entry{carwez_book_2013}{book}{}
\name{labelname}{1}{}{%
{{uniquename=0,hash=baa123e8e737243bb6575c9b2955a321}{Carwez}{C\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\name{author}{1}{}{%
{{uniquename=0,hash=baa123e8e737243bb6575c9b2955a321}{Carwez}{C\bibinitperiod}{Paul}{P\bibinitperiod}{}{}{}{}}%
}
\list{publisher}{1}{%
{Publisher}%
}
\strng{namehash}{baa123e8e737243bb6575c9b2955a321}
\strng{fullhash}{baa123e8e737243bb6575c9b2955a321}
\field{sortinit}{C}
\field{labelyear}{2013}
\field{labeltitle}{Book}
\field{title}{Book}
\field{year}{2013}
\endentry
\endsortlist
\endrefsection
\endinput
alpha
style bib keys like[Aut05]
? Then it should be quite doable withbibtex
.author_title_year
? But perhaps what works for alpha styles work also for authoryear ones. I just have no idea how to do it even with alpha style..bbl
file? (That's the file produced bybibtex
.) Having that, I will quite surely manage to make a solution ;)biblatex
, please specify such important thing very clearly in the question next time. I don't know whether my solution works withbiblatex
, and I have little experience with it to be able to modify it accordingly.