On Thursday 13 November 2003 13:44, Todd O'Bryan wrote:
> I'm creating a multiple choice test, in which I'd like to put code
> examples right after an Enumeration letter, i.e.
>
> 1. Which of the following does foo?
>       (a) This is code
>                 this is more code and should be lined up with the code
> above
>       (b) more code
>             code with (b)
> 2. Next question

  Yes you can. :-)

> My problem is that I can't nest a LyX Code environment inside an empty
> nested Enumerate environment. Everything works fine if I type something
> first after a and b and then start the LyX Code on the next line, but
> that's going to add a whole page to the test.

  Look to the attached example and see if that is what you want

> Thanks,
> Todd

-- 
José Abílio

LyX and docbook, a perfect match. :-)
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\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

Which of the following does foo?
\begin_deeper 
\layout Enumerate

This is code
\begin_deeper 
\layout LyX-Code

this is more code and should be lined up with the code above
\end_deeper 
\layout Enumerate

more code
\begin_deeper 
\layout LyX-Code

code with (b)
\end_deeper 
\end_deeper 
\layout Enumerate

Next question
\the_end

Reply via email to