Re: enumitem.module in Lyx 2

2012-08-14 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck rgh...@lyx.org wrote:
 On 08/13/2012 06:11 PM, Jane Shevtsov wrote:

 Just to make sure I'm not doing anything stupid: the instructions say to
 put the cursor after the blue number in the enumerate-resume environment and
 choose Insert  Short Title. There's actually a gap between the number and
 the cursor, right?


 So you are trying to add a short title in the enumerate-resume
 environment? In that case, the patch Guenter had posted doesn't address this
 issue, but rather something to do with Labeling.

 If you look at enumitem.module, you'll see that it explicitly sets
 OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
 are in effect forcing the short title to be resume, which we have to do to
 get the numbering to resume. There's no way at present to add anything else
 to the short title.

 Where are these instructions you mentioned?

The instructions I refer to are the ones at
http://wiki.lyx.org/Tips/Enumitem. The relevant part is:

Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select InsertShort Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering.

When I tried this, Insert  Short Title was grayed out. I googled the
problem, which led me to Guenter's patch.

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-14 Thread Richard Heck

On 08/14/2012 02:22 AM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck rgh...@lyx.org wrote:

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:

Just to make sure I'm not doing anything stupid: the instructions say to
put the cursor after the blue number in the enumerate-resume environment and
choose Insert  Short Title. There's actually a gap between the number and
the cursor, right?


So you are trying to add a short title in the enumerate-resume
environment? In that case, the patch Guenter had posted doesn't address this
issue, but rather something to do with Labeling.

If you look at enumitem.module, you'll see that it explicitly sets
OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
are in effect forcing the short title to be resume, which we have to do to
get the numbering to resume. There's no way at present to add anything else
to the short title.

Where are these instructions you mentioned?

The instructions I refer to are the ones at
http://wiki.lyx.org/Tips/Enumitem. The relevant part is:

Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select InsertShort Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering.

This is all out of date. You can just choose Enumerate-Resume, and this 
happens automatically now. You don't need to add anything else.


I've updated the wiki.

Richard



Re: enumitem.module in Lyx 2

2012-08-14 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck rgh...@lyx.org wrote:
 On 08/13/2012 06:11 PM, Jane Shevtsov wrote:

 Just to make sure I'm not doing anything stupid: the instructions say to
 put the cursor after the blue number in the enumerate-resume environment and
 choose Insert  Short Title. There's actually a gap between the number and
 the cursor, right?


 So you are trying to add a short title in the enumerate-resume
 environment? In that case, the patch Guenter had posted doesn't address this
 issue, but rather something to do with Labeling.

 If you look at enumitem.module, you'll see that it explicitly sets
 OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
 are in effect forcing the short title to be resume, which we have to do to
 get the numbering to resume. There's no way at present to add anything else
 to the short title.

 Where are these instructions you mentioned?

The instructions I refer to are the ones at
http://wiki.lyx.org/Tips/Enumitem. The relevant part is:

Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select InsertShort Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering.

When I tried this, Insert  Short Title was grayed out. I googled the
problem, which led me to Guenter's patch.

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-14 Thread Richard Heck

On 08/14/2012 02:22 AM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck rgh...@lyx.org wrote:

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:

Just to make sure I'm not doing anything stupid: the instructions say to
put the cursor after the blue number in the enumerate-resume environment and
choose Insert  Short Title. There's actually a gap between the number and
the cursor, right?


So you are trying to add a short title in the enumerate-resume
environment? In that case, the patch Guenter had posted doesn't address this
issue, but rather something to do with Labeling.

If you look at enumitem.module, you'll see that it explicitly sets
OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
are in effect forcing the short title to be resume, which we have to do to
get the numbering to resume. There's no way at present to add anything else
to the short title.

Where are these instructions you mentioned?

The instructions I refer to are the ones at
http://wiki.lyx.org/Tips/Enumitem. The relevant part is:

Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select InsertShort Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering.

This is all out of date. You can just choose Enumerate-Resume, and this 
happens automatically now. You don't need to add anything else.


I've updated the wiki.

Richard



Re: enumitem.module in Lyx 2

2012-08-14 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck  wrote:
> On 08/13/2012 06:11 PM, Jane Shevtsov wrote:
>>
>> Just to make sure I'm not doing anything stupid: the instructions say to
>> put the cursor after the blue number in the enumerate-resume environment and
>> choose Insert > Short Title. There's actually a gap between the number and
>> the cursor, right?
>
>
> So you are trying to add a "short title" in the enumerate-resume
> environment? In that case, the patch Guenter had posted doesn't address this
> issue, but rather something to do with Labeling.
>
> If you look at enumitem.module, you'll see that it explicitly sets
> OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
> are in effect forcing the short title to be "resume", which we have to do to
> get the numbering to resume. There's no way at present to add anything else
> to the short title.
>
> Where are these instructions you mentioned?

The instructions I refer to are the ones at
. The relevant part is:

"Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select Insert>Short Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering."

When I tried this, Insert > Short Title was grayed out. I googled the
problem, which led me to Guenter's patch.

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

"In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation." --John
Janovy, Jr., "On Becoming a Biologist"


Re: enumitem.module in Lyx 2

2012-08-14 Thread Richard Heck

On 08/14/2012 02:22 AM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck  wrote:

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:

Just to make sure I'm not doing anything stupid: the instructions say to
put the cursor after the blue number in the enumerate-resume environment and
choose Insert > Short Title. There's actually a gap between the number and
the cursor, right?


