On Wed, Jun 13, 2001 at 10:24:28PM +0200, Herbert Voss wrote:
> > You need to put \protect before fragile command (\begin, \end, \\, \hline)
> > in moving argument.
> > However, I just tried creating a tabular in a caption using ERT, and I still
> > get errors due to \hline commands. Does anyone know what is the solution ?
> 
> no problem, when you define the table outside the float. this can be
> just before this one.
> 
> \newcommand\myTable{% 
>  \begin{tabular}{|c|c|}\hline
>   a & b \\\hline  
>   c & d\\\hline
>  \end{tabular}%
> }
> 
> ... the float ...
> \caption{a very nice caption with a nice \protect\myTable}

But with the current lyx code, it would be very hard to generate the latex
code above.

Reply via email to