Am Freitag 18 Oktober 2013, 16:26:53 schrieb Jürgen Spitzmüller:
> Beamer and enumitem are incompatible. You can resume manually or with some
> LaTeX trickery, see e.g.
> http://tex.stackexchange.com/questions/55000/continuing-enumerate-counters-i
> n-beamer
The attached module implements an "Enumerate-Resume" style for beamer. This
works with LyX 2.0 and 2.1, with beamer and beamerarticle and both with
default overlay settings and "mini templates" (although you need to re-
specifiy this for each "resumed" list).
Jürgen
#\DeclareLyXModule{Beamer Resumable Enumerate}
#DescriptionBegin
# Adds a layout 'Enumerate-Resume' to beamer that lets you continue an
enumerated list.
# This only works in the beamer and beamer-article classes.
#DescriptionEnd
# Author: Jürgen Spitzmüller <sp...@lyx.org>
Format 35
Style Enumerate-Resume
CopyStyle Enumerate
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LaTeXName resenumerate
LabelFont
Color blue
EndFont
Preamble
% Resumable enumeration
\newif\ifenumresume\enumresumefalse
\newcounter{saveenumi}
\only<presentation>{\resetcounteronoverlays{saveenumi}}
\usepackage{etoolbox}
\AtEndEnvironment{enumerate}{\setcounter{saveenumi}{\value{enumi}}}
\let\resenumerate\enumerate
\let\endresenumerate\endenumerate
\AtBeginEnvironment{resenumerate}{\enumresumetrue}
\AtEndEnvironment{resenumerate}{\enumresumefalse}
\apptocmd{\beamer@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{}
\AtBeginDocument{%
\only<article>{%
\makeatletter
\apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{}
\makeatother
}
}
EndPreamble
End