Again on interrupted lists

2008-11-30 Thread stefano franchi
I am trying really hard to understand how to produce interrupted multi-level
lists in LyX/LaTeX, but I can't seem to find a way to make the wiki
suggestions work. I am preparing lecture notes for a philosophy class and I
need to write down the various steps of various arguments, with main
premises, sub-premises, provisional conclusions, etc. Every once in a while
I need to insert text between the steps to make a more general point before
resuming the argument. For clarity, I need to have the steps labeled with
decimal numbering (i.e.. 1. 1.1, 1.2, etc.)

Here is what I tried:

1. using the paralist package
a. decimal numbering is offered as one of the package options, so no
problems there
b. Could not find a way to interrupt/resume a list. I studied the  package
documentation, but could not find a way. That does not necessarily mean it's
impossible, of course...


2. Using the mdwlist package
a. I redefine the enumerate counters and labels to produce decimal
numbering---no problems there
b. Although the \interrupt \resume commands work from a level 1 item to
standard text, I could not find a way to make it work from a deeper level
item.
That is, I can replicate the example on the wiki::
1. First first level item
2. second first level item
Standard text
3. third first level item

But I *cannot* extend it to do this:
1. First first level item
1.1. First second level item
Standard text
1.2 Second second level item

When I try to adapt the wiki example strategy  to my needs I get LaTex
errors. I am attaching a short sample file below.

Any help appreciated

Cheers,

Stefano
-- 
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  [EMAIL PROTECTED]
College Station, TX 77843-4237


simple-numbering-test.lyx
Description: application/lyx


Re: Again on interrupted lists

2008-11-30 Thread Paul A. Rubin

stefano franchi wrote:
I am trying really hard to understand how to produce interrupted 
multi-level lists in LyX/LaTeX, but I can't seem to find a way to make 
the wiki suggestions work. I am preparing lecture notes for a philosophy 
class and I need to write down the various steps of various arguments, 
with main premises, sub-premises, provisional conclusions, etc. Every 
once in a while I need to insert text between the steps to make a more 
general point before resuming the argument. For clarity, I need to have 
the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2, etc.)


Here is what I tried:

1. using the paralist package
a. decimal numbering is offered as one of the package options, so no 
problems there
b. Could not find a way to interrupt/resume a list. I studied the  
package documentation, but could not find a way. That does not 
necessarily mean it's impossible, of course...



2. Using the mdwlist package
a. I redefine the enumerate counters and labels to produce decimal 
numbering---no problems there
b. Although the \interrupt \resume commands work from a level 1 item to 
standard text, I could not find a way to make it work from a deeper 
level item.

That is, I can replicate the example on the wiki::
1. First first level item
2. second first level item
Standard text
3. third first level item

But I *cannot* extend it to do this:
1. First first level item
1.1. First second level item
Standard text
1.2 Second second level item

When I try to adapt the wiki example strategy  to my needs I get LaTex 
errors. I am attaching a short sample file below.




Stefano,

Does the attached file do the job?  If so, the use of mdwlist is 
overkill (I took it out); just nesting the extra text under the 
appropriate list level, and making it standard environments (or whatever 
environment you need) should work.


Incidentally, the LaTeX errors were the result of using 
\resume{enumerate} right before \end{enumerate} (i.e., resuming the list 
but then not adding any further items).


/Paul


hacked-simple-numbering-test.lyx
Description: application/lyx


Re: Again on interrupted lists

2008-11-30 Thread Guenter Milde
On 2008-11-30, stefano franchi wrote:

 I am trying really hard to understand how to produce interrupted multi-level
 lists in LyX/LaTeX,
...
 Every once in a while I need to insert text between the steps to make a
 more general point before resuming the argument. For clarity, I need to
 have the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2, etc.)

 Here is what I tried:

 1. using the paralist package

 2. Using the mdwlist package

