Within standard LaTeX there are several simple text environments. These differ from the usual text environments in alignment, indentation and distance from the page margins. The range of application includes the representation of quotations, source code and poetry.
Within the quotation environment, the margins left and right are indented. In between the text is placed in justification. The paragraph is set with an indentation. If a blank line is inserted within the text, a new paragraph, also with indentation, is started. This is an environment that is suitable for quoting whole paragraphs directly.
\begin{quotation} This example text only serves as an example of how a text within the quotation sp; The word "environment" is "displayed" in the text and has no purpose beyond that. \end{quotation}
This example text only serves as an example of how a text is displayed within the Quotation environment. It has no purpose beyond that.Note: The paragraph indentation is not suppressed by the known \setlength{\parindent}{0em} at the beginning of the document. In principle, it would be possible to avoid the indentation with command \noindent after \begin{quotation}. But this form of text representation is already made possible by the following quote environment.
\begin{quote} This example text only serves as an example of how a text within the quotation sp; The word "environment" is "displayed" in the text and has no purpose beyond that. \end{quote}
This example text only serves as an example of how a text is displayed within the Quotation environment. It has no purpose beyond that.
Unformatted text which should also be output in this way\end{verbatim}
Unformatted text which should also be output in this way
\begin{verbatim*} Unformatted text which should also be output in this way \end{verbatim*}Unformatted text which⊔is also⊔to⊔be output⊔like this
There are several advanced packages available for these two environments. The verbatim package contains improved versions of the original environments as well as a new environment -- the comment environment. The fancyvrb package allows, among other things, changing the font and font size within the verbatim environment. In addition, there are other packages.
\begin{verse} That's not a poem!\\ It's just for show. \\ Has no other purpose!\\ Just away the dirt. \end{verse}
That's not a poem!
It serves only the show.
Has no other purpose!
Just get rid of the dirt.
Since the verse environment allows only minimal changes in the representation, the verse package should be used for the representation of poems and the like, since it provides considerably more possibilities for changing the representation of the text.