In defining an environment, I could use \ignorespacesafterend
to ignore all spaces after the environment. But how could I also ignore all \par
s and empty lines after the environment?
In other word, how could I modify the following latex source
\documentclass{article}
\newenvironment{abc}{\ignorespaces}{\ignorespacesafterend}
\begin{document}
\begin{abc}
One
\end{abc}
\par
\begin{abc}
Two
\end{abc}
\begin{abc}
Three
\end{abc}
\end{document}
to get the following result?
OneTwoThree
\ignorespacesandallpars
from that answer into my\newenvironment
, but it failed to remove\par
s.