Re: error in lyx with powerdot and enumitem resume
Am Sonntag 20 Oktober 2013, 23:18:52 schrieb Csikos Bela: OK. I set all items to Enumerate-Resume. Even then it works only if I have one level. If an item has subitems it does not work. 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.
Re: error in lyx with powerdot and enumitem resume
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\@listdepth2\setcounter{saveenumi}{\value{enumi}}\fi} \newcommand*\restoreenumvalue{\ifnum\@listdepth2\setcounter{enumi}{\value{saveenumi}}\fi} \onlypresentation{\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{% \onlyarticle{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\restoreenumvalue\fi}{}{} \makeatother } } EndPreamble End beamer-resenumerate-example.lyx Description: application/lyx
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: 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. Thanks It works. But I don't know how I supposed to use it. 1. To set enumerate-resume only to parent levels where I need resuming. In this case to set the nested sublevels to normal enumerate. 2. To set everything, including the nested sublevels, to enumerate-resume. I tried both and both worked. Still I am curious if I can change in the local layout the end of an environment; e.g to change \end{enumerate} to \end{enumerate} \seti. Is is possible? Thank you for your work. bcsikos
Re: error in lyx with powerdot and enumitem resume
Csikos Bela wrote: It works. But I don't know how I supposed to use it. [...] 2. To set everything, including the nested sublevels, to enumerate-resume. Like this. Still I am curious if I can change in the local layout the end of an environment; e.g to change \end{enumerate} to \end{enumerate} \seti. Is is possible? Should be \seti\end{enumerate}, shouldn't it?. Not with LyX's means. You need to use, as I have done, the package etoolbox, which provides the hook \AtEndEnvironment. But note that you will run into the same problems with nested lists with your approach. Jürgen
Re: error in lyx with powerdot and enumitem resume
Am Sonntag 20 Oktober 2013, 23:18:52 schrieb Csikos Bela: OK. I set all items to Enumerate-Resume. Even then it works only if I have one level. If an item has subitems it does not work. 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.
Re: error in lyx with powerdot and enumitem resume
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\@listdepth2\setcounter{saveenumi}{\value{enumi}}\fi} \newcommand*\restoreenumvalue{\ifnum\@listdepth2\setcounter{enumi}{\value{saveenumi}}\fi} \onlypresentation{\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{% \onlyarticle{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\restoreenumvalue\fi}{}{} \makeatother } } EndPreamble End beamer-resenumerate-example.lyx Description: application/lyx
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: 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. Thanks It works. But I don't know how I supposed to use it. 1. To set enumerate-resume only to parent levels where I need resuming. In this case to set the nested sublevels to normal enumerate. 2. To set everything, including the nested sublevels, to enumerate-resume. I tried both and both worked. Still I am curious if I can change in the local layout the end of an environment; e.g to change \end{enumerate} to \end{enumerate} \seti. Is is possible? Thank you for your work. bcsikos
Re: error in lyx with powerdot and enumitem resume
Csikos Bela wrote: It works. But I don't know how I supposed to use it. [...] 2. To set everything, including the nested sublevels, to enumerate-resume. Like this. Still I am curious if I can change in the local layout the end of an environment; e.g to change \end{enumerate} to \end{enumerate} \seti. Is is possible? Should be \seti\end{enumerate}, shouldn't it?. Not with LyX's means. You need to use, as I have done, the package etoolbox, which provides the hook \AtEndEnvironment. But note that you will run into the same problems with nested lists with your approach. Jürgen
Re: error in lyx with powerdot and enumitem resume
Am Sonntag 20 Oktober 2013, 23:18:52 schrieb Csikos Bela: > OK. I set all items to Enumerate-Resume. Even then it works only > > if I have one level. If an item has subitems it does not work. 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.
Re: error in lyx with powerdot and enumitem resume
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üllerFormat 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{\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{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\restoreenumvalue\fi}{}{} \makeatother } } EndPreamble End beamer-resenumerate-example.lyx Description: application/lyx
Re: error in lyx with powerdot and enumitem resume
"Jürgen Spitzmüller"írta: >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. > Thanks It works. But I don't know how I supposed to use it. 1. To set enumerate-resume only to parent levels where I need resuming. In this case to set the nested sublevels to normal enumerate. 2. To set everything, including the nested sublevels, to enumerate-resume. I tried both and both worked. Still I am curious if I can change in the local layout the end of an environment; e.g to change "\end{enumerate}" to "\end{enumerate} \seti". Is is possible? Thank you for your work. bcsikos
Re: error in lyx with powerdot and enumitem resume
Csikos Bela wrote: > It works. > > But I don't know how I supposed to use it. [...] > 2. To set everything, including the nested sublevels, to enumerate-resume. Like this. > Still I am curious if I can change in the local layout the end of > > an environment; e.g to change "\end{enumerate}" to > > "\end{enumerate} \seti". Is is possible? Should be " \seti\end{enumerate}", shouldn't it?. Not with LyX's means. You need to use, as I have done, the package etoolbox, which provides the hook \AtEndEnvironment. But note that you will run into the same problems with nested lists with your approach. Jürgen
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Freitag 18 Oktober 2013, 16:15:09 schrieb Csikos Bela: 1. The code inserted as local layout does override/replace the code specified in enumitem module? Yes. 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. 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-in-beamer Jürgen, thanks again. I looked at the stackexchange link. I copied the necessary code into my preamble. But I don't know where to insert commands \seti and \conti. Especially \conti is problematic as I don't know how I can insert it between \begin{enumerate} and the first \item commands. I made a beamer minimal example file which I attach here. I have two levels enumerated lists, practically one first level in each frame. Could you please show me on my example file how and where to insert those commands exactly? Thanks, bcsikos beamer-enumerate-continue-example.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
Csikos Bela wrote: I looked at the stackexchange link. I copied the necessary code into my preamble. But I don't know where to insert commands \seti and \conti. There's no need to insert the stackexchange code (in fact, this is not possible with LyX, as you noticed yourself). Instead, use the module I posted: http://marc.info/?l=lyx-usersm=138218324718365w=2 If you use the new style Enumerate-Resume provided by the module, the necessary code will be inserted automatically. If you need to know how to install and use a module, look here: http://wiki.lyx.org/Layouts/Modules Jürgen
Re: error in lyx with powerdot and enumitem resume
Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case. Please look at the attached beamer-resenumerate.lyx and beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style Enumerate-Resume for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. (And the level 2 labels are not correct either. For now this is not a problem as I will change them and they will not indicate which first level they belong to.) I have not dealt yet with nested enumerations. This obviously needs more work. I will have a look at this. Jürgen
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case
Re: error in lyx with powerdot and enumitem resume
For some reason my last answer arrived truncated to the list, therefore I I send it again: Jürgen Spitzmüller sp...@lyx.org írta: Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case. Please look at the attached beamer-resenumerate.lyx and beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style Enumerate-Resume for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. OK. I set all items to Enumerate-Resume. Even then it works only if I have one level. If an item has subitems it does not work. (And the level 2 labels are not correct either. For now this is not a problem as I will change them and they will not indicate which first level they belong to.) I have not dealt yet with nested enumerations. This obviously needs more work. I will have a look at this. What I want to achieve is making tests. The questions are numbered and each slide has one question. The answers below the questions are labeled by capital letters from A to D or E. I want to be able to rearrange the order of questions without changing the numbers manually. I also want to copy questions between documents. As a next step I also would like to highlight the correct answers, inlcuding the labels (if it is possible at all). I just described this because there might be other methods to make such documents than I tried to do so far. Thanks, bcsikos
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case. Please look at the attached beamer-resenumerate.lyx and beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style Enumerate-Resume for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. I thought I could use a local layout and where I modify the \begin{enumerate} and \end{enumerate} commands. For example: Style Beamer-Enumerate-Resume CopyStyle Enumerate LatexParam\conti OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End This adds \begin{enumerate} \conti at the beginning of the environment when Beamer-Enumerate-Resume is set. But I don't know how I could modify the end of the environment: to change \end{enumerate} to \end{enumerate} \seti. Is it possible? I attach an example file which includes the above local layout. I inserted \seti commands in ERT, and it work, but I would like them to be inserted by the style. Thanks, bcsikos beamer-Enumerate-Resume.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Freitag 18 Oktober 2013, 16:15:09 schrieb Csikos Bela: 1. The code inserted as local layout does override/replace the code specified in enumitem module? Yes. 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. 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-in-beamer Jürgen, thanks again. I looked at the stackexchange link. I copied the necessary code into my preamble. But I don't know where to insert commands \seti and \conti. Especially \conti is problematic as I don't know how I can insert it between \begin{enumerate} and the first \item commands. I made a beamer minimal example file which I attach here. I have two levels enumerated lists, practically one first level in each frame. Could you please show me on my example file how and where to insert those commands exactly? Thanks, bcsikos beamer-enumerate-continue-example.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
Csikos Bela wrote: I looked at the stackexchange link. I copied the necessary code into my preamble. But I don't know where to insert commands \seti and \conti. There's no need to insert the stackexchange code (in fact, this is not possible with LyX, as you noticed yourself). Instead, use the module I posted: http://marc.info/?l=lyx-usersm=138218324718365w=2 If you use the new style Enumerate-Resume provided by the module, the necessary code will be inserted automatically. If you need to know how to install and use a module, look here: http://wiki.lyx.org/Layouts/Modules Jürgen
Re: error in lyx with powerdot and enumitem resume
Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case. Please look at the attached beamer-resenumerate.lyx and beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style Enumerate-Resume for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. (And the level 2 labels are not correct either. For now this is not a problem as I will change them and they will not indicate which first level they belong to.) I have not dealt yet with nested enumerations. This obviously needs more work. I will have a look at this. Jürgen
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case
Re: error in lyx with powerdot and enumitem resume
For some reason my last answer arrived truncated to the list, therefore I I send it again: Jürgen Spitzmüller sp...@lyx.org írta: Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case. Please look at the attached beamer-resenumerate.lyx and beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style Enumerate-Resume for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. OK. I set all items to Enumerate-Resume. Even then it works only if I have one level. If an item has subitems it does not work. (And the level 2 labels are not correct either. For now this is not a problem as I will change them and they will not indicate which first level they belong to.) I have not dealt yet with nested enumerations. This obviously needs more work. I will have a look at this. What I want to achieve is making tests. The questions are numbered and each slide has one question. The answers below the questions are labeled by capital letters from A to D or E. I want to be able to rearrange the order of questions without changing the numbers manually. I also want to copy questions between documents. As a next step I also would like to highlight the correct answers, inlcuding the labels (if it is possible at all). I just described this because there might be other methods to make such documents than I tried to do so far. Thanks, bcsikos
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: If I use Enumerate-Resume style it works only if the previous item is set to Enumerate (not Enumerate-Resume). That is it dos not work in my case. Please look at the attached beamer-resenumerate.lyx and beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style Enumerate-Resume for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. I thought I could use a local layout and where I modify the \begin{enumerate} and \end{enumerate} commands. For example: Style Beamer-Enumerate-Resume CopyStyle Enumerate LatexParam\conti OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End This adds \begin{enumerate} \conti at the beginning of the environment when Beamer-Enumerate-Resume is set. But I don't know how I could modify the end of the environment: to change \end{enumerate} to \end{enumerate} \seti. Is it possible? I attach an example file which includes the above local layout. I inserted \seti commands in ERT, and it work, but I would like them to be inserted by the style. Thanks, bcsikos beamer-Enumerate-Resume.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
"Jürgen Spitzmüller"írta: >Am Freitag 18 Oktober 2013, 16:15:09 schrieb Csikos Bela: >> 1. The code inserted as local layout does override/replace the code >> specified in enumitem module? > >Yes. > >> 2. Loosely related. I tried powerdot because enumitem does not work with >> beamer. And beamer even starts numbering enumerate list from 1 in every new >> frame/slide. If I could resume enumeration in beamer I would prefer to use >> beamer. > >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-in-beamer Jürgen, thanks again. I looked at the stackexchange link. I copied the necessary code into my preamble. But I don't know where to insert commands \seti and \conti. Especially \conti is problematic as I don't know how I can insert it between "\begin{enumerate}" and the first "\item" commands. I made a beamer minimal example file which I attach here. I have two levels enumerated lists, practically one first level in each frame. Could you please show me on my example file how and where to insert those commands exactly? Thanks, bcsikos beamer-enumerate-continue-example.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
Csikos Bela wrote: > I looked at the stackexchange link. I copied the necessary code into my > preamble. > > But I don't know where to insert commands \seti and \conti. There's no need to insert the stackexchange code (in fact, this is not possible with LyX, as you noticed yourself). Instead, use the module I posted: http://marc.info/?l=lyx-users=138218324718365=2 If you use the new style "Enumerate-Resume" provided by the module, the necessary code will be inserted automatically. If you need to know how to install and use a "module", look here: http://wiki.lyx.org/Layouts/Modules Jürgen
Re: error in lyx with powerdot and enumitem resume
Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: > If I use Enumerate-Resume style it works only if the previous item is set > > to Enumerate (not Enumerate-Resume). That is it dos not work in my case. > > Please look at the attached beamer-resenumerate.lyx and > > beamer-resenumerate2.lyx files and their pdf outputs. Well, in the first example, you use the style incorrectly: You have to use the style "Enumerate-Resume" for _the whole list_ which should start with a resumed number. In other words: Never mix normal Enumerate and Enumerate_Resume in a single list. > (And the level 2 labels are not correct either. For now this is not a > problem as > > I will change them and they will not indicate which first level they belong > to.) I have not dealt yet with nested enumerations. This obviously needs more work. I will have a look at this. Jürgen
Re: error in lyx with powerdot and enumitem resume
"Jürgen Spitzmüller"írta: >Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: >> If I use Enumerate-Resume style it works only if the previous item is set >> >> to Enumerate (not Enumerate-Resume). That is it dos not work in my case
Re: error in lyx with powerdot and enumitem resume
For some reason my last answer arrived truncated to the list, therefore I I send it again: "Jürgen Spitzmüller"írta: >Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: >> If I use Enumerate-Resume style it works only if the previous item is set >> >> to Enumerate (not Enumerate-Resume). That is it dos not work in my case. >> >> Please look at the attached beamer-resenumerate.lyx and >> >> beamer-resenumerate2.lyx files and their pdf outputs. > >Well, in the first example, you use the style incorrectly: You have to use the >style "Enumerate-Resume" for _the whole list_ which should start with a >resumed number. In other words: Never mix normal Enumerate and >Enumerate_Resume in a single list. OK. I set all items to Enumerate-Resume. Even then it works only if I have one level. If an item has subitems it does not work. > >> (And the level 2 labels are not correct either. For now this is not a >> problem as >> >> I will change them and they will not indicate which first level they belong >> to.) > >I have not dealt yet with nested enumerations. This obviously needs more work. >I will have a look at this. What I want to achieve is making tests. The questions are numbered and each slide has one question. The answers below the questions are labeled by capital letters from A to D or E. I want to be able to rearrange the order of questions without changing the numbers manually. I also want to copy questions between documents. As a next step I also would like to highlight the correct answers, inlcuding the labels (if it is possible at all). I just described this because there might be other methods to make such documents than I tried to do so far. Thanks, bcsikos
Re: error in lyx with powerdot and enumitem resume
"Jürgen Spitzmüller"írta: >Am Sonntag 20 Oktober 2013, 18:03:47 schrieb Csikos Bela: >> If I use Enumerate-Resume style it works only if the previous item is set >> >> to Enumerate (not Enumerate-Resume). That is it dos not work in my case. >> >> Please look at the attached beamer-resenumerate.lyx and >> >> beamer-resenumerate2.lyx files and their pdf outputs. > >Well, in the first example, you use the style incorrectly: You have to use the >style "Enumerate-Resume" for _the whole list_ which should start with a >resumed number. In other words: Never mix normal Enumerate and >Enumerate_Resume in a single list. I thought I could use a local layout and where I modify the \begin{enumerate} and \end{enumerate} commands. For example: Style Beamer-Enumerate-Resume CopyStyle Enumerate LatexParam\conti OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End This adds \begin{enumerate} \conti at the beginning of the environment when Beamer-Enumerate-Resume is set. But I don't know how I could modify the end of the environment: to change "\end{enumerate}" to "\end{enumerate} \seti". Is it possible? I attach an example file which includes the above local layout. I inserted "\seti" commands in ERT, and it work, but I would like them to be inserted by the style. Thanks, bcsikos beamer-Enumerate-Resume.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
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} \onlypresentation{\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{% \onlyarticle{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \makeatother } } EndPreamble End
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller wrote: 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). This one also works with multiple consequent Enumerate-Resumes. 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} \onlypresentation{\resetcounteronoverlays{saveenumi}} \usepackage{etoolbox} \AtEndEnvironment{enumerate}{\setcounter{saveenumi}{\value{enumi}}} \let\resenumerate\enumerate \let\endresenumerate\endenumerate \AtBeginEnvironment{resenumerate}{\enumresumetrue} \AtEndEnvironment{resenumerate}{\enumresumefalse\setcounter{saveenumi}{\value{enumi}}} \apptocmd{\beamer@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \AtBeginDocument{% \onlyarticle{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \makeatother } } EndPreamble End
Re: error in lyx with powerdot and enumitem resume
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} \onlypresentation{\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{% \onlyarticle{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \makeatother } } EndPreamble End
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller wrote: 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). This one also works with multiple consequent Enumerate-Resumes. 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} \onlypresentation{\resetcounteronoverlays{saveenumi}} \usepackage{etoolbox} \AtEndEnvironment{enumerate}{\setcounter{saveenumi}{\value{enumi}}} \let\resenumerate\enumerate \let\endresenumerate\endenumerate \AtBeginEnvironment{resenumerate}{\enumresumetrue} \AtEndEnvironment{resenumerate}{\enumresumefalse\setcounter{saveenumi}{\value{enumi}}} \apptocmd{\beamer@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \AtBeginDocument{% \onlyarticle{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \makeatother } } EndPreamble End
Re: error in lyx with powerdot and enumitem resume
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üllerFormat 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{\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{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \makeatother } } EndPreamble End
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller wrote: > 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). This one also works with multiple consequent Enumerate-Resumes. 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üllerFormat 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{\resetcounteronoverlays{saveenumi}} \usepackage{etoolbox} \AtEndEnvironment{enumerate}{\setcounter{saveenumi}{\value{enumi}}} \let\resenumerate\enumerate \let\endresenumerate\endenumerate \AtBeginEnvironment{resenumerate}{\enumresumetrue} \AtEndEnvironment{resenumerate}{\enumresumefalse\setcounter{saveenumi}{\value{enumi}}} \apptocmd{\beamer@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \AtBeginDocument{% \only{% \makeatletter \apptocmd{\@enum@}{\ifenumresume\setcounter{enumi}{\value{saveenumi}}\fi}{}{} \makeatother } } EndPreamble End
error in lyx with powerdot and enumitem resume
Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos powerdot-enumitem.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
On Fri, 18 Oct 2013 14:56:05 +0200 (CEST) Csikos Bela bcsikos...@freemail.hu sent this: Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos But it will be and look correct when exported to PDF? Or not? Charlie -- Registered Linux User:- 329524 *** A man is either free or he is not. There cannot be any apprenticeship for freedom. --Amiri Baraka *** Debian GNU/Linux - just the best way to create magic -
Re: error in lyx with powerdot and enumitem resume
Charlie aries...@skymesh.com.au írta: On Fri, 18 Oct 2013 14:56:05 +0200 (CEST) Csikos Bela bcsikos...@freemail.hu sent this: Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos But it will be and look correct when exported to PDF? Or not? Short answer: no. Long answer: compile lyx file = export to pdf. It gives error message and does not produce pdf output (using ps2pdf). bcsikos
Re: error in lyx with powerdot and enumitem resume
Am Freitag 18 Oktober 2013, 14:56:05 schrieb Csikos Bela: How to fix this? Copy the following into Document Settings Local Format, press validate and OK. Style Enumerate-Resume CopyStyle Enumerate LatexParam[][resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End The reason is that powerdot has its own list syntax and an additional optional argument, so the enumitem module produces the wrong code here. Jürgen
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Freitag 18 Oktober 2013, 14:56:05 schrieb Csikos Bela: How to fix this? Copy the following into Document Settings Local Format, press validate and OK. Style Enumerate-Resume CopyStyle Enumerate LatexParam[][resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End The reason is that powerdot has its own list syntax and an additional optional argument, so the enumitem module produces the wrong code here. It works. Thank you. I have two questions. 1. The code inserted as local layout does override/replace the code specified in enumitem module? 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. bcsikos
Re: error in lyx with powerdot and enumitem resume
Am Freitag 18 Oktober 2013, 16:15:09 schrieb Csikos Bela: 1. The code inserted as local layout does override/replace the code specified in enumitem module? Yes. 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. 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-in-beamer Jürgen
error in lyx with powerdot and enumitem resume
Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos powerdot-enumitem.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
On Fri, 18 Oct 2013 14:56:05 +0200 (CEST) Csikos Bela bcsikos...@freemail.hu sent this: Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos But it will be and look correct when exported to PDF? Or not? Charlie -- Registered Linux User:- 329524 *** A man is either free or he is not. There cannot be any apprenticeship for freedom. --Amiri Baraka *** Debian GNU/Linux - just the best way to create magic -
Re: error in lyx with powerdot and enumitem resume
Charlie aries...@skymesh.com.au írta: On Fri, 18 Oct 2013 14:56:05 +0200 (CEST) Csikos Bela bcsikos...@freemail.hu sent this: Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos But it will be and look correct when exported to PDF? Or not? Short answer: no. Long answer: compile lyx file = export to pdf. It gives error message and does not produce pdf output (using ps2pdf). bcsikos
Re: error in lyx with powerdot and enumitem resume
Am Freitag 18 Oktober 2013, 14:56:05 schrieb Csikos Bela: How to fix this? Copy the following into Document Settings Local Format, press validate and OK. Style Enumerate-Resume CopyStyle Enumerate LatexParam[][resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End The reason is that powerdot has its own list syntax and an additional optional argument, so the enumitem module produces the wrong code here. Jürgen
Re: error in lyx with powerdot and enumitem resume
Jürgen Spitzmüller sp...@lyx.org írta: Am Freitag 18 Oktober 2013, 14:56:05 schrieb Csikos Bela: How to fix this? Copy the following into Document Settings Local Format, press validate and OK. Style Enumerate-Resume CopyStyle Enumerate LatexParam[][resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End The reason is that powerdot has its own list syntax and an additional optional argument, so the enumitem module produces the wrong code here. It works. Thank you. I have two questions. 1. The code inserted as local layout does override/replace the code specified in enumitem module? 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. bcsikos
Re: error in lyx with powerdot and enumitem resume
Am Freitag 18 Oktober 2013, 16:15:09 schrieb Csikos Bela: 1. The code inserted as local layout does override/replace the code specified in enumitem module? Yes. 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. 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-in-beamer Jürgen
error in lyx with powerdot and enumitem resume
Hello: I would like to use powerdot with enumitem in lyx. I use powerdot class (selected in lyx class selection window) and enumitem module (selected in lyx modules window, as customisable lists) in lyx 2.0.6. When I insert enumerated lists and set the second and following lists to resume lyx can not compile the document. It gives error: ! Package xkeyval Error: `resume*' undefined in families `enumitem'. The package versions I have reported by lyx/latex log: Package: enumitem 2011/09/28 v3.5.2 powerdot.cls Document Class: powerdot 2012/03/13 v1.4i I attach a non-working example file, powerdot-enumitem.lyx How to fix this? Thanks, bcsikos powerdot-enumitem.lyx Description: Binary data
Re: error in lyx with powerdot and enumitem resume
On Fri, 18 Oct 2013 14:56:05 +0200 (CEST) "Csikos Bela bcsikos...@freemail.hu" sent this: >Hello: > >I would like to use powerdot with enumitem in lyx. > >I use powerdot class (selected in lyx class selection window) and > enumitem module (selected in lyx modules window, as > customisable lists) in lyx 2.0.6. > >When I insert enumerated lists and set the second and following lists > to resume lyx can not compile the document. It gives error: > >! Package xkeyval Error: `resume*' undefined in families `enumitem'. > >The package versions I have reported by lyx/latex log: > >Package: enumitem 2011/09/28 v3.5.2 >powerdot.cls Document Class: powerdot 2012/03/13 v1.4i > >I attach a non-working example file, powerdot-enumitem.lyx > >How to fix this? > >Thanks, > >bcsikos But it will be and look correct when exported to PDF? Or not? Charlie -- Registered Linux User:- 329524 *** A man is either free or he is not. There cannot be any apprenticeship for freedom. --Amiri Baraka *** Debian GNU/Linux - just the best way to create magic -
Re: error in lyx with powerdot and enumitem resume
Charlieírta: > On Fri, 18 Oct 2013 14:56:05 +0200 (CEST) "Csikos Bela > bcsikos...@freemail.hu" sent this: > > >Hello: >> >>I would like to use powerdot with enumitem in lyx. >> >>I use powerdot class (selected in lyx class selection window) and >> enumitem module (selected in lyx modules window, as >> customisable lists) in lyx 2.0.6. >> >>When I insert enumerated lists and set the second and following lists >> to resume lyx can not compile the document. It gives error: >> >>! Package xkeyval Error: `resume*' undefined in families `enumitem'. >> >>The package versions I have reported by lyx/latex log: >> >>Package: enumitem 2011/09/28 v3.5.2 >>powerdot.cls Document Class: powerdot 2012/03/13 v1.4i >> >>I attach a non-working example file, powerdot-enumitem.lyx >> >>How to fix this? >> >>Thanks, >> >>bcsikos > > But it will be and look correct when exported to PDF? Or not? Short answer: no. Long answer: compile lyx file = export to pdf. It gives error message and does not produce pdf output (using ps2pdf). bcsikos
Re: error in lyx with powerdot and enumitem resume
Am Freitag 18 Oktober 2013, 14:56:05 schrieb Csikos Bela: > How to fix this? Copy the following into Document > Settings > Local Format, press "validate" and "OK". Style Enumerate-Resume CopyStyle Enumerate LatexParam[][resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # because the numbering differs in the output LabelFont Color blue EndFont End The reason is that powerdot has its own list syntax and an additional optional argument, so the enumitem module produces the wrong code here. Jürgen
Re: error in lyx with powerdot and enumitem resume
"Jürgen Spitzmüller"írta: >Am Freitag 18 Oktober 2013, 14:56:05 schrieb Csikos Bela: >> How to fix this? > >Copy the following into Document > Settings > Local Format, press "validate" >and "OK". > >Style Enumerate-Resume >CopyStyle Enumerate >LatexParam[][resume] >OptionalArgs 0 ># a blue label to indicate that this is not a WYSIWYG label ># because the numbering differs in the output >LabelFont > Color blue >EndFont >End > > >The reason is that powerdot has its own list syntax and an additional optional >argument, so the enumitem module produces the wrong code here. It works. Thank you. I have two questions. 1. The code inserted as local layout does override/replace the code specified in enumitem module? 2. Loosely related. I tried powerdot because enumitem does not work with beamer. And beamer even starts numbering enumerate list from 1 in every new frame/slide. If I could resume enumeration in beamer I would prefer to use beamer. bcsikos
Re: error in lyx with powerdot and enumitem resume
Am Freitag 18 Oktober 2013, 16:15:09 schrieb Csikos Bela: > 1. The code inserted as local layout does override/replace the code > specified in enumitem module? Yes. > 2. Loosely related. I tried powerdot because enumitem does not work with > beamer. And beamer even starts numbering enumerate list from 1 in every new > frame/slide. If I could resume enumeration in beamer I would prefer to use > beamer. 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-in-beamer Jürgen