BibTeX, biblatex and biber ⇒ citations out of alignment with main body text
citations out of alignment with main body text
Anybody here able to answer this question please? Thanks.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: citations out of alignment with main body text
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.
Re: citations out of alignment with main body text
The bibliography file contained this entry:
@unpublished{test,
author="author one and author two",
month="",
note="",
title="title of the citation",
year="2000"
}
@unpublished{test,
author="author one and author two",
month="",
note="",
title="title of the citation",
year="2000"
}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
citations out of alignment with main body text
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).
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: citations out of alignment with main body text
The alignment error can be seen in the image attached.
- Attachments
-
- alignmenterror.png (134.14 KiB) Viewed 3633 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
citations out of alignment with main body text
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.ther wrote:The alignment error can be seen in the image attached.
[1] View topic: Avoidable mistakes
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: citations out of alignment with main body text
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.