I want to add text after the body of a \newenvironment after the main body of the environment. So the pseudocode would look like this:
\newenvironment{example}[2]{#1 \newline}{\newline #2}
\begin{document}
\begin{example}{This is before}{and this is after.}
Hello World.
\end{document}
and format to:
This is before
Hello World
and this is after.
\newline→paragraphs - When to use \par and when \, \newline, or blank lines - TeX - LaTeX Stack Exchange – user202729 Oct 20 '22 at 02:00environor the LaTeX3 definition\NewDocumentEnvironment. – Werner Oct 20 '22 at 05:15