Bo Peng schrieb:

As I have said in one of my previous emails, \intertext is supposed to be used like the following:

\intertext {and because $\xi_{k}$ and $U_k$ are iid}
However, lyx puts text in \textrm and formula without $$ and generates latex code:

\intertext {\textrm{and because }\xi _{k}\textrm{ and }U_{k}\textrm{ are
iid}}
which causes compiling error. I could not figure out a way to enter math symbol within \intertext (except for using macros as Dekel suggested).

no, you are wrong here, see example: intertext with math , which is possible
but nonsense

Herbert


#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language ngerman
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\paperwidth 17cm
\paperheight 22cm
\leftmargin 1.2cm
\topmargin 1.4cm
\rightmargin 1.7cm
\bottommargin 1.4cm
\headsep 1cm
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout Standard

Mathmode and intertext
\begin_inset Formula \begin{align*}
x & =y+z\\
\intertext{text\  in\  mathmode\  with\ 
\begin{math}\int_{a}^{b}f(x)dx\end{math}~spaces}y & =-2y-z\\
z & =-x-y\end{align*}

\end_inset 


\the_end

Reply via email to