# Multiline hidden text with align environment [duplicate]

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?

• Or did you want to hide single lines within an align environment? – Daniel Fischer Apr 27 '16 at 19:05
• That's not what I had in mind, but if you know how, I'd be interested to learn – Jon Warneke Apr 27 '16 at 19:09
• No idea how one could do that. Don't know if that's even possible. – Daniel Fischer Apr 27 '16 at 19:11
• Please use spoilers very sparingly. – quid Apr 27 '16 at 19:14
• @quid, what's your reasoning? (I'm not necessarily disagreeing, just wondering.) – Jon Warneke Apr 27 '16 at 19:19
• It makes it more inconvenient to get access to information. This is counter the purpose of the site. – quid Apr 27 '16 at 19:20
• – 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*}

• Great, thanks! Do you know of any other solutions that will make the code easier to read/edit later? – Jon Warneke Apr 27 '16 at 19:04
• '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. – Daniel Fischer Apr 27 '16 at 19:07