So you are trying to add a "short title" in the enumerate-resume
environment? In that case, the patch Guenter had posted doesn't address this
issue, but rather something to do with Labeling.

If you look at enumitem.module, you'll see that it explicitly sets
OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
are in effect forcing the short title to be "resume", which we have to do to
get the numbering to resume. There's no way at present to add anything else
to the short title.

Where are these instructions you mentioned?

The instructions I refer to are the ones at
. The relevant part is:

"Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select Insert>Short Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering."

This is all out of date. You can just choose Enumerate-Resume, and this 
happens automatically now. You don't need to add anything else.


I've updated the wiki.

Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Liviu Andronic
On Mon, Aug 13, 2012 at 4:29 AM, Jane Shevtsov jane@gmail.com wrote:
 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

Not sure that it's needed here, but did you Tools  Reconfigure?

Liviu

 I'm running Lyx 2.0.3 on Windows 7. Here's what the relevant part of
 my enumitem.module file now looks like.

 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
 % mandatory second argument (label-pattern):
 \newenvironment{elabeling}[2][]%
 {\settowidth{\lyxlabelwidth}{#2}
 \begin{description}[font=\normalfont,style=sameline,
 leftmargin=\lyxlabelwidth,#1]}
 {\end{description}}
 EndPreamble
 End



 --
 -
 Jane Shevtsov, Ph.D.
 Mathematical Biology Curriculum Writer, UCLA
 co-founder, www.worldbeyondborders.org

 In the long run, education intended to produce a molecular
 geneticist, a systems ecologist, or an immunologist is inferior, both
 for the individual and for society, than that intended to produce a
 broadly educated person who has also written a dissertation. --John
 Janovy, Jr., On Becoming a Biologist



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net
wrote:

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

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
 OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

Is there more than one version of this file on your system? I.e., one in 
the LyX system directory and one in your user directory?


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:
 On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

 On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:
 Find the enumitem.module file, and put
  OptionalArgs 1
 into the appropriate place. You can find it by just looking through the
 file.

 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

 Is there more than one version of this file on your system? I.e., one in the
 LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.

Liviu, reconfiguring didn't help.

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

Find the enumitem.module file, and put
  OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

Richard

#\DeclareLyXModule[enumitem.sty]{enumitem}
#DescriptionBegin
# Controls the layout of enumerate, itemize, description, and list/labeling.
# See section Customized Lists of the User's Guide for a detailed description.
#DescriptionEnd
# Author: Günter Milde mi...@users.berlios.de
# 
# 2008-12-04 first published version.
# 2009-02-02 use name Labeling for LyX-List/Labeling list type,
#copy standard layout verbatim for failsave working with 
#both KOMA and non-KOMA document classes.
# 2011-01-12 bugfix: set elabeling label font to \normalfont.

Format 35

# The package enumitem provides user control over the layout of the three
# basic list environments: enumerate, itemize and description. It supersedes
# both enumerate and mdwlist (providing well-structured replacements for all
# their funtionality), and in addition provides functions to compute the
# layout of labels, and to ‘clone’ the standard environments, to create new
# environments with counters of their own.
#
# - fancy labels and fancy refs,
# - leftmargin, labelsep and labelwidth automatically set,
# - changes applied globally or only in one of the three
#   types or even in a single list (including topsep),
# - several description styles (which fix some bad spacing, too),
# - starting value and counter resuming,
# - trivlists properly formatted,
# - control on page breaking
#
# Styling the basic lists is possible 
#
# a) generally in the LaTeX preamble and 
# b) per environment with optional arguments
#
# See enumitem.pdf_ for details and examples.
#
# TODO: since version 2.0, enumitem supports cloning of lists.
#   Producing a labeling as clone of a description allows
#   Preamble-Styling specific to this list type.

AddToPreamble
\usepackage{enumitem}   % customizable list environments
\newlength{\lyxlabelwidth}  % auxiliary length 
EndPreamble


# Customisable Basic Lists
# 

# With enumitem, the three standard list environments take an optional
# argument. See enumitem.pdf_ for possible values.

IfStyle Itemize
OptionalArgs  1
End

IfStyle Enumerate
OptionalArgs  1
End

IfStyle Description
OptionalArgs  1
End


# Customisable LyX List
# -

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
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End


# List Variants
# -
#
# Styles with pre-defined optional arguments for ease of use

Style Enumerate-Resume
CopyStyle Enumerate
LatexParam[resume]
OptionalArgs  0
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color blue
EndFont
End

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck rgh...@lyx.org wrote:
 On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

 On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:

 On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

 On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

 Find the enumitem.module file, and put
   OptionalArgs 1
 into the appropriate place. You can find it by just looking through the
 file.

 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

 Is there more than one version of this file on your system? I.e., one in
 the
 LyX system directory and one in your user directory?

 There only seems to be one. And I know Lyx is using the file I edited
 because when I renamed it as an experiment and tried to include
 enumitem in a document, I got an error message.

 The attached works for me.

But not for me. Time to reinstall Lyx?

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 01:01 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck rgh...@lyx.org wrote:

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

Find the enumitem.module file, and put
   OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in
the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

But not for me. Time to reinstall Lyx?
That's very strange. I guess you could try re-installing, but you might 
first try running from a terminal and seeing if you get some kind of 
error message when you try to use it.


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 1:58 PM, Richard Heck wrote:
 That's very strange. I guess you could try re-installing, but you might
 first try running from a terminal and seeing if you get some kind of error
 message when you try to use it.

How do I use enumitem and Insert Short Title from a terminal? I'm on Windows 7.

Just to make sure I'm not doing anything stupid: the instructions say
to put the cursor after the blue number in the enumerate-resume
environment and choose Insert  Short Title. There's actually a gap
between the number and the cursor, right?

Jane


-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:
Just to make sure I'm not doing anything stupid: the instructions say 
to put the cursor after the blue number in the enumerate-resume 
environment and choose Insert  Short Title. There's actually a gap 
between the number and the cursor, right?


So you are trying to add a short title in the enumerate-resume 
environment? In that case, the patch Guenter had posted doesn't address 
this issue, but rather something to do with Labeling.


If you look at enumitem.module, you'll see that it explicitly sets 
OptionalArgs to 0 for the Enumerate-Resume environment. This is because 
we are in effect forcing the short title to be resume, which we have 
to do to get the numbering to resume. There's no way at present to add 
anything else to the short title.


Where are these instructions you mentioned?

Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Paul A . Rubin
Just as an FYI: you can achieve the same effect as the Enumerate-Resume
environment by using the Enumerate environment and putting resume in the short
title of the first item of the resumed section. (This assumes that you have the
Customisable Lists module installed or have otherwise loaded enumitem.sty.)
You can then add other arguments to the short title.  I discovered this is
necessary because the Enumerate-Resume environment does not inherit any optional
arguments from the previous enumerate environment. If I fiddle with label format
in the initial enumeration, I have to repeat those options in the short title of
the first item of the resumed list.

Paul



Re: enumitem.module in Lyx 2

2012-08-13 Thread Liviu Andronic
On Mon, Aug 13, 2012 at 4:29 AM, Jane Shevtsov jane@gmail.com wrote:
 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

Not sure that it's needed here, but did you Tools  Reconfigure?

Liviu

 I'm running Lyx 2.0.3 on Windows 7. Here's what the relevant part of
 my enumitem.module file now looks like.

 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
 % mandatory second argument (label-pattern):
 \newenvironment{elabeling}[2][]%
 {\settowidth{\lyxlabelwidth}{#2}
 \begin{description}[font=\normalfont,style=sameline,
 leftmargin=\lyxlabelwidth,#1]}
 {\end{description}}
 EndPreamble
 End



 --
 -
 Jane Shevtsov, Ph.D.
 Mathematical Biology Curriculum Writer, UCLA
 co-founder, www.worldbeyondborders.org

 In the long run, education intended to produce a molecular
 geneticist, a systems ecologist, or an immunologist is inferior, both
 for the individual and for society, than that intended to produce a
 broadly educated person who has also written a dissertation. --John
 Janovy, Jr., On Becoming a Biologist



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net
wrote:

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

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
 OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

Is there more than one version of this file on your system? I.e., one in 
the LyX system directory and one in your user directory?


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:
 On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

 On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:
 Find the enumitem.module file, and put
  OptionalArgs 1
 into the appropriate place. You can find it by just looking through the
 file.

 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

 Is there more than one version of this file on your system? I.e., one in the
 LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.

Liviu, reconfiguring didn't help.

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

Find the enumitem.module file, and put
  OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

Richard

#\DeclareLyXModule[enumitem.sty]{enumitem}
#DescriptionBegin
# Controls the layout of enumerate, itemize, description, and list/labeling.
# See section Customized Lists of the User's Guide for a detailed description.
#DescriptionEnd
# Author: Günter Milde mi...@users.berlios.de
# 
# 2008-12-04 first published version.
# 2009-02-02 use name Labeling for LyX-List/Labeling list type,
#copy standard layout verbatim for failsave working with 
#both KOMA and non-KOMA document classes.
# 2011-01-12 bugfix: set elabeling label font to \normalfont.

Format 35

# The package enumitem provides user control over the layout of the three
# basic list environments: enumerate, itemize and description. It supersedes
# both enumerate and mdwlist (providing well-structured replacements for all
# their funtionality), and in addition provides functions to compute the
# layout of labels, and to ‘clone’ the standard environments, to create new
# environments with counters of their own.
#
# - fancy labels and fancy refs,
# - leftmargin, labelsep and labelwidth automatically set,
# - changes applied globally or only in one of the three
#   types or even in a single list (including topsep),
# - several description styles (which fix some bad spacing, too),
# - starting value and counter resuming,
# - trivlists properly formatted,
# - control on page breaking
#
# Styling the basic lists is possible 
#
# a) generally in the LaTeX preamble and 
# b) per environment with optional arguments
#
# See enumitem.pdf_ for details and examples.
#
# TODO: since version 2.0, enumitem supports cloning of lists.
#   Producing a labeling as clone of a description allows
#   Preamble-Styling specific to this list type.

AddToPreamble
\usepackage{enumitem}   % customizable list environments
\newlength{\lyxlabelwidth}  % auxiliary length 
EndPreamble


# Customisable Basic Lists
# 

# With enumitem, the three standard list environments take an optional
# argument. See enumitem.pdf_ for possible values.

IfStyle Itemize
OptionalArgs  1
End

IfStyle Enumerate
OptionalArgs  1
End

IfStyle Description
OptionalArgs  1
End


# Customisable LyX List
# -

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
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End


# List Variants
# -
#
# Styles with pre-defined optional arguments for ease of use

Style Enumerate-Resume
CopyStyle Enumerate
LatexParam[resume]
OptionalArgs  0
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color blue
EndFont
End

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck rgh...@lyx.org wrote:
 On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

 On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:

 On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

 On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

 Find the enumitem.module file, and put
   OptionalArgs 1
 into the appropriate place. You can find it by just looking through the
 file.

 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

 Is there more than one version of this file on your system? I.e., one in
 the
 LyX system directory and one in your user directory?

 There only seems to be one. And I know Lyx is using the file I edited
 because when I renamed it as an experiment and tried to include
 enumitem in a document, I got an error message.

 The attached works for me.

But not for me. Time to reinstall Lyx?

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 01:01 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck rgh...@lyx.org wrote:

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck rgh...@lyx.org wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:

Find the enumitem.module file, and put
   OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in
the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

But not for me. Time to reinstall Lyx?
That's very strange. I guess you could try re-installing, but you might 
first try running from a terminal and seeing if you get some kind of 
error message when you try to use it.


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 1:58 PM, Richard Heck wrote:
 That's very strange. I guess you could try re-installing, but you might
 first try running from a terminal and seeing if you get some kind of error
 message when you try to use it.

How do I use enumitem and Insert Short Title from a terminal? I'm on Windows 7.

Just to make sure I'm not doing anything stupid: the instructions say
to put the cursor after the blue number in the enumerate-resume
environment and choose Insert  Short Title. There's actually a gap
between the number and the cursor, right?

Jane


-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:
Just to make sure I'm not doing anything stupid: the instructions say 
to put the cursor after the blue number in the enumerate-resume 
environment and choose Insert  Short Title. There's actually a gap 
between the number and the cursor, right?


So you are trying to add a short title in the enumerate-resume 
environment? In that case, the patch Guenter had posted doesn't address 
this issue, but rather something to do with Labeling.


If you look at enumitem.module, you'll see that it explicitly sets 
OptionalArgs to 0 for the Enumerate-Resume environment. This is because 
we are in effect forcing the short title to be resume, which we have 
to do to get the numbering to resume. There's no way at present to add 
anything else to the short title.


Where are these instructions you mentioned?

Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Paul A . Rubin
Just as an FYI: you can achieve the same effect as the Enumerate-Resume
environment by using the Enumerate environment and putting resume in the short
title of the first item of the resumed section. (This assumes that you have the
Customisable Lists module installed or have otherwise loaded enumitem.sty.)
You can then add other arguments to the short title.  I discovered this is
necessary because the Enumerate-Resume environment does not inherit any optional
arguments from the previous enumerate environment. If I fiddle with label format
in the initial enumeration, I have to repeat those options in the short title of
the first item of the resumed list.

Paul



Re: enumitem.module in Lyx 2

2012-08-13 Thread Liviu Andronic
On Mon, Aug 13, 2012 at 4:29 AM, Jane Shevtsov  wrote:
> I did that, but it doesn't help. I still can't use Insert Short Title,
> despite restarting Lyx.
>
Not sure that it's needed here, but did you Tools > Reconfigure?

Liviu

> I'm running Lyx 2.0.3 on Windows 7. Here's what the relevant part of
> my enumitem.module file now looks like.
>
> 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
> % mandatory second argument (label-pattern):
> \newenvironment{elabeling}[2][]%
> {\settowidth{\lyxlabelwidth}{#2}
> \begin{description}[font=\normalfont,style=sameline,
> leftmargin=\lyxlabelwidth,#1]}
> {\end{description}}
> EndPreamble
> End
>
>
>
> --
> -
> Jane Shevtsov, Ph.D.
> Mathematical Biology Curriculum Writer, UCLA
> co-founder, www.worldbeyondborders.org
>
> "In the long run, education intended to produce a molecular
> geneticist, a systems ecologist, or an immunologist is inferior, both
> for the individual and for society, than that intended to produce a
> broadly educated person who has also written a dissertation." --John
> Janovy, Jr., "On Becoming a Biologist"



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde 
wrote:

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

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
 OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

Is there more than one version of this file on your system? I.e., one in 
the LyX system directory and one in your user directory?


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck  wrote:
> On 08/12/2012 10:29 PM, Jane Shevtsov wrote:
>>
>> On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:
>>> Find the enumitem.module file, and put
>>>  OptionalArgs 1
>>> into the appropriate place. You can find it by just looking through the
>>> file.
>>
>> I did that, but it doesn't help. I still can't use Insert Short Title,
>> despite restarting Lyx.
>>
> Is there more than one version of this file on your system? I.e., one in the
> LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.

Liviu, reconfiguring didn't help.

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

"In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation." --John
Janovy, Jr., "On Becoming a Biologist"


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck  wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:

Find the enumitem.module file, and put
  OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

Richard

#\DeclareLyXModule[enumitem.sty]{enumitem}
#DescriptionBegin
# Controls the layout of enumerate, itemize, description, and list/labeling.
# See section Customized Lists of the User's Guide for a detailed description.
#DescriptionEnd
# Author: Günter Milde 
# 
# 2008-12-04 first published version.
# 2009-02-02 use name Labeling for "LyX-List/Labeling" list type,
#copy standard layout verbatim for failsave working with 
#both KOMA and non-KOMA document classes.
# 2011-01-12 bugfix: set elabeling label font to \normalfont.

Format 35

# The package enumitem provides user control over the layout of the three
# basic list environments: enumerate, itemize and description. It supersedes
# both enumerate and mdwlist (providing well-structured replacements for all
# their funtionality), and in addition provides functions to compute the
# layout of labels, and to ‘clone’ the standard environments, to create new
# environments with counters of their own.
#
# - fancy labels and fancy refs,
# - leftmargin, labelsep and labelwidth automatically set,
# - changes applied globally or only in one of the three
#   types or even in a single list (including topsep),
# - several description styles (which fix some bad spacing, too),
# - starting value and counter resuming,
# - trivlists properly formatted,
# - control on page breaking
#
# Styling the basic lists is possible 
#
# a) generally in the LaTeX preamble and 
# b) per environment with optional arguments
#
# See enumitem.pdf_ for details and examples.
#
# TODO: since version 2.0, enumitem supports "cloning" of lists.
#   Producing a labeling as clone of a description allows
#   Preamble-Styling specific to this list type.

AddToPreamble
\usepackage{enumitem}   % customizable list environments
\newlength{\lyxlabelwidth}  % auxiliary length 
EndPreamble


# Customisable Basic Lists
# 

# With enumitem, the three standard list environments take an optional
# argument. See enumitem.pdf_ for possible values.

IfStyle Itemize
OptionalArgs  1
End

IfStyle Enumerate
OptionalArgs  1
End

IfStyle Description
OptionalArgs  1
End


# Customisable LyX List
# -

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
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End


# List Variants
# -
#
# Styles with pre-defined optional arguments for ease of use

Style Enumerate-Resume
CopyStyle Enumerate
LatexParam[resume]
OptionalArgs  0
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color blue
EndFont
End

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck  wrote:
> On 08/13/2012 12:23 PM, Jane Shevtsov wrote:
>>
>> On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck  wrote:
>>>
>>> On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

 On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:
>
> Find the enumitem.module file, and put
>   OptionalArgs 1
> into the appropriate place. You can find it by just looking through the
> file.

 I did that, but it doesn't help. I still can't use Insert Short Title,
 despite restarting Lyx.

>>> Is there more than one version of this file on your system? I.e., one in
>>> the
>>> LyX system directory and one in your user directory?
>>
>> There only seems to be one. And I know Lyx is using the file I edited
>> because when I renamed it as an experiment and tried to include
>> enumitem in a document, I got an error message.
>>
> The attached works for me.

But not for me. Time to reinstall Lyx?

Jane

-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

"In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation." --John
Janovy, Jr., "On Becoming a Biologist"


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 01:01 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck  wrote:

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck  wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:

Find the enumitem.module file, and put
   OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in
the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

But not for me. Time to reinstall Lyx?
That's very strange. I guess you could try re-installing, but you might 
first try running from a terminal and seeing if you get some kind of 
error message when you try to use it.


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Jane Shevtsov
On Mon, Aug 13, 2012 at 1:58 PM, Richard Heck wrote:
> That's very strange. I guess you could try re-installing, but you might
> first try running from a terminal and seeing if you get some kind of error
> message when you try to use it.

How do I use enumitem and Insert Short Title from a terminal? I'm on Windows 7.

Just to make sure I'm not doing anything stupid: the instructions say
to put the cursor after the blue number in the enumerate-resume
environment and choose Insert > Short Title. There's actually a gap
between the number and the cursor, right?

Jane


-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

"In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation." --John
Janovy, Jr., "On Becoming a Biologist"


Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:
Just to make sure I'm not doing anything stupid: the instructions say 
to put the cursor after the blue number in the enumerate-resume 
environment and choose Insert > Short Title. There's actually a gap 
between the number and the cursor, right?


So you are trying to add a "short title" in the enumerate-resume 
environment? In that case, the patch Guenter had posted doesn't address 
this issue, but rather something to do with Labeling.


If you look at enumitem.module, you'll see that it explicitly sets 
OptionalArgs to 0 for the Enumerate-Resume environment. This is because 
we are in effect forcing the short title to be "resume", which we have 
to do to get the numbering to resume. There's no way at present to add 
anything else to the short title.


Where are these instructions you mentioned?

Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Paul A . Rubin
Just as an FYI: you can achieve the same effect as the Enumerate-Resume
environment by using the Enumerate environment and putting "resume" in the short
title of the first item of the resumed section. (This assumes that you have the
"Customisable Lists" module installed or have otherwise loaded enumitem.sty.)
You can then add other arguments to the short title.  I discovered this is
necessary because the Enumerate-Resume environment does not inherit any optional
arguments from the previous enumerate environment. If I fiddle with label format
in the initial enumeration, I have to repeat those options in the short title of
the first item of the resumed list.

Paul



Re: enumitem.module in Lyx 2

2012-08-12 Thread Richard Heck

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net wrote:

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

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
OptionalArgs 1
into the appropriate place. You can find it by just looking through the 
file.


Richard



Re: enumitem.module in Lyx 2

2012-08-12 Thread Jane Shevtsov
On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:
 On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

 On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net
 wrote:

 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

 How do I use this fix? Where do I put the code?

 Find the enumitem.module file, and put
 OptionalArgs 1
 into the appropriate place. You can find it by just looking through the
 file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

I'm running Lyx 2.0.3 on Windows 7. Here's what the relevant part of
my enumitem.module file now looks like.

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
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End



-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-12 Thread Richard Heck

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net wrote:

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

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
OptionalArgs 1
into the appropriate place. You can find it by just looking through the 
file.


Richard



Re: enumitem.module in Lyx 2

2012-08-12 Thread Jane Shevtsov
On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck rgh...@lyx.org wrote:
 On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

 On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net
 wrote:

 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

 How do I use this fix? Where do I put the code?

 Find the enumitem.module file, and put
 OptionalArgs 1
 into the appropriate place. You can find it by just looking through the
 file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

I'm running Lyx 2.0.3 on Windows 7. Here's what the relevant part of
my enumitem.module file now looks like.

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
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End



-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-12 Thread Richard Heck

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde  wrote:

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

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
OptionalArgs 1
into the appropriate place. You can find it by just looking through the 
file.


Richard



Re: enumitem.module in Lyx 2

2012-08-12 Thread Jane Shevtsov
On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:
> On 08/11/2012 08:44 PM, Jane Shevtsov wrote:
>>
>> On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde 
>> wrote:
>>>
>>> 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
>>
>> How do I use this fix? Where do I put the code?
>>
> Find the enumitem.module file, and put
> OptionalArgs 1
> into the appropriate place. You can find it by just looking through the
> file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

I'm running Lyx 2.0.3 on Windows 7. Here's what the relevant part of
my enumitem.module file now looks like.

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
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End



-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

"In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation." --John
Janovy, Jr., "On Becoming a Biologist"


Re: enumitem.module in Lyx 2

2012-08-11 Thread Jane Shevtsov
On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net wrote:
 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

How do I use this fix? Where do I put the code?

Thanks,
Jane


-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-11 Thread Jane Shevtsov
On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde mi...@users.sf.net wrote:
 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

How do I use this fix? Where do I put the code?

Thanks,
Jane


-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation. --John
Janovy, Jr., On Becoming a Biologist


Re: enumitem.module in Lyx 2

2012-08-11 Thread Jane Shevtsov
On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde  wrote:
> 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

How do I use this fix? Where do I put the code?

Thanks,
Jane


-- 
-
Jane Shevtsov, Ph.D.
Mathematical Biology Curriculum Writer, UCLA
co-founder, www.worldbeyondborders.org

"In the long run, education intended to produce a molecular
geneticist, a systems ecologist, or an immunologist is inferior, both
for the individual and for society, than that intended to produce a
broadly educated person who has also written a dissertation." --John
Janovy, Jr., "On Becoming a Biologist"


Re: enumitem.module in Lyx 2

2011-12-16 Thread Csikos Bela
Guenter Milde mi...@users.sf.net írta:
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 InsertShort 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 InsertShort 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  


Thank you for the fix.
bcsikos




Re: enumitem.module in Lyx 2

2011-12-16 Thread Csikos Bela
Guenter Milde mi...@users.sf.net írta:
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 InsertShort 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 InsertShort 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  


Thank you for the fix.
bcsikos




Re: enumitem.module in Lyx 2

2011-12-16 Thread Csikos Bela
Guenter Milde  írta:
>On 2011-12-11, Liviu Andronic wrote:>
> On Fri, Dec 9, 2011 at 8:25 PM, Guenter Milde  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  >


Thank you for the fix.
bcsikos




Re: enumitem.module in Lyx 2

2011-12-12 Thread Guenter Milde
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 InsertShort 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 InsertShort 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  



Re: enumitem.module in Lyx 2

2011-12-12 Thread Guenter Milde
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 InsertShort 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 InsertShort 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  



Re: enumitem.module in Lyx 2

2011-12-12 Thread Guenter Milde
On 2011-12-11, Liviu Andronic wrote:
> On Fri, Dec 9, 2011 at 8:25 PM, Guenter Milde  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  



Re: enumitem.module in Lyx 2

2011-12-11 Thread Liviu Andronic
On Fri, Dec 9, 2011 at 8:25 PM, Guenter Milde mi...@users.sf.net wrote:
 My question is why the InsertShort 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 InsertShort 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.

Regards
Liviu


Re: enumitem.module in Lyx 2

2011-12-11 Thread Liviu Andronic
On Fri, Dec 9, 2011 at 8:25 PM, Guenter Milde mi...@users.sf.net wrote:
 My question is why the InsertShort 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 InsertShort 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.

Regards
Liviu


Re: enumitem.module in Lyx 2

2011-12-11 Thread Liviu Andronic
On Fri, Dec 9, 2011 at 8:25 PM, Guenter Milde  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.

Regards
Liviu


enumitem.module in Lyx 2

2011-12-09 Thread Csikos Bela
Hello:

I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
The program works well, however I have a problem with the
Customizable list (enumitem) module. The tooltip for this module
says: Controls the layout of enumerate, itemize, description, and
list/labeling. The Lyx User's Guide in section 3.3.7 says that the
list properties can be changed/modified by inserting keywords using
the menu InsertShort title option. On my system this works with
the enumerate, itemize, and description list types. When the labeling
or enumerate-resume list types are selected the InsertShort title
menu option is greyed out and I can not insert anything.

My question is why the InsertShort 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?

Thanks in advance,

bcsikos





Re: enumitem.module in Lyx 2

2011-12-09 Thread Richard Heck

On 12/09/2011 09:02 AM, Csikos Bela wrote:

Hello:

I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
The program works well, however I have a problem with the
Customizable list (enumitem) module. The tooltip for this module
says: Controls the layout of enumerate, itemize, description, and
list/labeling. The Lyx User's Guide in section 3.3.7 says that the
list properties can be changed/modified by inserting keywords using
the menu InsertShort title option. On my system this works with
the enumerate, itemize, and description list types. When the labeling
or enumerate-resume list types are selected the InsertShort title
menu option is greyed out and I can not insert anything.

My question is why the InsertShort 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. For 
the resume case, this just picks up where your previous enumeration 
left off, and inherits the settings of that list. So it is not supposed 
to be modifiable then.


Richard



Re: enumitem.module in Lyx 2

2011-12-09 Thread Csikos Bela
Richard Heck rgh...@comcast.net írta:
On 12/09/2011 09:02 AM, Csikos Bela wrote:
 Hello:

 I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
 The program works well, however I have a problem with the
 Customizable list (enumitem) module. The tooltip for this module
 says: Controls the layout of enumerate, itemize, description, and
 list/labeling. The Lyx User's Guide in section 3.3.7 says that the
 list properties can be changed/modified by inserting keywords using
 the menu InsertShort title option. On my system this works with
 the enumerate, itemize, and description list types. When the labeling
 or enumerate-resume list types are selected the InsertShort title
 menu option is greyed out and I can not insert anything.

 My question is why the InsertShort 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. For 
the resume case, this just picks up where your previous enumeration
left off, and inherits the settings of that list. So it is not supposed 
to be modifiable then.

Thanks Richard.

I read the enumitem manual, and indeed it says that it is for modifying only
the enumerate, itemize, and description list types.

On the contrary, the enumitem module tooltip clearly indicates that the module,
apart from the above three list types, can be used to modify the labeling 
environment.
The Lyx User's Guide also indicates that, as I have pointed out in my previous 
message.
Apart from this if you look at the source (by turning on ViewView Source) you 
can see
that the 'lyxlist' environment is changed to 'elabeling' environment when the 
module is loaded
(\begin{lyxlist}{00.00.} becomes \begin{elabeling}{00.00.}),
which also indicates that the module is supposed to affect labeling list type.

Finally, the enumitem.module file has comments that indicate the same:

# Customisable LyX List
# -

(I took the above from the enumitem.module file).

If, on the contrary to all of these, the module is not supposed to modify
labeling lists, it should be explained clearly in the User's Guide and the 
module's
tooltip info should be changed accordingly.

Guenter Milde, the author of the enumitem.module file maybe could
clarify this issue.

Thanks again for your response,

bcsikos



Re: enumitem.module in Lyx 2

2011-12-09 Thread Guenter Milde
On 2011-12-09, Richard Heck wrote:
 On 12/09/2011 09:02 AM, Csikos Bela wrote:
 Hello:

 I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
 The program works well, however I have a problem with the
 Customizable list (enumitem) module. The tooltip for this module
 says: Controls the layout of enumerate, itemize, description, and
 list/labeling. The Lyx User's Guide in section 3.3.7 says that the
 list properties can be changed/modified by inserting keywords using
 the menu InsertShort title option. On my system this works with
 the enumerate, itemize, and description list types. When the labeling
 or enumerate-resume list types are selected the InsertShort title
 menu option is greyed out and I can not insert anything.

 My question is why the InsertShort 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 InsertShort Title into a labeling
works, too.

Günter





enumitem.module in Lyx 2

2011-12-09 Thread Csikos Bela
Hello:

I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
The program works well, however I have a problem with the
Customizable list (enumitem) module. The tooltip for this module
says: Controls the layout of enumerate, itemize, description, and
list/labeling. The Lyx User's Guide in section 3.3.7 says that the
list properties can be changed/modified by inserting keywords using
the menu InsertShort title option. On my system this works with
the enumerate, itemize, and description list types. When the labeling
or enumerate-resume list types are selected the InsertShort title
menu option is greyed out and I can not insert anything.

My question is why the InsertShort 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?

Thanks in advance,

bcsikos





Re: enumitem.module in Lyx 2

2011-12-09 Thread Richard Heck

On 12/09/2011 09:02 AM, Csikos Bela wrote:

Hello:

I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
The program works well, however I have a problem with the
Customizable list (enumitem) module. The tooltip for this module
says: Controls the layout of enumerate, itemize, description, and
list/labeling. The Lyx User's Guide in section 3.3.7 says that the
list properties can be changed/modified by inserting keywords using
the menu InsertShort title option. On my system this works with
the enumerate, itemize, and description list types. When the labeling
or enumerate-resume list types are selected the InsertShort title
menu option is greyed out and I can not insert anything.

My question is why the InsertShort 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. For 
the resume case, this just picks up where your previous enumeration 
left off, and inherits the settings of that list. So it is not supposed 
to be modifiable then.


Richard



Re: enumitem.module in Lyx 2

2011-12-09 Thread Csikos Bela
Richard Heck rgh...@comcast.net írta:
On 12/09/2011 09:02 AM, Csikos Bela wrote:
 Hello:

 I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
 The program works well, however I have a problem with the
 Customizable list (enumitem) module. The tooltip for this module
 says: Controls the layout of enumerate, itemize, description, and
 list/labeling. The Lyx User's Guide in section 3.3.7 says that the
 list properties can be changed/modified by inserting keywords using
 the menu InsertShort title option. On my system this works with
 the enumerate, itemize, and description list types. When the labeling
 or enumerate-resume list types are selected the InsertShort title
 menu option is greyed out and I can not insert anything.

 My question is why the InsertShort 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. For 
the resume case, this just picks up where your previous enumeration
left off, and inherits the settings of that list. So it is not supposed 
to be modifiable then.

Thanks Richard.

I read the enumitem manual, and indeed it says that it is for modifying only
the enumerate, itemize, and description list types.

On the contrary, the enumitem module tooltip clearly indicates that the module,
apart from the above three list types, can be used to modify the labeling 
environment.
The Lyx User's Guide also indicates that, as I have pointed out in my previous 
message.
Apart from this if you look at the source (by turning on ViewView Source) you 
can see
that the 'lyxlist' environment is changed to 'elabeling' environment when the 
module is loaded
(\begin{lyxlist}{00.00.} becomes \begin{elabeling}{00.00.}),
which also indicates that the module is supposed to affect labeling list type.

Finally, the enumitem.module file has comments that indicate the same:

# Customisable LyX List
# -

(I took the above from the enumitem.module file).

If, on the contrary to all of these, the module is not supposed to modify
labeling lists, it should be explained clearly in the User's Guide and the 
module's
tooltip info should be changed accordingly.

Guenter Milde, the author of the enumitem.module file maybe could
clarify this issue.

Thanks again for your response,

bcsikos



Re: enumitem.module in Lyx 2

2011-12-09 Thread Guenter Milde
On 2011-12-09, Richard Heck wrote:
 On 12/09/2011 09:02 AM, Csikos Bela wrote:
 Hello:

 I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
 The program works well, however I have a problem with the
 Customizable list (enumitem) module. The tooltip for this module
 says: Controls the layout of enumerate, itemize, description, and
 list/labeling. The Lyx User's Guide in section 3.3.7 says that the
 list properties can be changed/modified by inserting keywords using
 the menu InsertShort title option. On my system this works with
 the enumerate, itemize, and description list types. When the labeling
 or enumerate-resume list types are selected the InsertShort title
 menu option is greyed out and I can not insert anything.

 My question is why the InsertShort 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 InsertShort Title into a labeling
works, too.

Günter





enumitem.module in Lyx 2

2011-12-09 Thread Csikos Bela
Hello:

I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
The program works well, however I have a problem with the
"Customizable list (enumitem)" module. The tooltip for this module
says: "Controls the layout of enumerate, itemize, description, and
list/labeling." The Lyx User's Guide in section 3.3.7 says that the
list properties can be changed/modified by inserting keywords using
the menu Insert>Short title option. On my system this works with
the enumerate, itemize, and description list types. When the labeling
or enumerate-resume list types are selected the Insert>Short title
menu option is greyed out and I can not insert anything.

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?

Thanks in advance,

bcsikos





Re: enumitem.module in Lyx 2

2011-12-09 Thread Richard Heck

On 12/09/2011 09:02 AM, Csikos Bela wrote:

Hello:

I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
The program works well, however I have a problem with the
"Customizable list (enumitem)" module. The tooltip for this module
says: "Controls the layout of enumerate, itemize, description, and
list/labeling." The Lyx User's Guide in section 3.3.7 says that the
list properties can be changed/modified by inserting keywords using
the menu Insert>Short title option. On my system this works with
the enumerate, itemize, and description list types. When the labeling
or enumerate-resume list types are selected the Insert>Short title
menu option is greyed out and I can not insert anything.

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. For 
the "resume" case, this just picks up where your previous enumeration 
left off, and inherits the settings of that list. So it is not supposed 
to be modifiable then.


Richard



Re: enumitem.module in Lyx 2

2011-12-09 Thread Csikos Bela
Richard Heck  írta:
>>On 12/09/2011 09:02 AM, Csikos Bela wrote:>
>> Hello:
>>
>> I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
>> The program works well, however I have a problem with the
>> "Customizable list (enumitem)" module. The tooltip for this module
>> says: "Controls the layout of enumerate, itemize, description, and
>> list/labeling." The Lyx User's Guide in section 3.3.7 says that the
>> list properties can be changed/modified by inserting keywords using
>> the menu Insert>Short title option. On my system this works with
>> the enumerate, itemize, and description list types. When the labeling
>> or enumerate-resume list types are selected the Insert>Short title
>> menu option is greyed out and I can not insert anything.
>>
>> 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. For 
>the "resume" case, this just picks up where your previous enumeration
>left off, and inherits the settings of that list. So it is not supposed >
>to be modifiable then.

Thanks Richard.

I read the enumitem manual, and indeed it says that it is for modifying only
the enumerate, itemize, and description list types.

On the contrary, the enumitem module tooltip clearly indicates that the module,
apart from the above three list types, can be used to modify the labeling 
environment.
The Lyx User's Guide also indicates that, as I have pointed out in my previous 
message.
Apart from this if you look at the source (by turning on View>View Source) you 
can see
that the 'lyxlist' environment is changed to 'elabeling' environment when the 
module is loaded
(\begin{lyxlist}{00.00.} becomes \begin{elabeling}{00.00.}),
which also indicates that the module is supposed to affect labeling list type.

Finally, the enumitem.module file has comments that indicate the same:

# Customisable LyX List
# -

(I took the above from the enumitem.module file).

If, on the contrary to all of these, the module is not supposed to modify
labeling lists, it should be explained clearly in the User's Guide and the 
module's
tooltip info should be changed accordingly.

Guenter Milde, the author of the enumitem.module file maybe could
clarify this issue.

Thanks again for your response,

bcsikos



Re: enumitem.module in Lyx 2

2011-12-09 Thread Guenter Milde
On 2011-12-09, Richard Heck wrote:
> On 12/09/2011 09:02 AM, Csikos Bela wrote:
>> Hello:

>> I have Lyx 2.0.2 compiled from source package in  openSUSE 11.2.
>> The program works well, however I have a problem with the
>> "Customizable list (enumitem)" module. The tooltip for this module
>> says: "Controls the layout of enumerate, itemize, description, and
>> list/labeling." The Lyx User's Guide in section 3.3.7 says that the
>> list properties can be changed/modified by inserting keywords using
>> the menu Insert>Short title option. On my system this works with
>> the enumerate, itemize, and description list types. When the labeling
>> or enumerate-resume list types are selected the Insert>Short title
>> menu option is greyed out and I can not insert anything.

>> 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.

Günter