I recommend the enumitem package (if you are using LyX 1.6, you can use
the attached enumitem module.

No need to explicitely \interrupt an enumeration. It just takes of the
last one *of the corresponding level* with the [resume] optional argument
(or with the Enumerate-Resume Style provided by the module).

Günter

enumitem.module:


#\DeclareLyXModule[enumitem.sty]{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 [EMAIL PROTECTED]

Format 11

# 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]
#   LatexParam[resume*] # reuse optional arguments
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

# Add compact lists here...

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf




Re: Again on interrupted lists

2008-11-30 Thread Christian Liesen

Maybe you will also find the following link helpful: 
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=interruptlist

As Günter said, enumlist is clearly to be recommended for interrupted  
list.


-- Christian



Am 30.11.2008 um 22:34 schrieb Guenter Milde:


On 2008-11-30, stefano franchi wrote:

I am trying really hard to understand how to produce interrupted  
multi-level

lists in LyX/LaTeX,

...
Every once in a while I need to insert text between the steps to  
make a
more general point before resuming the argument. For clarity, I  
need to
have the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2,  
etc.)



Here is what I tried:



1. using the paralist package



2. Using the mdwlist package


I recommend the enumitem package (if you are using LyX 1.6, you can  
use

the attached enumitem module.

No need to explicitely \interrupt an enumeration. It just takes of the
last one *of the corresponding level* with the [resume] optional  
argument

(or with the Enumerate-Resume Style provided by the module).

Günter

enumitem.module:


#\DeclareLyXModule[enumitem.sty]{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 [EMAIL PROTECTED]

Format 11

# 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]
#   LatexParam[resume*] # reuse optional arguments
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

# Add compact lists here...

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf






Again on interrupted lists

2008-11-30 Thread stefano franchi
I am trying really hard to understand how to produce interrupted multi-level
lists in LyX/LaTeX, but I can't seem to find a way to make the wiki
suggestions work. I am preparing lecture notes for a philosophy class and I
need to write down the various steps of various arguments, with main
premises, sub-premises, provisional conclusions, etc. Every once in a while
I need to insert text between the steps to make a more general point before
resuming the argument. For clarity, I need to have the steps labeled with
decimal numbering (i.e.. 1. 1.1, 1.2, etc.)

Here is what I tried:

1. using the paralist package
a. decimal numbering is offered as one of the package options, so no
problems there
b. Could not find a way to interrupt/resume a list. I studied the  package
documentation, but could not find a way. That does not necessarily mean it's
impossible, of course...


2. Using the mdwlist package
a. I redefine the enumerate counters and labels to produce decimal
numbering---no problems there
b. Although the \interrupt \resume commands work from a level 1 item to
standard text, I could not find a way to make it work from a deeper level
item.
That is, I can replicate the example on the wiki::
1. First first level item
2. second first level item
Standard text
3. third first level item

But I *cannot* extend it to do this:
1. First first level item
1.1. First second level item
Standard text
1.2 Second second level item

When I try to adapt the wiki example strategy  to my needs I get LaTex
errors. I am attaching a short sample file below.

Any help appreciated

Cheers,

Stefano
-- 
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  [EMAIL PROTECTED]
College Station, TX 77843-4237


simple-numbering-test.lyx
Description: application/lyx


Re: Again on interrupted lists

2008-11-30 Thread Paul A. Rubin

stefano franchi wrote:
I am trying really hard to understand how to produce interrupted 
multi-level lists in LyX/LaTeX, but I can't seem to find a way to make 
the wiki suggestions work. I am preparing lecture notes for a philosophy 
class and I need to write down the various steps of various arguments, 
with main premises, sub-premises, provisional conclusions, etc. Every 
once in a while I need to insert text between the steps to make a more 
general point before resuming the argument. For clarity, I need to have 
the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2, etc.)


Here is what I tried:

1. using the paralist package
a. decimal numbering is offered as one of the package options, so no 
problems there
b. Could not find a way to interrupt/resume a list. I studied the  
package documentation, but could not find a way. That does not 
necessarily mean it's impossible, of course...



2. Using the mdwlist package
a. I redefine the enumerate counters and labels to produce decimal 
numbering---no problems there
b. Although the \interrupt \resume commands work from a level 1 item to 
standard text, I could not find a way to make it work from a deeper 
level item.

That is, I can replicate the example on the wiki::
1. First first level item
2. second first level item
Standard text
3. third first level item

But I *cannot* extend it to do this:
1. First first level item
1.1. First second level item
Standard text
1.2 Second second level item

