BibTeX, biblatex and biberReference alignment

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
john_latex
Posts: 20
Joined: Wed Dec 22, 2010 10:21 pm

Reference alignment

Post by john_latex »

I'm facing a bug in reference alignment. Reference greater than number 9 are misaligned. Attached pdf document, tex file. Please help.
Attachments
sample.tex
(4.44 KiB) Downloaded 601 times
sample.pdf
(83.74 KiB) Downloaded 964 times
Last edited by john_latex on Fri Dec 24, 2010 11:08 am, 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.

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Reference alignment

Post by torbjorn t. »

Not a bug. The argument for the thebibliography environment defines how much space should be reserved for the labels. If you have 1-9 references, put a 1 digit number there, if you have 10-99 references, put a 2 digit number there, etc.

That is, now you have

Code: Select all

\begin{thebibliography}{1}
Replace this with e.g.

Code: Select all

\begin{thebibliography}{99}
and the alignment will be correct.
john_latex
Posts: 20
Joined: Wed Dec 22, 2010 10:21 pm

Re: Reference alignment

Post by john_latex »

Thanks torbjorn t. It worked. But, the numbers are left aligned. Can it be right aligned? Please suggest.
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Re: Reference alignment

Post by torbjorn t. »

Do you mean aligned so that the right bracket of the numbers are directly above one another? That is how it is by default for me. Anyway, I have no idea how to change the alignment of those numbers, so you would have to wait for someone else to reply.

Merry christmas!
john_latex
Posts: 20
Joined: Wed Dec 22, 2010 10:21 pm

Re: Reference alignment

Post by john_latex »

@torbjorn t. - I apologize for late replay.

Have a good year ahead. Happy New Year 2011!
Post Reply