Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using BibTeX with the alpha style to keep track of my references. Whenever there is an entry with 4 or more authors, the entry id composed of their names and publication years causes the first line of the entry to be indented, thereby messing up the alignment of the whole entry.

What's the best way to fix this?

share|improve this question

closed as too localized by lockstep, Andrey Vihrov, Caramdir, Joseph Wright Sep 17 '11 at 19:07

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
I did a quick test -- with the alpha style, "long" keys will increase the indentation of every line of every entry. Therefore please add a minimal working example (MWE) that illustrates your problem. –  lockstep Aug 24 '11 at 10:17

1 Answer 1

Many Bibtex styles support control over indentation using the bibhang dimension, although I haven't found an alphanumeric style that supports it.

The code below shows how support for \bibhang can be added to vanilla Bibtex, so that it can be used with alpha.bst.

\documentclass[12pt]{article}

%% Absurd indent to show off what is happening
\newlength\bibhang
\setlength\bibhang{9em} 

\bibliographystyle{alpha}

%%Redefine \bibitem to ensure bibhang is used

%%This could conflict with packages that want %%to change these parameters
\def\setbibindent{
\setlength{\itemindent}{-\bibhang}
    \setlength{\itemsep}{0pt}
    \setlength{\parsep}{0pt}
    \setlength{\leftmargin}{\bibhang}}
\let\urbibitem=\bibitem
\def\bibitem{\setbibindent\urbibitem}

\begin{document}

Some text.

\nocite[*]

\bibliography{examplebib}

\end{document}
share|improve this answer
    
works only for author&year citation! –  Tobiask Nov 6 '12 at 14:20
    
@Tobiask - Actually, it is not restricted to author–year, since it works for numeric citations, but it doesn't work with alpha. I've changed the answer to show how support for \bibhang can be added to documents using alpha.bst –  Charles Stewart Nov 7 '12 at 12:01
    
Thanks for that! –  Tobiask Nov 7 '12 at 12:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.