When I try to adapt the wiki example strategy  to my needs I get LaTex 
errors. I am attaching a short sample file below.




Stefano,

Does the attached file do the job?  If so, the use of mdwlist is 
overkill (I took it out); just nesting the extra text under the 
appropriate list level, and making it standard environments (or whatever 
environment you need) should work.


Incidentally, the LaTeX errors were the result of using 
\resume{enumerate} right before \end{enumerate} (i.e., resuming the list 
but then not adding any further items).


/Paul


hacked-simple-numbering-test.lyx
Description: application/lyx


Re: Again on interrupted lists

2008-11-30 Thread Guenter Milde
On 2008-11-30, stefano franchi wrote:

 I am trying really hard to understand how to produce interrupted multi-level
 lists in LyX/LaTeX,
...
 Every once in a while I need to insert text between the steps to make a
 more general point before resuming the argument. For clarity, I need to
 have the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2, etc.)

 Here is what I tried:

 1. using the paralist package

 2. Using the mdwlist package

I recommend the enumitem package (if you are using LyX 1.6, you can use
the attached enumitem module.

No need to explicitely \interrupt an enumeration. It just takes of the
last one *of the corresponding level* with the [resume] optional argument
(or with the Enumerate-Resume Style provided by the module).

Günter

enumitem.module:


#\DeclareLyXModule[enumitem.sty]{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 [EMAIL PROTECTED]

Format 11

# 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]
#   LatexParam[resume*] # reuse optional arguments
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

# Add compact lists here...

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf




Re: Again on interrupted lists

2008-11-30 Thread Christian Liesen

Maybe you will also find the following link helpful: 
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=interruptlist

As Günter said, enumlist is clearly to be recommended for interrupted  
list.


-- Christian



Am 30.11.2008 um 22:34 schrieb Guenter Milde:


On 2008-11-30, stefano franchi wrote:

I am trying really hard to understand how to produce interrupted  
multi-level

lists in LyX/LaTeX,

...
Every once in a while I need to insert text between the steps to  
make a
more general point before resuming the argument. For clarity, I  
need to
have the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2,  
etc.)



Here is what I tried:



1. using the paralist package



2. Using the mdwlist package


I recommend the enumitem package (if you are using LyX 1.6, you can  
use

the attached enumitem module.

No need to explicitely \interrupt an enumeration. It just takes of the
last one *of the corresponding level* with the [resume] optional  
argument

(or with the Enumerate-Resume Style provided by the module).

Günter

enumitem.module:


#\DeclareLyXModule[enumitem.sty]{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 [EMAIL PROTECTED]

Format 11

# 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]
#   LatexParam[resume*] # reuse optional arguments
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

# Add compact lists here...

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf






Again on interrupted lists

2008-11-30 Thread stefano franchi
I am trying really hard to understand how to produce interrupted multi-level
lists in LyX/LaTeX, but I can't seem to find a way to make the wiki
suggestions work. I am preparing lecture notes for a philosophy class and I
need to write down the various steps of various arguments, with main
premises, sub-premises, provisional conclusions, etc. Every once in a while
I need to insert text between the steps to make a more general point before
resuming the argument. For clarity, I need to have the steps labeled with
decimal numbering (i.e.. 1. 1.1, 1.2, etc.)

Here is what I tried:

1. using the paralist package
a. decimal numbering is offered as one of the package options, so no
problems there
b. Could not find a way to interrupt/resume a list. I studied the  package
documentation, but could not find a way. That does not necessarily mean it's
impossible, of course...


2. Using the mdwlist package
a. I redefine the enumerate counters and labels to produce decimal
numbering---no problems there
b. Although the \interrupt \resume commands work from a level 1 item to
standard text, I could not find a way to make it work from a deeper level
item.
That is, I can replicate the example on the wiki::
1. First first level item
2. second first level item
Standard text
3. third first level item

But I *cannot* extend it to do this:
1. First first level item
1.1. First second level item
Standard text
1.2 Second second level item

When I try to adapt the wiki example strategy  to my needs I get LaTex
errors. I am attaching a short sample file below.

Any help appreciated

Cheers,

Stefano
-- 
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  [EMAIL PROTECTED]
College Station, TX 77843-4237


simple-numbering-test.lyx
Description: application/lyx


Re: Again on interrupted lists

2008-11-30 Thread Paul A. Rubin

stefano franchi wrote:
I am trying really hard to understand how to produce interrupted 
multi-level lists in LyX/LaTeX, but I can't seem to find a way to make 
the wiki suggestions work. I am preparing lecture notes for a philosophy 
class and I need to write down the various steps of various arguments, 
with main premises, sub-premises, provisional conclusions, etc. Every 
once in a while I need to insert text between the steps to make a more 
general point before resuming the argument. For clarity, I need to have 
the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2, etc.)


