How do I remove this space please? I'm using the natbib
package
Code from ref.bib
@article{stats2017,
title={Digest of Education Statistics 2017},
author={\text{Statistics Mauritius}},
year={2017},
url={\url{http://statsmauritius.govmu.org/English/Publications/Pages/Edu_Stats_Yr2017.aspx}}
}
bibliography style
%\printbibliography
\setcitestyle{numbers} % set the citation style to ``numbers''.
\bibliographystyle{agsm}
\bibliography{ref.bib}
Best Answer
The easiest solution, assuming your TeX distribution is reasonably up to date, consists of loading the
xurl
package; it allows arbritary line breaks in URL strings. Should your TeX distribution lack thexurl
package, I suggest you (a) load theurl
package with the optionsspaces
andhyphens
and (b) switch to\raggedright
right before\bibliography{ref}
.Whatever else you do, please encase the
author
field in an extra pair of curly braces. Doing so informs BibTeX that it's dealing with a "corporate" author and not with a person whose first name is "Statistics" and whose surname is "Mauritius". And do get rid of the\text
wrapper too, as it is not appropriate here.