label and counter in custom layout

2008-08-23 Thread Florin Oprina
Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command

Re: label and counter in custom layout

2008-08-23 Thread rgheck
Florin Oprina wrote: Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style

Re: label and counter in custom layout

2008-08-23 Thread Florin Oprina
On Sun, Aug 24, 2008 at 6:01 AM, rgheck [EMAIL PROTECTED] wrote: You might need a LabelString command, like: LabelString \arabic{Mycounter} This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Yes! That did the trick!

label and counter in custom layout

2008-08-23 Thread Florin Oprina
Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command

Re: label and counter in custom layout

2008-08-23 Thread rgheck
Florin Oprina wrote: Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style

Re: label and counter in custom layout

2008-08-23 Thread Florin Oprina
On Sun, Aug 24, 2008 at 6:01 AM, rgheck [EMAIL PROTECTED] wrote: You might need a LabelString command, like: LabelString \arabic{Mycounter} This tells LyX what to print as the label, whereas the LabelCounter, I think, tells LyX which counter to increment. rh Yes! That did the trick!

label and counter in custom layout

2008-08-23 Thread Florin Oprina
Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style LatexType Command

Re: label and counter in custom layout

2008-08-23 Thread rgheck
Florin Oprina wrote: Hi all. I'm trying to create a custom layout. What I want is a style to display a counter at the beginning of the paragraph, automatically incremented. In LyX 1.5.3, I followed the customisation guide and ended up with: Counter Name Mycounter End Style My_Style

Re: label and counter in custom layout

2008-08-23 Thread Florin Oprina
On Sun, Aug 24, 2008 at 6:01 AM, rgheck <[EMAIL PROTECTED]> wrote: > > You might need a LabelString command, like: > LabelString "\arabic{Mycounter}" > This tells LyX what to print as the label, whereas the LabelCounter, I > think, tells LyX which counter to increment. > > rh > >> >> > > Yes!