Bo Peng wrote:
> Dear list,
>
> With beamer class, under 1.4.x and 1.5svn, the enumerate environment
> does not show numbers before the items. Itemize environment works
> fine.
>
> What should I add to beamer.layout?
Nothing. Try the attached patch.
Jean-Marc, is it correct?
Georg
Index: lib/scripts/layout2layout.py
===================================================================
--- lib/scripts/layout2layout.py (Revision 13657)
+++ lib/scripts/layout2layout.py (Arbeitskopie)
@@ -233,6 +233,26 @@ def convert(lines):
else:
lines[latextype_line] = re_LatexType.sub(r'\1\2\3Bib_Environment', lines[latextype_line])
+ # Add a line "LabelType Itemize" if style is itemize
+ # (or change the existing LabelType)
+ if style == "itemize":
+ if (labeltype_line < 0):
+ lines.insert(i, "%sLabelType Itemize" % space1)
+ i = i + 1
+ else:
+ lines[labeltype_line] = re_LabelType.sub(r'\1\2\3Itemize', lines[labeltype_line])
+
+ # Add a line "LabelType Enumerate" if style is enumerate
+ # (or change the existing LabelType)
+ if style == "enumerate":
+ if (labeltype_line < 0):
+ lines.insert(i, "%sLabelType Enumerate" % space1)
+ i = i + 1
+ else:
+ lines[labeltype_line] = re_LabelType.sub(r'\1\2\3Enumerate', lines[labeltype_line])
+ # Don't add the LabelCounter line later
+ counter = ""
+
# Replace
#
# LabelString "Chapter"