Paul Smith wrote:
On Wed, 24 Nov 2004 08:41:01 +0100, G. Milde <[EMAIL PROTECTED]> wrote:
With the cursor inside the LyX enumerate environment, I want to begin
a nested enumerate environment using ERT so that I can pass some
parameters to the enumerate environment (not the default enumerate
environment, but the one provided by the enumerate package). Okay, I
know that I could do everything with a single ERT... but that would
correspond to a waste of LyX facilities. Any ideas?
Another possibility would be to use ERT in a nested standard paragraph to
start and end the sublist. You will not see the indent of the sublist but
otherwise it should be ok.
Thanks, G�nter, I am trying the way above, but I get errors. I am
attaching a file with an example. Any ideas?
if you want it like 1.1, then there is no need for the
enumerate package. You can also edit your LyX layout file
to get it on the screen in the same way. Attached your
example with an additional enumerate environment, which
uses the redefined second level.
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{enumerate}
\renewcommand\labelenumii{\arabic{enumi}.\arabic{enumii}.}
\end_preamble
\language portuges
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Enumerate
this the first item.
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
begin{enumerate}[{1.}1]
\end_inset
\layout Enumerate
this is the first sub-item.
\layout Enumerate
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
end{enumerate}
\end_inset
\layout Enumerate
foo
\layout Standard
bar
\layout Enumerate
this the first item.
\begin_deeper
\layout Enumerate
this is the first sub-item.
\layout Enumerate
foo
\end_deeper
\layout Enumerate
foo
\layout Standard
bar
\the_end