1

The following source code compiles just fine:

\documentclass{minimal}
\begin{document}
\texttt{
    Lorem ipsum dolor sit amet        
    Lorem Lorem    
}
\end{document}

However, the following produces an error:

\documentclass{minimal}
\begin{document}
\texttt{
    Lorem ipsum dolor sit amet

    Lorem Lorem    
}
\end{document}

Sometimes the error message is:

 Paragraph ended before \text@command was complete.

Is there someway to allow paragraph breaks inside of a \texttt block?

IdleCustard
  • 1,194

1 Answers1

6

Use the global font switch inside a group instead of the command.

\documentclass{article}
\begin{document}
{\ttfamily
    Lorem ipsum dolor sit amet

    Lorem Lorem    
}
\end{document}

enter image description here

Henri Menke
  • 109,596