The following works to create two minipages, side-by-side, using the gobble-user package:
\noindent\begin{minipage}{0.5\textwidth}
Some stuff.
\end{minipage}\gobble
\begin{minipage}{0.5\textwidth}
More stuff.
\end{minipage}
I want to automate this by defining two environments:
\newenvironment{leftside}
{\noindent\begin{minipage}{0.5\textwidth}}
{\end{minipage}\gobble}
\newenvironment{rightside}
{\begin{minipage}{0.5\textwidth}}
{\end{minipage}}
\begin{leftside}
Some stuff.
\end{leftside}
\begin{rightside}
More stuff.
\end{rightside}
This doesn't work--I assume because the \gobble ends up gobbling some part of the implementation of the environment, rather than gobbling the blank line.
Because of the way my TeX file is being created, the only way for me to do this is to define environments to implement it, and I can't seem to avoid the blank line between the two environments, so I need some way to get rid of it to get the two minipages to end up next to each other. Any ideas?
\gobbleis typically used to ignore macro arguments. I suspect what you want is\ignorespaces. If not, try\expandafter\gobble}. – John Kormylo Oct 06 '22 at 14:23