Matt Williams wrote:
> Dear List,
>
> I'm using Lyx (v 1.3.5, Fedora Core 2) and am having some problems with
> floating figures.
>
> By using latex from the command line, I've found the problem:
>
> Lyx generates:
> \caption{\begin{tabular}
> <table>
>
> which causes latex to throw some errors.
>
> If you alter it to read:
> \caption[]{\begin{tabular}{|c|c|c|c|c|c|c|}
> The it runs ok.
>
> Does anyone know how to do this automatically?
The caption environment is for your title, not for the table itself. In
ASCII-art, what you want is:
[float: Table]
-------------------------------------
| Table #: my table title |
| --------- |
| | 1 | 2 | |
| --------- |
| | 3 | 4 | |
| --------- |
-------------------------------------
If the cursor is on the "my table title" line, then the environment combox
on the toolbar will say "Caption".
If the cursor is on the line containing the table itself, then the
environment combox should say "Standard".
HTH,
--
Angus