Re: Numbered Lists features

2019-10-23 Thread Richard Kimberly Heck
On 10/23/19 4:49 AM, Jean-Marc Lasgouttes wrote:
> Le 23/10/2019 à 09:38, Eugénio Costa a écrit :
>> Hi Lyx developers,
>>
>> Lyx 2.3.1 on Fedora Linux
>> I use Lyx for standard text reports, articles and contract drafting.
>> -- 
>> Would like to suggest that some simple feature in the GUI to
>> personalize and define Numbered Lists would be an amazing feature for
>> next updates.
>
> Hello,
>
> There have been people asking for GUI editing of layouts for a long
> time... It is not easy to do correctly and this will certainly not be
> part of next version.
>
> Concerning the issue that you discussed in lyx-users of having an
> enumerated list for legal documents, it seems to be easy with enumitem
> and I can try to provide a module for that.

I have thought for a while that it might be nice to have a module (or
two, or three...) that defined a variety of common list types. Maybe
nicely commented, so people could see what else they'd need to do to
define some modification. (E.g., at least mention the various list
parameters one can tweak.) I've got some of these already in my own modules.

Riki


-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Numbered Lists features

2019-10-23 Thread Jean-Marc Lasgouttes

Le 23/10/2019 à 10:49, Jean-Marc Lasgouttes a écrit :
Concerning the issue that you discussed in lyx-users of having an 
enumerated list for legal documents, it seems to be easy with enumitem 
and I can try to provide a module for that.


Here is a first go at it. Things to discuss:
- it is limited to a depth of 4 like enumerate. Is it necessary to go 
further?
- I opted to create the new list type Legal. Would you prefer to 
redefine enumerate instead (advantage: the key bindings for Itemize can 
be used).


Regards,
JMarc


#\DeclareLyXModule[enumitem.sty]{Legal}
#\DeclareCategory{List Enhancements}
#DescriptionBegin
#Adds a Legal list type where labels are nested like 1.1.2.
#DescriptionEnd

Counter legali
LabelString  "\arabic{legali}."
End

Counter legalii
Within   legali
LabelString  "\thelegali\arabic{legalii}."
End

Counter legaliii
Within   legalii
LabelString  "\thelegalii\arabic{legaliii}."
End

Counter legaliv
Within   legaliii
LabelString  "\thelegaliii\arabic{legaliv}."
End

Style Legal
CopyStyle Enumerate
LatexName legal
LabelCounter  "legal"
RefPrefix leg
Requires enumitem
Preamble
  \newlist{legal}{enumerate}{4}
  \setlist[legal]{label*=\arabic*.}
EndPreamble
End

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Numbered Lists features

2019-10-23 Thread Jean-Marc Lasgouttes

Le 23/10/2019 à 09:38, Eugénio Costa a écrit :

Hi Lyx developers,

Lyx 2.3.1 on Fedora Linux
I use Lyx for standard text reports, articles and contract drafting.
--
Would like to suggest that some simple feature in the GUI to personalize and 
define Numbered Lists would be an amazing feature for next updates.


Hello,

There have been people asking for GUI editing of layouts for a long 
time... It is not easy to do correctly and this will certainly not be 
part of next version.


Concerning the issue that you discussed in lyx-users of having an 
enumerated list for legal documents, it seems to be easy with enumitem 
and I can try to provide a module for that.


I understand this is not what you asked for, but I hope it can help.

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Numbered Lists features

2019-10-23 Thread Eugénio Costa
Hi Lyx developers,

Lyx 2.3.1 on Fedora Linux
I use Lyx for standard text reports, articles and contract drafting.
--
Would like to suggest that some simple feature in the GUI to
personalize and define Numbered Lists would be an amazing feature for
next updates.

It is a pain in the ass to set up a personalized numbered list, only
can be done with TeX code.
Then the working environment keeps the standard lists, different than
the defined to the output.
So then some change has to be done on how the LyX displays a numbered
list. Something that I didn't yet understand if is possible.

Is difficult to work with accuracy and to be productive, when is need
to get on code to define a list, and then have a rigid different
layout to work on.
I believe that to be productive, accurate with work and references and
to have the freedom of customization, the numbered lists features in
the GUI and Display may be improved.


Thank you for LyX it is a greet tool!

Cheers,
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel