Am Montag 21 Oktober 2013, 10:18:06 schrieb Jürgen Spitzmüller: > Yes, that's what I meant when I said that I have not dealt yet with nested > enumerations. Nested enumerations disturbed the resume counter. > > Try the attached module and example.
Attached now. 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} \newcommand*\saveenumvalue{\ifnum\@listdepth<2\setcounter{saveenumi}{\value{enumi}}\fi} \newcommand*\restoreenumvalue{\ifnum\@listdepth<2\setcounter{enumi}{\value{saveenumi}}\fi} \only<presentation>{\resetcounteronoverlays{saveenumi}} \usepackage{etoolbox} \AtEndEnvironment{enumerate}{\saveenumvalue} \let\resenumerate\enumerate \let\endresenumerate\endenumerate \AtBeginEnvironment{resenumerate}{\enumresumetrue} \AtEndEnvironment{resenumerate}{\enumresumefalse\saveenumvalue} \apptocmd{\beamer@enum@}{\ifenumresume\restoreenumvalue\fi}{}{} \AtBeginDocument{% \only<article>{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\restoreenumvalue\fi}{}{} \makeatother } } EndPreamble End
beamer-resenumerate-example.lyx
Description: application/lyx