I am new to Latex, I apologize for the very basic question in advance.
I just cannot make Latex breake the words correctly, or adjust the spacement of words properly so that I have a straight line at the right of the text, in a "justified" format, a Microsoft Word-user would call.
Instead, I keep getting these "Overfull /hbox" warnings and this awful effect:
I am using the AGU Template in Overleaf.
This piece of codes reproduce the effect. Every single paragraph gets a warning of "Overfull \hbox".
\documentclass[draft]{agujournal2019}
\usepackage{url}
\usepackage{lineno}
\usepackage[inline]{trackchanges}
\usepackage{soul}
\linenumbers
\draftfalse
\journalname{Enter journal name here}
\begin{document}
\title{=enter title here=}
\authors{=list all authors here=}
\affiliation{=number=}{=Affiliation Address=}
\correspondingauthor{=name=}{=email address=}
\section{My Section}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, purus quis fringilla vulputate, enim metus placerat urna, id varius tortor justo ac leo. Donec a euismod felis.
Nulla venenatis lectus convallis pretium auctor. Phasellus tincidunt lorem quis lacus aliquam, ut fringilla dui pharetra. Quisque imperdiet metus sem, sit amet semper mauris sollicitudin quis.
Vestibulum tortor urna, porttitor sit amet accumsan vitae, faucibus mattis velit. Aliquam mi dolor, vehicula sit amet nunc venenatis, efficitur ultricies eros.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec facilisis vitae turpis ac ornare. Nulla sollicitudin, nunc vehicula vehicula finibus, nulla enim facilisis leo, id rutrum massa nulla ut magna. Sed cursus tincidunt elit, vulputate placerat nisl eleifend eu. Pellentesque venenatis justo ante. Cras eget ullamcorper lectus.
In fermentum fringilla porta. Praesent porta, ipsum nec ultrices porta, elit tortor eleifend ligula, ut sodales urna libero ac lectus. In nec nisl eu eros fermentum consectetur.
Sed sodales massa at elit tincidunt consequat. Donec euismod facilisis mattis. Morbi semper lectus at condimentum convallis. Donec condimentum libero quis velit maximus malesuada. Quisque fermentum tristique venenatis. Pellentesque nec libero augue.
\acknowledgments
Enter acknowledgments, including your data availability statement, here.
\bibliography{ enter your bibtex bibliography filename here }
\end{document}
A full (all auxiliary files) reproducible example is available here.
Thank you for your advice.
\RaggedRight
from theragged2e
package, the default settings would never produce that layout.