In defining an environment, I could use \ignorespacesafterend to ignore all spaces after the environment. But how could I also ignore all \pars 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
\ignorespacesandallparsfrom that answer into my\newenvironment, but it failed to remove\pars. – Z.H. May 19 '14 at 08:00