1
$\begingroup$

This question already has an answer here:

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?

$\endgroup$

marked as duplicate by Daniel Fischer Apr 29 '16 at 14:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3
$\begingroup$

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*}

$\endgroup$
  • $\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

Not the answer you're looking for? Browse other questions tagged .