Thanks, but "LabelType Static" didn't work either. Nevertheless,
"LabelType Counter" works, but now, it looks like the counter is not
reset for each list. I have now

LabelType Counter
LabelCounter enumi
LabelString "(\roman{enumi})"

I also tried with my own counter and get the same result:

abc
(i) abc
(ii) abc
abc
(iii) abc
(iv) abc
abc

instead of the intended

abc
(i) abc
(ii) abc
abc
(i) abc
(ii) abc
abc

However the problem is only within the LyX interface. The generated
document is OK.

How could I make the counter reset with each new list?

Thanks.


On Nov 7, 2007 7:09 PM, Richard Heck <[EMAIL PROTECTED]> wrote:
> Ernesto Posse wrote:
> > Hi. I have written a new layout style for writing enumerated lists
> > using roman numerals. However I have a problem. While the generated
> > document, correctly renders the roman numerals, they do not appear in
> > the LyX interface. The layout code is below. I thought the problem
> > would be with the LabelString field, but I have tried different
> > alternatives such as "MM", "00", etc, and nothing seems to work.
> >
> I think the problem is with the LabelType field. I think it should be
> Static.
>
> rh
>
> > Does anyone have an idea of what could be the problem? Or whether
> > there is some other layout for producing roman enumerated lists?
> >
> > Thanks.
> >
> > PS: I'm using LyX 1.5.2 on Vista.
> >
> >
> > Style RomanEnumerate
> >       Margin                  Static
> >       LatexType               Item_Environment
> >       LatexName               romanumerate
> >       NextNoIndent    1
> >       LeftMargin              MMN
> >       LabelSep                xx
> >       ParSkip                 0.0
> >       ItemSep                 0.2
> >       TopSep                  0.7
> >       BottomSep               0.7
> >       ParSep                  0.3
> >       Align                   Block
> >       AlignPossible   Block, Left
> >       LabelType               Counter_EnumI
> >       LabelCounter    enumi
> >       LabelString     "(\roman{enumi})"
> >       LabelFont
> >         Shape         Italic
> >         Size                  Normal
> >         Shape                 Up
> >       EndFont
> >       Preamble
> >
> > \newcommand{\romnum}{\renewcommand{\labelenumi}{(\roman{enumi})}}
> >               \newenvironment{romanumerate}
> >                 {\begin{enumerate}
> >                        \romnum}
> >                 {\end{enumerate}}
> >       EndPreamble
> > End
> >
> >
> >
> >
>
>
> --
> ==================================================================
> Richard G Heck, Jr
> Professor of Philosophy
> Brown University
> http://frege.brown.edu/heck/
> ==================================================================
> Get my public key from http://sks.keyserver.penguin.de
> Hash: 0x1DE91F1E66FFBDEC
> Learn how to sign your email using Thunderbird and GnuPG at:
> http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
>
>



-- 
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse

Reply via email to