On 2011-12-11, Liviu Andronic wrote:
> On Fri, Dec 9, 2011 at 8:25 PM, Guenter Milde <mi...@users.sf.net> wrote:
>>>> My question is why the Insert>Short title option is greyed out.
>>>> Should not it work with the labeling and enumerate-resume list types
>>>> as well? How could I make it work?

>>> Labeling is LyX's own special thing, and is not handled by enumitem.

>> In my LyX 2.x SVN, it is handled by enumitem.
>> And inserting options with the misnamed Insert>Short Title into a labeling
>> works, too.

> I'm not suer what's wrong, but I think I'm seeing this issue, too (in
> both 2.0.x and 2.1 SVN). For one, I cannot insert a "short title". But
> worst is that when I look into enumitem.lyx and specifically at the
> last example that suggests that the environment "also takes an
> optional argument", here is what I get in the View Source:
> It also takes an optional argument:
> \begin{elabeling}{withNN}
> \item [{nice}] description
> \item [{with}] several items and
> \item [{including~one~very~long~label}] and the item content starting
> at the next line.\end{elabeling}

> The above completely ignores the 'style=nextline' inserted in the
> 'opt' inset. When I write anything else in the inset, the Source pane
> dully ignores it. Something is wrong.

It seems the latest update

# 2011-01-12 bugfix: set elabeling label font to \normalfont.

has broken this. 

In my local ~/.lyx-svn/layouts folder, I have the previous version that
fully defines the Labeling style while the 2011-01-12 version seems to
inherit from stdlists.inc.

The following patch should fix the issue:

@@ -72,6 +72,7 @@ Input stdlyxlist.inc
 
 Style Labeling
        LatexName             elabeling
+       OptionalArgs          1
        # FIXME This should probably be defined using \newlist instead
        Preamble
        % labeling-like list based on enumitem's description list with
        
        
Günter  

Reply via email to