Re: 1.6svn regression: enum/item in tables

2008-03-17 Thread Richard Heck

Jürgen Spitzmüller wrote:

Dov Feldstern wrote:
  

I've tested your file with the patch committed at r23756, and it seems
to work. Let me know if there are any additional problems.
  

Yes, this seems to solve the problem. Thanks!



but it introduces new ones. If the table cell is not fixed-width, only 
Standard (or Plain) layout is allowed, because other layouts (such as lists) 
trigger LaTeX errors. Cf. how LyX 1.5 behaves.


  
There sure are a lot of different cases here! It may be becoming 
apparent that, to solve this properly, we need an InsetTableCell that 
would handle know all about its width, etc, and not just an InsetText.


I could deal with this for the moment if I knew how to do the following. 
Suppose I'm in an InsetText, and I know that I'm actually in a table 
cell. I need to find (i) the containing InsetTabular and (ii) the 
idx_type for the cell I'm in, so that I can do roughly this: 
insetTabular->forceEmptyLayout(cellNumber), which will figure out from 
the cell's CellData what to do. If we can't do that, well, then we need 
an InsetTableCell that would provide us with access to this information.


rh



Re: 1.6svn regression: enum/item in tables

2008-03-17 Thread Jürgen Spitzmüller
Dov Feldstern wrote:
> > I've tested your file with the patch committed at r23756, and it seems
> > to work. Let me know if there are any additional problems.
>
> Yes, this seems to solve the problem. Thanks!

but it introduces new ones. If the table cell is not fixed-width, only 
Standard (or Plain) layout is allowed, because other layouts (such as lists) 
trigger LaTeX errors. Cf. how LyX 1.5 behaves.

Jürgen


Re: 1.6svn regression: enum/item in tables

2008-03-15 Thread Dov Feldstern

rgheck wrote:

Richard Heck wrote:

Dov Feldstern wrote:

Dov Feldstern wrote:

Hi!

It seems that enumeration/itemize (perhaps other layouts as well?) 
are no longer working inside a table. See the attached lyx file, 
created with r23573 from March 8, which still works fine. Try 
opening it in current svn (by r23669 from March 11 the problem 
already exists) --- the itemize and enumeration layouts are not 
recognized --- not in the GUI, nor in the latex output --- the text 
just appears in standard layout.


Using mercurials bisect extension 
(http://www.selenic.com/mercurial/wiki/index.cgi/BisectExtension), I 
was able to track this bug down to r23662. Richard --- any ideas?


I'll have a look. I'm probably overdoing it by requiring tables to use 
the EmptyLayout. The solution is presumably to put the enumeration 
inside an empty layout.


I've tested your file with the patch committed at r23756, and it seems 
to work. Let me know if there are any additional problems.




Yes, this seems to solve the problem. Thanks!


rh





Re: 1.6svn regression: enum/item in tables

2008-03-14 Thread rgheck

Richard Heck wrote:

Dov Feldstern wrote:

Dov Feldstern wrote:

Hi!

It seems that enumeration/itemize (perhaps other layouts as well?) 
are no longer working inside a table. See the attached lyx file, 
created with r23573 from March 8, which still works fine. Try 
opening it in current svn (by r23669 from March 11 the problem 
already exists) --- the itemize and enumeration layouts are not 
recognized --- not in the GUI, nor in the latex output --- the text 
just appears in standard layout.


Using mercurials bisect extension 
(http://www.selenic.com/mercurial/wiki/index.cgi/BisectExtension), I 
was able to track this bug down to r23662. Richard --- any ideas?


I'll have a look. I'm probably overdoing it by requiring tables to use 
the EmptyLayout. The solution is presumably to put the enumeration 
inside an empty layout.


I've tested your file with the patch committed at r23756, and it seems 
to work. Let me know if there are any additional problems.


rh



Re: 1.6svn regression: enum/item in tables

2008-03-14 Thread Richard Heck

Dov Feldstern wrote:

Dov Feldstern wrote:

Hi!

It seems that enumeration/itemize (perhaps other layouts as well?) 
are no longer working inside a table. See the attached lyx file, 
created with r23573 from March 8, which still works fine. Try opening 
it in current svn (by r23669 from March 11 the problem already 
exists) --- the itemize and enumeration layouts are not recognized 
--- not in the GUI, nor in the latex output --- the text just appears 
in standard layout.


Using mercurials bisect extension 
(http://www.selenic.com/mercurial/wiki/index.cgi/BisectExtension), I 
was able to track this bug down to r23662. Richard --- any ideas?


I'll have a look. I'm probably overdoing it by requiring tables to use 
the EmptyLayout. The solution is presumably to put the enumeration 
inside an empty layout.


rh



Re: 1.6svn regression: enum/item in tables

2008-03-14 Thread Dov Feldstern

Dov Feldstern wrote:

Hi!

It seems that enumeration/itemize (perhaps other layouts as well?) are 
no longer working inside a table. See the attached lyx file, created 
with r23573 from March 8, which still works fine. Try opening it in 
current svn (by r23669 from March 11 the problem already exists) --- the 
itemize and enumeration layouts are not recognized --- not in the GUI, 
nor in the latex output --- the text just appears in standard layout.


Using mercurials bisect extension 
(http://www.selenic.com/mercurial/wiki/index.cgi/BisectExtension), I was 
able to track this bug down to r23662. Richard --- any ideas?


Thanks!
Dov


1.6svn regression: enum/item in tables

2008-03-14 Thread Dov Feldstern

Hi!

It seems that enumeration/itemize (perhaps other layouts as well?) are 
no longer working inside a table. See the attached lyx file, created 
with r23573 from March 8, which still works fine. Try opening it in 
current svn (by r23669 from March 11 the problem already exists) --- the 
itemize and enumeration layouts are not recognized --- not in the GUI, 
nor in the latex output --- the text just appears in standard layout.


(I've been away for the past few weeks, and didn't go over the mailing 
list very thoroughly, so I apologize if this has already been reported).


Thanks!
Dov


enum_item_in_table.lyx
Description: application/lyx