Here is what I tried:

1. using the paralist package
a. decimal numbering is offered as one of the package options, so no 
problems there
b. Could not find a way to interrupt/resume a list. I studied the  
package documentation, but could not find a way. That does not 
necessarily mean it's impossible, of course...



2. Using the mdwlist package
a. I redefine the enumerate counters and labels to produce decimal 
numbering---no problems there
b. Although the \interrupt \resume commands work from a level 1 item to 
standard text, I could not find a way to make it work from a deeper 
level item.

That is, I can replicate the example on the wiki::
1. First first level item
2. second first level item
Standard text
3. third first level item

But I *cannot* extend it to do this:
1. First first level item
1.1. First second level item
Standard text
1.2 Second second level item

When I try to adapt the wiki example strategy  to my needs I get LaTex 
errors. I am attaching a short sample file below.




Stefano,

Does the attached file do the job?  If so, the use of mdwlist is 
overkill (I took it out); just nesting the extra text under the 
appropriate list level, and making it standard environments (or whatever 
environment you need) should work.


Incidentally, the LaTeX errors were the result of using 
\resume{enumerate} right before \end{enumerate} (i.e., resuming the list 
but then not adding any further items).


/Paul


hacked-simple-numbering-test.lyx
Description: application/lyx


Re: Again on interrupted lists

2008-11-30 Thread Guenter Milde
On 2008-11-30, stefano franchi wrote:

> I am trying really hard to understand how to produce interrupted multi-level
> lists in LyX/LaTeX,
...
> Every once in a while I need to insert text between the steps to make a
> more general point before resuming the argument. For clarity, I need to
> have the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2, etc.)

> Here is what I tried:

> 1. using the paralist package

> 2. Using the mdwlist package

I recommend the enumitem package (if you are using LyX 1.6, you can use
the attached enumitem module.

No need to explicitely \interrupt an enumeration. It just takes of the
last one *of the corresponding level* with the [resume] optional argument
(or with the Enumerate-Resume Style provided by the module).

Günter

enumitem.module:


#\DeclareLyXModule[enumitem.sty]{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 <[EMAIL PROTECTED]>

Format 11

# 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]
#   LatexParam[resume*] # reuse optional arguments
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

# Add compact lists here...

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf




Re: Again on interrupted lists

2008-11-30 Thread Christian Liesen

Maybe you will also find the following link helpful: 
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=interruptlist

As Günter said, enumlist is clearly to be recommended for interrupted  
list.


-- Christian



Am 30.11.2008 um 22:34 schrieb Guenter Milde:


On 2008-11-30, stefano franchi wrote:

I am trying really hard to understand how to produce interrupted  
multi-level

lists in LyX/LaTeX,

...
Every once in a while I need to insert text between the steps to  
make a
more general point before resuming the argument. For clarity, I  
need to
have the steps labeled with decimal numbering (i.e.. 1. 1.1, 1.2,  
etc.)



Here is what I tried:



1. using the paralist package



2. Using the mdwlist package


I recommend the enumitem package (if you are using LyX 1.6, you can  
use

the attached enumitem module.

No need to explicitely \interrupt an enumeration. It just takes of the
last one *of the corresponding level* with the [resume] optional  
argument

(or with the Enumerate-Resume Style provided by the module).

Günter

enumitem.module:


#\DeclareLyXModule[enumitem.sty]{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 <[EMAIL PROTECTED]>

Format 11

# 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]
#   LatexParam[resume*] # reuse optional arguments
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

# Add compact lists here...

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf