## Using \intertext

I am trying to use both manual and scientific worplace editing of the same document using the latex compatibility mode (different coauthors).

The main problem I have is that any \intertext{} inside of \begin{align}.... do not work when opened in scientific workplace.  When opening the file a message pops up saying "Discarding \intertext"

Is there any way to fix this?  Or is there an alternative that can be used in Scientific Workplace?  Keep in mind that the purpose of intertext is that it doesn't mess with the spacing in a particular row, unlike a direct \text{...} command, so the other rows will align fine.

### Unfortunately SW does not

Unfortunately SW does not recognize \intertext and throws it away if it exists in a document. The only work around is to place the \intertext macro at the beginning of the next line of the display inside and encapsulated TeX field. That is, the encapsulated TeX field would appear in the line of the math display that follows the text in the typeset results.

If you want to modify the .tex file directly before importing it, you can use the \TeXButton macro that SW interprets as an encapsulated TeX field. \TeXButton takes two parameters, the first is the name of the TeX field and the second is the contents of the TeX field.

For example, the AMS documentation uses this example to demonstrate the use of \intertext:

\begin{align}
A_{1}  &  =N_{0}(\lambda;\Omega^{\prime})-\phi(\lambda;\Omega^{\prime}),\\
A_{2}  &  =\phi(\lambda;\Omega^{\prime})-\phi(\lambda;\Omega),\\
\intertext{and}
A_3&=\mathcal{N}(\lambda;\omega).
\end{align}


Change this to:

\begin{align}
A_{1}  &  =N_{0}(\lambda;\Omega^{\prime})-\phi(\lambda;\Omega^{\prime}),\\
A_{2}  &  =\phi(\lambda;\Omega^{\prime})-\phi(\lambda;\Omega),\\
\TeXButton{and}{\intertext{and}}%
A_3&=\mathcal{N}(\lambda;\omega).
\end{align}


Notice the fourth line. The % at the end of the line may not be strictly necessary. If you are saving with the Portable LaTeX file type, modify and save the document before typesetting so the \TeXButton will be rewritten as needed when saving for Portable LaTeX.