Re: workaround enumerated lists
On 04/10/2014 02:18 AM, Hal Kierstead wrote: On Apr 9, 2014, at 4:32 AM, Richard Heck rgh...@lyx.org mailto:rgh...@lyx.org wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add moreby following the same pattern. I'mattaching my hacked version. Richard enumitem.module Where do I put this file to use it? I am using 2.0.7.1 on a mac running 10.9.2. Put it in the layouts/ subdirectory of your user directory. You can find out where that is from the About LyX menu entry. Then reconfigure, and choose this module in DocumentSettings. There's a simpler version of the module already installed. Also, I would like to use the inline option with enumitem, but when I try to load it in the LaTex Preamble I get a conflict with what LyX does to load the enumitem package. Is there a work around? Try putting inline as a class option. Alternatively, in Local Layout, put: Provides enumitem 1 This prevents LyX from loading enumitem, and then you can load it yourself with whatever options you want. Richard PS Keep such discussion on the list, in case others were hoping to see the answer.
Re: workaround enumerated lists
On Tuesday, April 08, 2014 9:32 PM, Richard Heck wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add more by following the same pattern. I'm attaching my hacked version. Richard I have played with your hacked module and it is better than the one installed, but it lacks some features I need which I can do with tex hacks like sublists formating, ie: \renewcommand{\labelenumi{arabic{enumi}}.-} \renewcommand{\labelenumii{alph{enumii}})} \renewcommand{\labelenumiii{roman{enumiii}}-} This provides the lists as following 1.- first item a) sublist1 i- subsublist1 ii- subsublist2 b) sublist2 2.- second item but I only see lists in your module, is there a way to add sublist formatting too? Regards Alex
Re: workaround enumerated lists
On 04/10/2014 02:18 AM, Hal Kierstead wrote: On Apr 9, 2014, at 4:32 AM, Richard Heck rgh...@lyx.org mailto:rgh...@lyx.org wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add moreby following the same pattern. I'mattaching my hacked version. Richard enumitem.module Where do I put this file to use it? I am using 2.0.7.1 on a mac running 10.9.2. Put it in the layouts/ subdirectory of your user directory. You can find out where that is from the About LyX menu entry. Then reconfigure, and choose this module in DocumentSettings. There's a simpler version of the module already installed. Also, I would like to use the inline option with enumitem, but when I try to load it in the LaTex Preamble I get a conflict with what LyX does to load the enumitem package. Is there a work around? Try putting inline as a class option. Alternatively, in Local Layout, put: Provides enumitem 1 This prevents LyX from loading enumitem, and then you can load it yourself with whatever options you want. Richard PS Keep such discussion on the list, in case others were hoping to see the answer.
Re: workaround enumerated lists
On Tuesday, April 08, 2014 9:32 PM, Richard Heck wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add more by following the same pattern. I'm attaching my hacked version. Richard I have played with your hacked module and it is better than the one installed, but it lacks some features I need which I can do with tex hacks like sublists formating, ie: \renewcommand{\labelenumi{arabic{enumi}}.-} \renewcommand{\labelenumii{alph{enumii}})} \renewcommand{\labelenumiii{roman{enumiii}}-} This provides the lists as following 1.- first item a) sublist1 i- subsublist1 ii- subsublist2 b) sublist2 2.- second item but I only see lists in your module, is there a way to add sublist formatting too? Regards Alex
Re: workaround enumerated lists
On 04/10/2014 02:18 AM, Hal Kierstead wrote: On Apr 9, 2014, at 4:32 AM, Richard Heck> wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add moreby following the same pattern. I'mattaching my hacked version. Richard Where do I put this file to use it? I am using 2.0.7.1 on a mac running 10.9.2. Put it in the layouts/ subdirectory of your user directory. You can find out where that is from the About LyX menu entry. Then reconfigure, and choose this module in Document>Settings. There's a simpler version of the module already installed. Also, I would like to use the inline option with enumitem, but when I try to load it in the LaTex Preamble I get a conflict with what LyX does to load the enumitem package. Is there a work around? Try putting inline as a class option. Alternatively, in Local Layout, put: Provides enumitem 1 This prevents LyX from loading enumitem, and then you can load it yourself with whatever options you want. Richard PS Keep such discussion on the list, in case others were hoping to see the answer.
Re: workaround enumerated lists
On Tuesday, April 08, 2014 9:32 PM, Richard Heck wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add more by following the same pattern. I'm attaching my hacked version. Richard I have played with your hacked module and it is better than the one installed, but it lacks some features I need which I can do with tex hacks like sublists formating, ie: \renewcommand{\labelenumi{arabic{enumi}}.-} \renewcommand{\labelenumii{alph{enumii}})} \renewcommand{\labelenumiii{roman{enumiii}}-} This provides the lists as following 1.- first item a) sublist1 i- subsublist1 ii- subsublist2 b) sublist2 2.- second item but I only see lists in your module, is there a way to add sublist formatting too? Regards Alex
Re: workaround enumerated lists
On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add moreby following the same pattern. I'm attaching my hacked version. Richard #\DeclareLyXModule{Customisable Lists (enumitem)} #DescriptionBegin # Control the layout of enumerate, itemize and description # with an optional argument. # See http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf #DescriptionEnd # Author: Günter Milde mi...@users.berlios.de Format 35 # The package enumitem provides user control over the layout of the three # basic list environments: enumerate, itemize and description. It supersedes # both enumerate and mdwlist (providing well-structured replacements for all # their funtionality), and in addition provides functions to compute the # layout of labels, and to ‘clone’ the standard environments, to create new # environments with counters of their own. # # - fancy labels and fancy refs, # - leftmargin, labelsep and labelwidth automatically set, # - changes applied globally or only in one of the three # types or even in a single list (including topsep) by # means of a sort of inheritance, # - several description styles (which fix some bad # spacing, too), # - starting value and counter resuming, # - trivlists properly formatted, # - control on page breaking # # Styling the basic lists is possible # # a) generally in the LaTeX preamble and # b) per environment with optional arguments # # See enumitem.pdf for details and examples. AddToPreamble \usepackage{enumitem} EndPreamble # ensure the stdlist layouts are present (unmodified) # (as e.g. the KOMA script classes obsolete lyx-list with labeling) # TODO: is this secure? Input stdlists.inc # Customizable Basic Lists # # With enumitem, the three standard list environments take an optional # argument. See enumitem.pdf_ for possible values. Style Itemize OptionalArgs 1 End Style Enumerate OptionalArgs 1 End Style Description OptionalArgs 1 End # List Variants # - # # Styles with pre-defined optional arguments for ease of use Style Enumerate-Resume CopyStyle Enumerate LatexParam[resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # (the numbering differs in the output) LabelFont Color blue EndFont End Style Enumerate-Roman CopyStyle Enumerate OptionalArgs 0 LatexName romanlist # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble \newlist{romanlist}{enumerate}{1} \setlist[romanlist]{label=(\roman*),leftmargin=*,align=left} EndPreamble End Style Roman-Resume CopyStyle Enumerate-Roman LatexParam [resume] # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble EndPreamble End Style Roman-Bare CopyStyle Enumerate-Roman LatexName romanbare Preamble \newlist{romanbare}{enumerate}{1} \setlist[romanbare]{label=(\roman*),ref=\roman*,leftmargin=*,align=left} EndPreamble End Style Enumerate-Alpha CopyStyle Enumerate OptionalArgs 0 LatexName alphlist # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble \newlist{alphlist}{enumerate}{1} \setlist[alphlist]{label=(\alph*),leftmargin=*,align=left} EndPreamble End Style Alpha-Resume CopyStyle Enumerate-Alpha LatexParam [resume] # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble EndPreamble End Style Alpha-Bare CopyStyle Enumerate-Alpha LatexName arabbare Preamble \newlist{alphbare}{enumerate}{1} \setlist[alphbare]{label=(\alph*),ref=\alph*,leftmargin=*,align=left} EndPreamble End
Re: workaround enumerated lists
On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add moreby following the same pattern. I'm attaching my hacked version. Richard #\DeclareLyXModule{Customisable Lists (enumitem)} #DescriptionBegin # Control the layout of enumerate, itemize and description # with an optional argument. # See http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf #DescriptionEnd # Author: Günter Milde mi...@users.berlios.de Format 35 # The package enumitem provides user control over the layout of the three # basic list environments: enumerate, itemize and description. It supersedes # both enumerate and mdwlist (providing well-structured replacements for all # their funtionality), and in addition provides functions to compute the # layout of labels, and to ‘clone’ the standard environments, to create new # environments with counters of their own. # # - fancy labels and fancy refs, # - leftmargin, labelsep and labelwidth automatically set, # - changes applied globally or only in one of the three # types or even in a single list (including topsep) by # means of a sort of inheritance, # - several description styles (which fix some bad # spacing, too), # - starting value and counter resuming, # - trivlists properly formatted, # - control on page breaking # # Styling the basic lists is possible # # a) generally in the LaTeX preamble and # b) per environment with optional arguments # # See enumitem.pdf for details and examples. AddToPreamble \usepackage{enumitem} EndPreamble # ensure the stdlist layouts are present (unmodified) # (as e.g. the KOMA script classes obsolete lyx-list with labeling) # TODO: is this secure? Input stdlists.inc # Customizable Basic Lists # # With enumitem, the three standard list environments take an optional # argument. See enumitem.pdf_ for possible values. Style Itemize OptionalArgs 1 End Style Enumerate OptionalArgs 1 End Style Description OptionalArgs 1 End # List Variants # - # # Styles with pre-defined optional arguments for ease of use Style Enumerate-Resume CopyStyle Enumerate LatexParam[resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # (the numbering differs in the output) LabelFont Color blue EndFont End Style Enumerate-Roman CopyStyle Enumerate OptionalArgs 0 LatexName romanlist # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble \newlist{romanlist}{enumerate}{1} \setlist[romanlist]{label=(\roman*),leftmargin=*,align=left} EndPreamble End Style Roman-Resume CopyStyle Enumerate-Roman LatexParam [resume] # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble EndPreamble End Style Roman-Bare CopyStyle Enumerate-Roman LatexName romanbare Preamble \newlist{romanbare}{enumerate}{1} \setlist[romanbare]{label=(\roman*),ref=\roman*,leftmargin=*,align=left} EndPreamble End Style Enumerate-Alpha CopyStyle Enumerate OptionalArgs 0 LatexName alphlist # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble \newlist{alphlist}{enumerate}{1} \setlist[alphlist]{label=(\alph*),leftmargin=*,align=left} EndPreamble End Style Alpha-Resume CopyStyle Enumerate-Alpha LatexParam [resume] # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble EndPreamble End Style Alpha-Bare CopyStyle Enumerate-Alpha LatexName arabbare Preamble \newlist{alphbare}{enumerate}{1} \setlist[alphbare]{label=(\alph*),ref=\alph*,leftmargin=*,align=left} EndPreamble End
Re: workaround enumerated lists
On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add moreby following the same pattern. I'm attaching my hacked version. Richard #\DeclareLyXModule{Customisable Lists (enumitem)} #DescriptionBegin # Control the layout of enumerate, itemize and description # with an optional argument. # See http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf #DescriptionEnd # Author: Günter MildeFormat 35 # The package enumitem provides user control over the layout of the three # basic list environments: enumerate, itemize and description. It supersedes # both enumerate and mdwlist (providing well-structured replacements for all # their funtionality), and in addition provides functions to compute the # layout of labels, and to ‘clone’ the standard environments, to create new # environments with counters of their own. # # - fancy labels and fancy refs, # - leftmargin, labelsep and labelwidth automatically set, # - changes applied globally or only in one of the three # types or even in a single list (including topsep) by # means of a sort of "inheritance", # - several description styles (which fix some bad # spacing, too), # - starting value and counter resuming, # - trivlists properly formatted, # - control on page breaking # # Styling the basic lists is possible # # a) generally in the LaTeX preamble and # b) per environment with optional arguments # # See enumitem.pdf for details and examples. AddToPreamble \usepackage{enumitem} EndPreamble # ensure the stdlist layouts are present (unmodified) # (as e.g. the KOMA script classes obsolete lyx-list with labeling) # TODO: is this secure? Input stdlists.inc # Customizable Basic Lists # # With enumitem, the three standard list environments take an optional # argument. See enumitem.pdf_ for possible values. Style Itemize OptionalArgs 1 End Style Enumerate OptionalArgs 1 End Style Description OptionalArgs 1 End # List Variants # - # # Styles with pre-defined optional arguments for ease of use Style Enumerate-Resume CopyStyle Enumerate LatexParam[resume] OptionalArgs 0 # a blue label to indicate that this is not a WYSIWYG label # (the numbering differs in the output) LabelFont Color blue EndFont End Style Enumerate-Roman CopyStyle Enumerate OptionalArgs 0 LatexName romanlist # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble \newlist{romanlist}{enumerate}{1} \setlist[romanlist]{label=(\roman*),leftmargin=*,align=left} EndPreamble End Style Roman-Resume CopyStyle Enumerate-Roman LatexParam "[resume]" # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble EndPreamble End Style Roman-Bare CopyStyle Enumerate-Roman LatexName romanbare Preamble \newlist{romanbare}{enumerate}{1} \setlist[romanbare]{label=(\roman*),ref=\roman*,leftmargin=*,align=left} EndPreamble End Style Enumerate-Alpha CopyStyle Enumerate OptionalArgs 0 LatexName alphlist # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble \newlist{alphlist}{enumerate}{1} \setlist[alphlist]{label=(\alph*),leftmargin=*,align=left} EndPreamble End Style Alpha-Resume CopyStyle Enumerate-Alpha LatexParam "[resume]" # a blue label to indicate that this is not a WYSIWYG label # we don't get roman LabelFont Color blue EndFont Preamble EndPreamble End Style Alpha-Bare CopyStyle Enumerate-Alpha LatexName arabbare Preamble \newlist{alphbare}{enumerate}{1} \setlist[alphbare]{label=(\alph*),ref=\alph*,leftmargin=*,align=left} EndPreamble End