BibTeX, biblatex and bibercitations out of alignment with main body text

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

citations out of alignment with main body text

Post by ther »

Anybody here able to answer this question please? Thanks.
latex@conference.jabber.org
pdftex 31415921403
jedit text editor

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Re: citations out of alignment with main body text

Post by frabjous »

I cannot see the problem. Perhaps if you provided the .bib file as well. Otherwise, we are left to make-up an example bib file, and with the one I made up, everything looked OK.
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

Re: citations out of alignment with main body text

Post by ther »

The bibliography file contained this entry:

@unpublished{test,
author="author one and author two",
month="",
note="",
title="title of the citation",
year="2000"
}
latex@conference.jabber.org
pdftex 31415921403
jedit text editor
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

citations out of alignment with main body text

Post by localghost »

It is very appreciated if you would decide in the future whether to post here on in the G00gle group. Though not forbidden here, crosspostings are always contra-productive thus not very welcome. So you better don't exaggerate. The people in the G00gle group don't know that you are posting here, too. (Perhaps I should tell them and see what they think about that.)

Your problem meanwhile is incomprehensible for me (see attachment).

Code: Select all

\begin{filecontents*}{\jobname.bib}
@unpublished{test,
author="author one and author two",
month="",
note="",
title="title of the citation",
year="2000"
}
\end{filecontents*}
\documentclass[12pt,a4paper]{book}
\usepackage[round]{natbib}

\begin{document}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, \citep{test}
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
ut aliquip ex ea commodo consequat.

\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
Attachments
tmp.pdf
The above code compiled with PDFLaTeX.
(24.93 KiB) Downloaded 221 times
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

Re: citations out of alignment with main body text

Post by ther »

The alignment error can be seen in the image attached.
Attachments
alignmenterror.png
alignmenterror.png (134.14 KiB) Viewed 3634 times
latex@conference.jabber.org
pdftex 31415921403
jedit text editor
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

citations out of alignment with main body text

Post by localghost »

ther wrote:The alignment error can be seen in the image attached.
But this misbehaviour is not produced by the code you provided. So you better work out a minimal working example (MWE) that exactly reproduces the effect and makes it comprehensible to others [1]. Otherwise I'm pessimistic about specific help for your problem. In the picture it seems that the citation is some kind of link. But your example definitely does not show this.

[1] View topic: Avoidable mistakes
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

Re: citations out of alignment with main body text

Post by ther »

Thank you, your comment about links helped me to investigate the problem and solve. I use the hyperref package which I think I forgot to include in my example. When I added the option 'breaklinks=true' to the package option arguments, the citation reference was aligned correctly with the text.
latex@conference.jabber.org
pdftex 31415921403
jedit text editor
Post Reply