Re: workaround enumerated lists

2014-04-11 Thread Alex Vergara Gil

  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

2014-04-11 Thread Richard Heck

On 04/10/2014 02:18 AM, Hal Kierstead wrote:


On Apr 9, 2014, at 4:32 AM, Richard Heck <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




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

2014-04-08 Thread Richard Heck

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 

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


workaround enumerated lists

2014-04-08 Thread Alex Vergara Gil
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???

Regards

Alex

Re: Reducing indentation of enumerated lists

2010-12-13 Thread Venable
On Mon, Dec 13, 2010 at 11:38 AM, Paul Rubin  wrote:
> Assuming you want to do this for all enumerations, add the following to your
> preamble:
>
> \usepackage{enumitem}
> \setenumerate{leftmargin=*}
>
> This of course assumes that you have the enumitem package installed.
>
> /Paul
>
>

Thanks Paul, this worked beautifully.


Re: Reducing indentation of enumerated lists

2010-12-13 Thread Paul Rubin
Assuming you want to do this for all enumerations, add the following to your
preamble:

\usepackage{enumitem}
\setenumerate{leftmargin=*}

This of course assumes that you have the enumitem package installed.

/Paul



Reducing indentation of enumerated lists

2010-12-12 Thread Venable
Hi LyX users,

I would like to reduce the indentation of an enumerated list so that
the number is flush with the left margin of the regular text, and the
text within the list is indented by the same amount relative to the
number as it is now.

That is, i just want to move things to the left a bit, leaving the
right margin as is. A crude stick-figure drawing follows:

Current:

Regular text
__1.__First line of enumerated text.

What I'd like:

Regular text
1.__First line of enumerated text.


Is this possible?

Thanks in advance.


Re: Enumerated lists

2007-01-16 Thread Andreas K .
Nicolás <[EMAIL PROTECTED]> writes:

> 
> Hi!
> 
> I am wondering if v1.5 supports different enumeration styles (apart from the 
standard enumeration style
> with arabic numbers), such as 
> a),b),... or i.,ii.,...
> I think some of these styles are commonly used, so it would be great if LyX 
had standard support for them.
> 
> Cheers,
> Nicolás
> 
> 

Hi,
If you make your voice heard here:

http://bugzilla.lyx.org/show_bug.cgi?id=2986

then maybe it will be implemented.

Regards,
Andreas





Enumerated lists

2007-01-16 Thread Nicolás

Hi!

I am wondering if v1.5 supports different enumeration styles (apart from the standard enumeration style with arabic numbers), such as 
a),b),... or i.,ii.,...

I think some of these styles are commonly used, so it would be great if LyX had 
standard support for them.

Cheers,
Nicolás


Re: Enumerated Lists / Comments

2001-06-07 Thread George De Bruin

On Thursday 07 June 2001 10:28, Dekel Tsur wrote:

> You just need to nest the comment into the enumerate by either pressing the
> "Change Env. depth" icon in the toolbar, or by pressing M-p 

 

Thanks Dekel and Jean-Marc...  That fixed it.  I should have thought of 
that

-- 
George J. De Bruin
Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin
0l0rin's latest recording "Collection" is available now!



Re: Enumerated Lists / Comments

2001-06-07 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:
> 
> > "George" == George De Bruin <[EMAIL PROTECTED]> writes:
> 
> George> I was working in an enumerated list, and needed to insert a
> George> place mark where I stopped editing. So, below the item that I
> George> had just finished, I inserted a comment paragraph. I noticed
> George> that the numbering in my enumerated list was reset by this
> George> addition.
> 
> Did you try to change the environment depth of the comment to include
> it into the list?

you can also insert a note instead of the comment. 

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Enumerated Lists / Comments

2001-06-07 Thread Dekel Tsur

On Wed, Jun 06, 2001 at 12:31:18PM -0500, George De Bruin wrote:
> I have LyX 1.1.6Fix2 installed on my Linux Mandrake 7.2 system (thanks 
> toGerman Poo C. for his RPM), and noticed a behavior that is slightly odd, 
> IMO.  A similar behavior has been mentioned recently, but this one surprised 
> me a little bit...
> 
> I was working in an enumerated list, and needed to insert a place mark where 
> I stopped editing.  So, below the item that I had just finished, I inserted a 
> comment paragraph.  I noticed that the numbering in my enumerated list was 
> reset by this addition.  
> 
> I am slightly surprised by this...  I didn't think that a comment would reset 
> the numbering for the list.  Is this a glitch?  Should it be this way?

You just need to nest the comment into the enumerate by either pressing the 
"Change Env. depth" icon in the toolbar, or by pressing M-p 



Re: Enumerated Lists / Comments

2001-06-07 Thread Jean-Marc Lasgouttes

> "George" == George De Bruin <[EMAIL PROTECTED]> writes:

George> I was working in an enumerated list, and needed to insert a
George> place mark where I stopped editing. So, below the item that I
George> had just finished, I inserted a comment paragraph. I noticed
George> that the numbering in my enumerated list was reset by this
George> addition.

Did you try to change the environment depth of the comment to include
it into the list?

JMarc



Enumerated Lists / Comments

2001-06-06 Thread George De Bruin


Hello,

I have LyX 1.1.6Fix2 installed on my Linux Mandrake 7.2 system (thanks 
toGerman Poo C. for his RPM), and noticed a behavior that is slightly odd, 
IMO.  A similar behavior has been mentioned recently, but this one surprised 
me a little bit...

I was working in an enumerated list, and needed to insert a place mark where 
I stopped editing.  So, below the item that I had just finished, I inserted a 
comment paragraph.  I noticed that the numbering in my enumerated list was 
reset by this addition.  

I am slightly surprised by this...  I didn't think that a comment would reset 
the numbering for the list.  Is this a glitch?  Should it be this way?

It's not really going to affect me in the long run -- the comment will be 
removed when I am done editing.  However, it does make things a little odd if 
I needed to produce a copy while I was in the middle of editing because the 
re-numbering does show up in the output. (Even though the comment does not 
show up.)

-- 
George J. De Bruin
Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin
0l0rin's latest recording "Collection" is available now!