#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage{url}
\usepackage{color}
\end_preamble
\use_default_options true
\begin_modules
theorems-ams
eqs-within-sections
figs-within-sections
\end_modules
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author "" 
\author "" 
\end_header

\begin_body

\begin_layout Title
ERT Test
\end_layout

\begin_layout Standard
This is a test for Evil Red Test (
\begin_inset ERT
status open

\begin_layout Plain Layout

TeX
\end_layout

\end_inset

 code).
\end_layout

\begin_layout Standard
Pure TeX can contain formulas: 
\begin_inset ERT
status open

\begin_layout Plain Layout

Equation $a=b$
\end_layout

\end_inset

.
 This activates the dorky math mode.
\end_layout

\begin_layout Standard
It can also contain arbitrary commands: 
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
$ 
\backslash
url{http://elyxer.nongnu.org/} 
\backslash
Circle
\end_layout

\end_inset

.
\end_layout

\begin_layout Standard
ERTs can be left open 
\begin_inset ERT
status open

\begin_layout Plain Layout

{
\end_layout

\end_inset

 and be closed afterwards
\begin_inset ERT
status open

\begin_layout Plain Layout

} with text
\end_layout

\end_inset

.
 This allows us to apply commands to arbitrary text: 
\begin_inset ERT
status open

\begin_layout Plain Layout

{
\backslash
color{red}
\end_layout

\end_inset

this text should be red
\begin_inset ERT
status open

\begin_layout Plain Layout

}
\end_layout

\end_inset

, 
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
url{
\end_layout

\end_inset

http://should.be.an.url/
\begin_inset ERT
status open

\begin_layout Plain Layout

}
\end_layout

\end_inset

.
\end_layout

\begin_layout Standard
ERTs can also be inserted in formulas:
\end_layout

\begin_layout Standard
\begin_inset Formula \begin{equation}
a=b\tag{{unnumbered}}.\end{equation}

\end_inset


\end_layout

\begin_layout Standard
Curly brackets can be inserted escaping them: 
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
{ like this 
\backslash
}
\end_layout

\end_inset

.
 Also in a formula: 
\begin_inset Formula $\{h\}$
\end_inset

.
 Escaped curly brackets should not be confused with regular TeX brackets:
 
\begin_inset ERT
status open

\begin_layout Plain Layout

{
\backslash
{
\backslash
}}
\end_layout

\end_inset

.
\end_layout

\begin_layout Standard
A rule in an ERT: 
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
rule{3cm}{2pt}
\end_layout

\end_inset

.
\end_layout

\begin_layout Standard
Other commands can be ignored: 
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
fboxrule 3mm 
\backslash
fboxsep 0.4mm
\end_layout

\end_inset

.
 TeX comments should also be ignored: 
\begin_inset ERT
status open

\begin_layout Plain Layout

%comment
\end_layout

\begin_layout Plain Layout

but not text between comments.
\end_layout

\begin_layout Plain Layout

% another comment
\end_layout

\end_inset


\end_layout

\end_body
\end_document
