1

This question already has an answer here:

I was doing my report, and I face to some problem with typewriter font; it was not adjusted to the text width. I don't find any related answer or topic.

Here's my MWE:

\documentclass[12pt,a4paper]{article}

\usepackage[spanish,es-noshorthands]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

\usepackage[title]{appendix}

\usepackage{pdflscape}

\begin{document}

\section{New Story}

A written line

\section{Another}

\begin{itemize}
\item Blah blah blah blah blah blah blah blah blah blah blah  blah blah \texttt{RegistroSismico.xls}, blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.
\end{itemize}

Blah blah blah blah blah blah blah blah blah blah blah  blah blah \texttt{RegistroSismico.xls}, blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

\end{document}

enter image description here

marked as duplicate by Seamus, Andrew Swann, Maarten Dhondt, Andrew, Stefan Pinnow May 30 '16 at 7:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

If hyphenation is allowed, please compare corrected and uncorrected paragraph. The \-'s are the places, where hyphenation is allowed.

\documentclass[12pt,a4paper]{article}

\usepackage[spanish,es-noshorthands]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

\usepackage[title]{appendix}

\usepackage{pdflscape}

\begin{document}

\section{New Story}

A written line

\section{Another}

\begin{itemize}
\item Blah blah blah blah blah blah blah blah blah blah blah  blah blah \texttt{Registro\-Sis\-mi\-co.xls}, blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.
\end{itemize}

Blah blah blah blah blah blah blah blah blah blah blah  blah blah \texttt{RegistroSismico.xls}, blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.