Jean-Marc Lasgouttes wrote:
"Trevor" == Trevor Nicholls <[EMAIL PROTECTED]> writes:
Trevor> Why does the "caption" style in stdlayouts.inc display
Trevor> "Senseless!" I've got a section which includes some text, a
Trevor> table, and some more text. The table has to appear in a
Trevor> specific location between certain paragraphs so it is a fixed
Trevor> table not a floating one, and it could certainly use a
Trevor> caption, so on the face of it "caption" looks like the right
Trevor> tool for the job.
First, I tend to disagree in general with table that _have_ to appear
between two particular paragraphs. But after all, it is your document,
not mine :)
Solution: create a Table float, put your table and caption inside it.
Then Edit>Float Settings... will allow you to select 'here definitely'
as placement.
Trevor> * Why tell me that a caption is senseless? * Why *is* a
Trevor> caption senseless here?
Because there is no way to know whether to write 'Figure 1' or 'Table 1'.
Trevor> * And why define a senseless style in the standard delivery in
Trevor> the first place?
A caption should be in a float.
As any latexer will know - but he is probably not a latex guy then.
From a user perspective, there is nothing strange about
inserting a caption in the text. It seems natural that
the caption is a property of the table/figure, not the float.
Is it a figure or a table? Insert a "table caption" or a "figure caption"
then. :-/
I don't see a good way to make this intuitive and also keep
good latex compatibility.
Well, LyX could put an implicit "Here definitely!" float
around the nonfloating label when exporting to latex. This would
sometimes lead to label and caption being separated by a
page break though.
Instead of the text "senseless!", how about
"Caption works only inside a float!" ?
This gives a meaningful hint. Although the real bug probably is that
it was possible to manufacture such a document in the first place.
Helge Hafting