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 am using the following code to include my references:

\bibliographystyle{alpha}
\addcontentsline{toc}{chapter}{Bibliography}

There is one generated item in .bbl file:

\bibitem[DD05]{DaaaDbbb05} ....the content...

The problem is that since both authors' name starts from D, the system automatically generates the abbreviation DD05. With DD05, there is an compiling error. If I change this item by DeD05 for example in the .bbl file, it will work. Do you know what is wrong? It is not the first time for me to meet this problem.

Here is my bib entry:

@article {DaaaDbbb05On,
AUTHOR = {Daaa, Xcccc and Dbbbb, Fffff},
 TITLE = {A sample paper},
 JOURNAL = {Sample journal},
 VOLUME = {1},
 YEAR = {2005},
 NUMBER = {1},
 PAGES = {1--17},
 }

The compiling error is

 ./my_thesis:133:Undefined control sequence \bibitem[DD05]{DaaaDbbb05On}
share|improve this question
1  
perhaps you should add the whole entry from your .bib file to the question, by way of example –  henrique Feb 13 '12 at 14:47
    
Just added the bib entry. :-) –  Anand Feb 13 '12 at 14:55
1  
I could'nt reproduce the problem here... Maybe you should add more real examples of your code... (Before anything, you could try to delete the .aux and .bbl files and rerun latex) –  henrique Feb 13 '12 at 16:03
4  
what is the error? It is in the LaTeX run I presume. Also as mentioned give a full minimal example file that generates it. Without it there's not way to guess the issue. –  Frank Mittelbach Feb 13 '12 at 18:25
2  
Please post the compiling error you mentioned. –  henrique Feb 13 '12 at 18:51

1 Answer 1

I created an minimal example based on your code snippet. Whatever I get no errors:

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article {DaaaDbbb05On,
AUTHOR = {Daaa, Xcccc and Dbbbb, Fffff},
 TITLE = {A sample paper},
 JOURNAL = {Sample journal},
 VOLUME = {1},
 YEAR = {2005},
 NUMBER = {1},
 PAGES = {1--17},
 }
\end{filecontents}
\documentclass{article}
\begin{document}
\cite{DaaaDbbb05On}
\bibliographystyle{alpha}
\bibliography{\jobname}
\end{document}

Results in enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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