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