BibTeX, biblatex and biberLast reference not indented properly

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
TheChameleon84
Posts: 6
Joined: Sun Jan 02, 2011 7:11 am

Last reference not indented properly

Post by TheChameleon84 »

Hi,
I'm using TeXLive 2010. I'm trying to generate a bibliography using BiBTeX. However, with the ieeetr style, the last reference is not indented properly. If I use plain style, the last couple of references are not indented properly. Any idea what the problem might be?

Thanks!
Last edited by TheChameleon84 on Mon Jan 03, 2011 6:43 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Last reference not indented properly

Post by frabjous »

Not without a minimal working example, no.
Harri
Posts: 6
Joined: Sun Jan 02, 2011 4:49 pm

Re: Last reference not indented properly

Post by Harri »

Dear All,
I am very new to Latex. I am using it on my windows 7 machine (Miktex 2.7 + winedt 5.--). In my tex file, I am using command "\bibliography{filename.bib}" and I have ".bib" file. If I run LaTex (Shift+Ctrl+L), there is no error message then I run BibTex (Shift+Ctrl+L) again there is no error. But If I again run LaTex (Shift+Ctrl+L), this I have to run to include references, I got following error

Missing character: There is no Ì in font cmr12!
Missing character: There is no ˆ in font cmr12!
[15] [16]
! Missing } inserted.
<inserted text>
}
l.128 \end{thebibliography}

after this if I press 'q' I end up at the intermediate file ".bbl" and following command "\end{thebibliography}" in ".bbl file" becomes highlighted in red colour.

Does any one has idea, what is wrong ? This file was working fine just a day back. then I added some text and now it is not working. I tried to undo the things I did but still I am not able to get it work.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Last reference not indented properly

Post by frabjous »

Please click on the link I gave you above, and READ it. The error seems to do with certain special characters in your bibliography. But you will either need to isolate what those are, and post the relevant parts of the .bib file as part of a minimal working example if you want help with it. It is not possible for us to figure out how to solve the problem with a working sample of your code that generates the error.
TheChameleon84
Posts: 6
Joined: Sun Jan 02, 2011 7:11 am

Re: Last reference not indented properly

Post by TheChameleon84 »

Thanks for the tip. I'll get back to you with one.
TheChameleon84
Posts: 6
Joined: Sun Jan 02, 2011 7:11 am

Last reference not indented properly

Post by TheChameleon84 »

Code: Select all

@incollection{springerlink:10.1007/978-3-540-89965-5_31,
	Affiliation = {University of Southampton},
	Author = {Moreau, Luc and Freire, Juliana and Futrelle, Joe and McGrath, Robert and Myers, Jim and Paulson, Patrick},
	Booktitle = {Provenance and Annotation of Data and Processes},
	Editor = {Freire, Juliana and Koop, David and Moreau, Luc},
	Note = {10.1007/978-3-540-89965-5_31},
	Pages = {323-326},
	Publisher = {Springer Berlin / Heidelberg},
	Series = {Lecture Notes in Computer Science},
	Title = {The {O}pen {P}rovenance {M}odel: An Overview},
	Url = {http://dx.doi.org/10.1007/978-3-540-89965-5_31},
	Volume = {5272},
	Year = {2008}
}
Ok, I think I've found the offending reference. Whenever I cite this, all references after this one are not indented properly in the bibliography. It is indented just fine without it. Let me know if you need a more complete example.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Last reference not indented properly

Post by frabjous »

The underscore is a special character in LaTeX, used for subscripts in math mode. You need to escape it with \_ instead of writing simply _. It might be OK as is in the URL field, but definitely change it in the Note field. It's probably advisable to change the citation key as well.

Try something like:

Code: Select all

@incollection{springerlink:moreauetal2008,
   Affiliation = {University of Southampton},
   Author = {Moreau, Luc and Freire, Juliana and Futrelle, Joe and McGrath, Robert and Myers, Jim and Paulson, Patrick},
   Booktitle = {Provenance and Annotation of Data and Processes},
   Editor = {Freire, Juliana and Koop, David and Moreau, Luc},
   Note = {10.1007/978-3-540-89965-5{\_}31},
   Pages = {323--326},
   Publisher = {Springer Berlin / Heidelberg},
   Series = {Lecture Notes in Computer Science},
   Title = {The {O}pen {P}rovenance {M}odel: An Overview},
   Url = {http://dx.doi.org/10.1007/978-3-540-89965-5_31},
   Volume = {5272},
   Year = {2008}
}
You'll need to change the key in the citations as well, of course.
TheChameleon84
Posts: 6
Joined: Sun Jan 02, 2011 7:11 am

Re: Last reference not indented properly

Post by TheChameleon84 »

Thanks! That fixed it. I understand the deal with the underscore, but why change the citation key?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Last reference not indented properly

Post by frabjous »

If it works OK as is, then go ahead and keep it. It would just make me nervous to have an underscore in the citation key, especially if I ever planned on using a different bib style which might insert the citation key in the code somewhere.

And of course, that's not even to mention that I'd prefer to use citation keys I might actually remember and/or are meaningful or suggestive, rather than a number which means nothing to me!
TheChameleon84
Posts: 6
Joined: Sun Jan 02, 2011 7:11 am

Re: Last reference not indented properly

Post by TheChameleon84 »

Ah ok. Thanks :)
Post Reply