Hi all,

I just fell across a problem when I loaded an old (1.1.6) file into
lyx 1.2pre5:

It's a very ugly file, as I had to work alot with ERT.  The old file
contained 

   \latex latex 

   \backslash 
   begin{multicols*}{2}[
   \backslash 
   section*{
   \color blue
   {
   \backslash 
   Large
   \backslash 
   textrm{
   \latex default 
   Introduction
   \latex latex 
   \color default
   }}}]
   \layout Standard

which correctly produces the following tex code:
\begin{multicols*}{2}[\section*{\textcolor{blue}{{\Large\textrm{Introduction}}}}]
Loading and saving it with 1.2pre5 ends up with


   \begin_inset ERT
   status Collapsed

   \layout Standard

   \backslash 
   begin{multicols*}{2}[
   \backslash 
   section*{{
   \backslash 
   Large
   \backslash 
   textrm{
   \end_inset 


   \color blue
   Introduction
   \begin_inset ERT
   status Collapsed

   \layout Standard
   }}}]
   \end_inset 

The \color default somehow didn't make it through the conversion, and
consequently this gets translated into

\begin{multicols*}{2}[\section*{{\Large\textrm{\textcolor{blue}{Introduction}}}]}

As you may recognize, the last two braces are exchanged, i.e., it's ]}
instead of }], and therefore latex bails out with sometimes very
strange messages :-(

  Pit

-- 
Dr. Peter "Pit" Suetterlin                 http://www.astro.uu.nl/~suetter
Sterrenkundig Instituut Utrecht
Tel.: +31 (0)30 253 5225                   [EMAIL PROTECTED]

Reply via email to