Numbered list - multi-level
Ricardo Berlasso
rgb.mldc at gmail.com
Mon Oct 21 19:37:12 UTC 2019
Hi,
El lun., 21 oct. 2019 a las 18:34, Eugénio Costa (<coinegue at gmail.com>)
escribió:
> Hi Lyx users and developers
>
> I am using LyX Version 2.3.1 on Fedora Linux.
> I need help to get a Multi-level numbered list this style:
>
> 1.
> 1.1
> 1.2
> 1.2.1
> 1.2.2
> 2
>
>
Right now, there is no other way than writing some code.
I describe the procedure in section 9.2 of my book
https://frommindtotype.wordpress.com/lyx-book/
At the beginning of the document, in a TeX box you need to write something
like this
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{{\theenumi}}
\renewcommand{\theenumii}{\arabic{enumii}}
\renewcommand{\labelenumii}{{\theenumi}.{\theenumii}}
\renewcommand{\theenumiii}{\arabic{enumiii}}
\renewcommand{\labelenumiii}{{\theenumi}.{\theenumii}.{\theenumiii}}
\renewcommand{\theenumiv}{\arabic{enumiv}}
\renewcommand{\labelenumiv}{{\theenumi}.{\theenumii}.{\theenumiii}.{\theenumiv}}
This will set the list up to the fourth level, always using numbers.
Regards,
Ricardo
> The default is:
> 1.
> (a)
> (b)
> i.
> ii.
> 2.
>
> This such simple thing is a pain in the ass....
> I need to write a law contract/agreement, where the text refers to
> previous points, and there is no other way to do it than with numbers.
> I did't find a solution to follow.
> Would be great to have this option without the need to write code, as a
> simple document option, for a newer version.
>
Thank you in advance for the help!
>
> Coinegue
>
> --
> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20191021/d9ebf12f/attachment.html>
More information about the lyx-users
mailing list