TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the official IEEE template for writing a paper in latex. The references are not stored in a separate file, but are appended at the end of the main .tex file in the \begin{thebibliography} block. Everything works fine, including the citation of references in the text.

There is though a problem: for the references 1-9, the text is displayed in the generated pdf file correctly. For references with the number greater than 10, the text is "indented" by some blank spaces, which makes it look horrible:

[8]   Author 1, book 1, year
[9]   Author 2, book 2, year
[10]   Author 3, book 3, year
[11]   Author 4, book 4, year

What I want is to force latex display every first letter of each reference at the same (imaginary) vertical line as the others. Is this possible?

share|improve this question

migrated from stackoverflow.com Feb 5 '13 at 18:04

This question came from our site for professional and enthusiast programmers.

up vote 8 down vote accepted

The thebibliography environment takes an argument that represents the maximum width of enumerated \bibitems. Here's an example:

enter image description here


To have the \bibitems lined up (horizontally), provide a number that contains the number of digits in the largest item (11 in my example).

share|improve this answer
Thank you very much, it works! – darie moldovan Feb 5 '13 at 21:58

Your Answer


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.