I have created my first newenvironment! I had it working, and then I must have done something and it has stopped. The intent is to create an "aside" environment that puts a vertical space, then sets things in sans serif, then another space and normal font.
When I run the MWE below, it puts in the first space, and goes to sans serif, but doesn't put the second space or switch back. I've been staring at it for 30 minutes and I can't figure it out.
\documentclass[openany, final]{memoir}
\usepackage{dialogue}
\OnehalfSpacing
\makeatletter
\renewcommand\partnumberlinehook[1]{%
\settowidth{\@tempdima}{\bfseries #1 }%
}
\makeatother
\newenvironment{aside}
{
\vspace{0.2in}
\begin{sffamily}
}
{
\end{sffamily}
\vspace{0.2in}
}
\begin{document}
Then they take the bandages off and, as expected, my vision hasn't changed but
my eyes look much better.
\aside{The car crash and the eye surgery happened at around the same time, but
\ldots I don't remember which happened first and, at this point, there's no one
left alive who can tell me. I sort of \emph{think} that the eye surgery was
first. But I don't really know. And my thinking this is based on thinking, not
on the sort of sense of time that most people seem to have.
I think this is related to my NLD, I've heard of this sort of thing in some
other people withe NLD, but it's not the center of the diagnosis. It happens
with more minor life events too. I don't remember when things happened, or in
what order they happened.}
I've survived being hit by a cab, having eye surgery, and 7th grade, but 8th
grade is even worse.
\end{document}
When I run it in my full document, I get a different error, of "begin{\sffamily} ended by \end{document} but I can't figure out a good MWE for that.
\par
see what happens if you doaaaaa \begin{aside} aside text here \end{aside} following text
the vertical space will not be where you want