Re: Strange table numbering
Uwe Stöhr wrote: Stefano Franchi schrieb: Do you mean that this particular behavior was never reported, or that there is *no* situation in which Lyx may trigger the long table option automatically? I meant both. If the latter, then I think I found a bug. It would be pretty hard to replicate, unfortunately. If you are once able to reproduce please report this in our bugtracker as this is a mustfix. 2. But even in that case, why does a long table inside a table float count as TWO tables? Is this expected Latex behavior? This is a LaTeX issue. Seeing that longtable in a float is meaningless, how about disallowing it? I.e. gray out the longtable option for any table that resides in a float, and clear the longtable setting on any table pasted into a float... Helge Hafting
Re: Strange table numbering
Stefano Franchi schrieb: Do you mean that this particular behavior was never reported, or that there is *no* situation in which Lyx may trigger the long table option automatically? I meant both. If the latter, then I think I found a bug. It would be pretty hard to replicate, unfortunately. If you are once able to reproduce please report this in our bugtracker as this is a mustfix. 2. But even in that case, why does a long table inside a table float count as TWO tables? Is this expected Latex behavior? This is a LaTeX issue. regards uwe
Re: Strange table numbering
Stefano Franchi schrieb: Do you mean that this particular behavior was never reported, or that there is *no* situation in which Lyx may trigger the long table option automatically? I meant both. If the latter, then I think I found a bug. It would be pretty hard to replicate, unfortunately. If you are once able to reproduce please report this in our bugtracker as this is a mustfix. 2. But even in that case, why does a long table inside a table float count as TWO tables? Is this expected Latex behavior? This is a LaTeX issue. regards uwe
Re: Strange table numbering
Uwe Stöhr wrote: > > 1. Why the longtable setting was turned on, since these are short tables > > and I do remember NOT choosing it? It seems that Lyx had done that > > automatically. Is that possible? > > I never had this case nor was this reported (except of LyX 2.0svn because > the table dialog is currently broken). I just faced the same problem with branch (1.6.6svn). While editing a table in a document, I suddenly noticed it became a longtable. I'm sure I never set that. I don't have time to investigate ATM. Jürgen
Re: Strange table numbering
On 03/07/10, Uwe Stöhr wrote: >Am 07.03.2010 17:16, schrieb Stefano Franchi: >> 1. Why the longtable setting was turned on, since these are short tables >> and I do remember NOT choosing it? It seems that Lyx had done that >> automatically. Is that possible? > >I never had this case nor was this reported (except of LyX 2.0svn because >the table dialog is currently broken). > Do you mean that this particular behavior was never reported, or that there is *no* situation in which Lyx may trigger the long table option automatically? If the latter, then I think I found a bug. It would be pretty hard to replicate, unfortunately. If the former, I'd like to learn how to avoid it. >> 2. But even in that case, why does a long table inside a table float count >> as TWO tables? Is this expected Latex behavior? > >A longtable inside a float doesn't make much sense because a float cannot be >placed over two pages. That is counts as two tables, is described in the >EmbeddedObjects manual, sec. 2.6.3 "Longtable Captions". > Thanks for the pointer---I didn't know. I had never even thought about what would happen to a longtable inside a float---as you say, it does not make sense. That's probably why it took me a while to understand what was going on. Cheers, S. __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Re: Strange table numbering
Am 07.03.2010 17:16, schrieb Stefano Franchi: 1. Why the longtable setting was turned on, since these are short tables and I do remember NOT choosing it? It seems that Lyx had done that automatically. Is that possible? I never had this case nor was this reported (except of LyX 2.0svn because the table dialog is currently broken). 2. But even in that case, why does a long table inside a table float count as TWO tables? Is this expected Latex behavior? A longtable inside a float doesn't make much sense because a float cannot be placed over two pages. That is counts as two tables, is described in the EmbeddedObjects manual, sec. 2.6.3 "Longtable Captions". regards Uwe
Re: Strange table numbering
On 03/06/10, Uwe Stöhr wrote: >Am 06.03.2010 22:49, schrieb Stefano Franchi: >> Another puzzling issue: I have a file with two figure floats and two >> table floats. In the compiled pdf, the figures are correctly numbered as >> figure 1 and figure 2, while the tables come out as table 2 and table 4. >> Latex log output is not particularly enlightening. > >Do you have a _small_ LyX example file? I think I solved the problem, but I am even more puzzled. Exporting to latex and looking at the source file I noticed that both tables (one per float) had been set to longtables. Removing the longtable setting from within lyx restored correct numbering. What I don't understand is: 1. Why the longtable setting was turned on, since these are short tables and I do remember NOT choosing it? It seems that Lyx had done that automatically. Is that possible? 2. But even in that case, why does a long table inside a table float count as TWO tables? Is this expected Latex behavior? I am enclosing a short file (just the two tables), even though it may not seem necessary. Puzzled, S. > >regards Uwe __ Stefano Franchi Department of Philosophy Ph: (979) 862-2211 Texas A&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237 table-numbering-test.lyx Description: application/lyx
Re: Strange table numbering
Am 06.03.2010 22:49, schrieb Stefano Franchi: Another puzzling issue: I have a file with two figure floats and two table floats. In the compiled pdf, the figures are correctly numbered as figure 1 and figure 2, while the tables come out as table 2 and table 4. Latex log output is not particularly enlightening. Do you have a _small_ LyX example file? regards Uwe
Re: Strange table numbering
Glenn Hutchings wrote: > > Is the longtable float numbering a bug? Is is sensible to > put a longtable (designed for making tables span multiple > pages) inside a float? Then again, how else can a longtable > get a caption? a float can only be one page, otherwise it makes no sense for latex for the formatting process. longtables with captions are possible. have a look at http://www.educat.hu-berlin.de/~voss/lyx/floats/nonFloat.html Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Strange table numbering
Hi there! I found out the circumstances when table floats get numbered 1, 3, 5, 7, ... or 2, 4, 6, 8, ... I put longtables inside the floats, since doing that seemed to get the tables centred. (Having used LyX more now, I know that's not the way to do it -- you just set the paragraph layout to centred.) Is the longtable float numbering a bug? Is is sensible to put a longtable (designed for making tables span multiple pages) inside a float? Then again, how else can a longtable get a caption? Glenn
Re: Strange table numbering
Glenn Hutchings wrote: > > I have 4 tables in my doc, inside table floats. If I put the > tables before the captions, I get tables numbered 1, 3, 5, 7. > If I put them afterward, I get 2, 4, 6, 8. But the actual > numbering I really want is 1, 2, 3, 4 (call me fussy or > something). What's going on here? do you have lyx-paragraphsytle caption doubled in the floats? can you send an example-file with two tables, which shows the behaviour Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/