Following suggestions here: Manually breaking a long URL (in the bibliography) and here: How can I break a long URL in bibliography I am trying to insert a break in a .bib
file URL that is giving an overfull hbox warning.
This is the code used to create the bibliography:
\documentclass[11pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{url}
%\usepackage{hyperref}
\usepackage{siunitx}
\usepackage[backend=biber,style=apa,natbib=true,maxbibnames=7,maxcitenames=3,dashed=false,uniquename=false]{biblatex}
\setcounter{biburllcpenalty}{7000}
\setcounter{biburlucpenalty}{7000}
\setcounter{biburlnumpenalty}{7000}
\addbibresource{bibliography.bib}
\AtBeginDocument{\renewcommand{\bibname}{References}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
\usepackage{hyperref}
is commented out because, when included, the error:
! Paragraph ended before \Hy@setref@link was complete.
occurs.
The entry that gives the warning in the .bib
file:
@manual{Ormo15,
title = {OrmoComp® and OrmoClear®FX},
organization = {micro resist technology GmbH},
address = {Köpenicker Straße 325, 12555 Berlin, Germany},
note = {OrmoComp® and OrmoClear®FX datasheet},
year = {2015},
URL = {www.microresist.de/sites/default/files/download/PI_OrmoComp_OrmoClearFX_2015_0.pdf}
}
This is the output:
Trying to tell LaTeX that it is a URL (before telling it where to insert the break) I try:
@manual{Ormo15,
title = {OrmoComp® and OrmoClear®FX},
organization = {micro resist technology GmbH},
address = {Köpenicker Straße 325, 12555 Berlin, Germany},
note = {OrmoComp® and OrmoClear®FX datasheet},
year = {2015},
URL = {\\\url{www.microresist.de/sites/default/files/download/PI_OrmoComp_OrmoClearFX_2015_0.pdf}}
}
But this gives the URL as:
Retrieved from %5C%5C%5Curl%7Bwww.microresist.de/sites/default/files/
download/PI OrmoComp OrmoClearFX 2015 0.pdf%7D
Can anyone tell me what am I doing wrong here please?
Best Answer
Your question is not very clear, you did not show us the code you use to create your bibliography.
To give you a start let us check the following MWE. It uses package
filecontents
to have tex code and bib file together in one compiling MWE. To get printed url I used packagenatbib
and bibliography styleplainnat
. Please see that I also used packagehyperref
to get better breakable urls ...The following MWE
gives you the result:
Please copy my MWE and run it on your computer. Same result? Good. If not report the differences.
If you want a answer for your circumstances, please show us in your question with an MWE (copy mine and change it to show your used packages and bib style) your current situation ...
Update:
With an current MiKTeX 2.9, version
pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6630 64-bit)
running the following MWE (please see that I changed the order of calling packages, in your casehyperref
should be called last!)I get the following resulting page which is different to that you show us:
I marked the differences with red arrows. Can it be that you are using another font and did not call it in your given MWE? Or do you use wider margins not given in the MWE? It also could be that one or more of your used packages is outdated. I added command
\listfiles
to my MWE. It results in the following list of used packages and version numbers:Please run my MWE on your computer and compare your resulting list at the end of the log file with mine. Differences? Which one?
As it stands now I can not reproduce your issue ...