On May 5, 2009, at 10:26 PM, Steve Litt wrote:

On Tuesday 05 May 2009 11:07:13 pm James C. Sutherland wrote:
On May 5, 2009, at 6:06 PM, James C. Sutherland wrote:
LyX Module Gurus:

I am trying to create a modified List environment where is counter
is not reset each time the environment begins.  I have created a
module (attached) that does part of this for me - it creates a new
"TaskList" environment in LyX. However, I cannot seem to get the
counter to keep incrementing - it resets with each instantiation of
the environment.

This may be a LaTeX question, since I cannot get it working properly
in LaTeX either.  I just hope someone out there can shed some light
on this...

I have managed to find a solution to this (see attached), although I
could really benefit from knowing how modules work in more depth. The
user manual (Customization Ch. 5) is very terse on this topic!

I'm almost positive both of you should have used "LatexType Item_Environment"
in the LyX part of your definitions.

Actually it works fine without it.  I tried two things:
        LatexType   List_Environment
        LatexType   Item_Environment
The "List" option worked better for me since the "Item" one just gives a bullet in LyX whereas the List option allows you more control over what LyX shows for the enumeration. However, this is all pretty cloudy to me - there is a sore lack of documentation on this really nice feature in LyX.

Reply via email to