tex code as below.
\documentclass[a4paper,11pt,number]{elsarticle}
\usepackage{times}%Use Times New Roman Font
\usepackage[hyphens]{url} %To recognize URLs
\begin{document}
\title{Integrated Model for Power Interruption Contracts}
\author{Lakshmi Palaparambil Dinesh}
\begingroup %\raggedright
\bibliography{reference_PowerInterruption}
%\bibliographystyle{apalike}
\bibliographystyle{elsarticle-num}
\endgroup
\end{document}
I see spaces between words or parts of the url with some white spaces after using hyphens with the url package. How to remove the remaning additional white spaces?
Best Answer
Because you gave us no bib file I created one for testing.
Please see the following MWE (package
filecontents
is only used to have bib file and tex code together in one compilable MWE):you get the following result:
I marked the resulting white space you do not want with red rules ... The most elegant way I knew to get rid of them is to use package
ragged2e
, which gives you command\RaggdRight
to get left justified text with better hyphenation! Please uncomment\RaggdRight
in the MWE (see marking<=======
) and recompile.The result you get is now:
The red arrows marks the layout changings. For me that solution is much more better than the first ...