+\begin_layout Standard
+Another issue with the \SpecialChar TeX
+ code environment is the Sweave code chunk may fail
+ when we change the alignment of the chunk paragraph in \SpecialChar LyX
+ (using
+\family sans
+Paragraph settings
+\family default
+), because \SpecialChar LyX
+ may add a macro like
+\family typewriter
+
+\backslash
+centering{}
+\family default
+ before the code chunk without adding a new line, which will lead to a code
+ chunk like this:
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+begin{verbatim}
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+centering{}<<xtable-demo,results=tex,echo=FALSE>>=
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+end{verbatim}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+This is not a legitimate Sweave code chunk, since
+\family typewriter
+<<>>=
+\family default
+ must start in a new line with nothing before it.
+ This does not happen when using the Chunk inset instead of the \SpecialChar TeX
+ code environmen
+t.
+
+\end_layout
+