On Sun, Nov 03, 2002 at 10:15:10AM -0600, Bo Peng wrote:
> Hi, Everyone,
> 
> I checked the tip and trick page and lyx mathed manual, \intertext is 
> not supported by lyx. However, is there a way to use ERT to do this? I 
> could not let the ERT have its own line (without alignment). I am using 
> lyx-1.2.1.

You don't need to have a the ERT on a line of its own
Write \intertext{ at the first cell of the first line after the text.
See attached file.
Using this has a limitation: you can't write a long text as you don't have
enough room on the LyX screen. So if the text is long, you need to define a
macro.
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset Formula \begin{align*}
a+b & =c+d\\
 & =e+f\\
\intertext {and}a+c & =g+h
\end{align*}

\end_inset 


\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
def
\backslash 
itext{
\backslash 
intertext{some long text}}
\end_inset 


\layout Standard


\begin_inset Formula \begin{align*}
a+b & =c+d\\
 & =e+f\\
\itext a+c & =g+h
\end{align*}

\end_inset 


\the_end

Reply via email to