BibTeX, biblatex and biberhyperref | Line Break too early with 'pagebackref' Option

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
karl-ranseier
Posts: 2
Joined: Thu Jan 12, 2012 10:56 am

hyperref | Line Break too early with 'pagebackref' Option

Post by karl-ranseier »

Hi,
I think hyperref produces an unnecessary line break when using the "pagebackref" option. My example is:

Code: Select all

\documentclass[pdftex]{scrbook}
\usepackage[pagebackref]{hyperref} 

\begin{document}
\bibliographystyle{plain}
\cite{Minimal}\clearpage
\cite{Minimal}\clearpage
\bibliography{bibi}
\end{document}
using the bibi.bib content:

Code: Select all

@ARTICLE{Minimal,
  author = {A. Aaaaa and A. Aaaaa and A. Aaaaa and A. Aaaaa and A. Aaaaa and A. Aaaaa},
  title = {BBBBBB BBBBBBBB BBBBBBBBB BBBBBBb},
  journal = {CCCCCCCCC CCCCCCCCC},
  year = {2042},
  volume = {42},
  pages = {42}
}
It produces this:
linebreak.jpg
linebreak.jpg (31.51 KiB) Viewed 1860 times
Using only one C less in the journal produces:
nolinebreak.jpg
nolinebreak.jpg (30.27 KiB) Viewed 1860 times
One may see, that there is enough space for more than one C, so in my opinion the line break is too early. Basically this behaviour is acceptable. But using my own .bst file, where I replaced the the fin.entry function to fill out the gap between the page back references and the citation:

Code: Select all

FUNCTION {fin.entry}
{ write$
  " {\hfill} " write$
  newline$
}
It produces, using some modifications in the length of the bib-entry, this ugly behaviour:
hfill.jpg
hfill.jpg (24.83 KiB) Viewed 1860 times
The expected behaviour (produced with different content in the bibi.bib) looks like this:
hfillok.jpg
hfillok.jpg (30.78 KiB) Viewed 1860 times
Does anyone have some hints how to fix this problem? Am I right, that the problem is produced as shown in my source code example? Or shall I post my *.bst file? Am I in the wrong forum?


kind regards
karl.ranseier
Last edited by karl-ranseier on Fri Jan 13, 2012 12:15 pm, edited 2 times 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.

karl-ranseier
Posts: 2
Joined: Thu Jan 12, 2012 10:56 am

hyperref | Line Break too early with 'pagebackref' Option

Post by karl-ranseier »

Moved the problem to another discussion group:
http://groups.google.com/group/comp.tex ... b315821273#

These settings in the preamble work fine:

Code: Select all

\adjdemerits=6666 % Default 10000
\linepenalty=77 %Default=?
Post Reply