Is there a way to use >!
for hidden lines with the \begin{align*} ... \end{align*}
environment? I can't seem to get it to work. Any workarounds?
-
$\begingroup$ Or did you want to hide single lines within an align environment? $\endgroup$ – Daniel Fischer♦ Apr 27 '16 at 19:05
-
$\begingroup$ That's not what I had in mind, but if you know how, I'd be interested to learn $\endgroup$ – Jon Warneke Apr 27 '16 at 19:09
-
$\begingroup$ No idea how one could do that. Don't know if that's even possible. $\endgroup$ – Daniel Fischer♦ Apr 27 '16 at 19:11
-
$\begingroup$ Please use spoilers very sparingly. $\endgroup$ – quid♦ Apr 27 '16 at 19:14
-
$\begingroup$ @quid, what's your reasoning? (I'm not necessarily disagreeing, just wondering.) $\endgroup$ – Jon Warneke Apr 27 '16 at 19:19
-
$\begingroup$ It makes it more inconvenient to get access to information. This is counter the purpose of the site. $\endgroup$ – quid♦ Apr 27 '16 at 19:20
-
$\begingroup$ See also: meta.math.stackexchange.com/questions/9297/… meta.math.stackexchange.com/questions/10906/… meta.math.stackexchange.com/questions/19838/… $\endgroup$ – Martin Sleziak Apr 28 '16 at 6:39
Write the source on a single line:
>! \begin{align*} 0 &= 1^2 - 1^3 \\ 4 + 1 &= 5 \\ 6 - 7 &= -1\end{align*}
produces
\begin{align*} 0 &= 1^2 - 1^3 \\ 4 + 1 &= 5 \\ 6 - 7 &= -1\end{align*}
-
$\begingroup$ Great, thanks! Do you know of any other solutions that will make the code easier to read/edit later? $\endgroup$ – Jon Warneke Apr 27 '16 at 19:04
-
1$\begingroup$ 'fraid not. Originally, you can write the code normally, and then remove the newlines to get it on one line. But after that … well, you can insert newlines when editing, but it's always going to be inconvenient. $\endgroup$ – Daniel Fischer♦ Apr 27 '16 at 19:07