Re: enumeration problem...
Mathieu Richaud wrote: Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 Won't this look better as: 1. item 1 2. item 2 3. item 3 [std text] 4. item 4 5. item 5 Select the std. text, (or just put the cursor there, if it is a single paragraph only) then press ctrl+alt+rightarrow. Or use the menu choice increase environment depth. This way, the standard text becomes a part of item3, it gets indented, and the next item automatically becomes number 4. This works great, and no ERT at all. However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) If you really want _unindented_ standard text between numbered items, then sure, it can be done. But it is unusual, and require lots of ERT. You aren't trying to use enumerate as a sort of section headings? To do this, write item1, item2 and item3 and the std. text as usual. Then make item 4 like this: ERTSTART[4.]\setcounter{enumi}{4}ERTSTOPtext for item 4 Then you make item 5 as usual. Note that item 4 and item 5 will be wrongly numbered inside lyx, but correct in view-dvi. This because lyx don't parse the stuff inside ERT. Also note that the ERT has to be the very first thing in item4, _nothing_ must come before it or it goes wrong. And yes - the you are supposed to type in the brackets and the number four, they are not part of the label. This solution is inflexible, as you'll have to update the numbering of number 4 if you delete item3 later. Helge Hafting
Re: enumeration problem...
Mathieu Richaud wrote: What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 Attached an LyX-example file with two solutions. regards Uwe newfile2.lyx Description: application/lyx
Re: enumeration problem...
On Tue, Feb 28, 2006 at 10:19:51PM -0600, Mathieu Richaud wrote: Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) However, I got stucked with errors when trying to mimic his ERT code from my list. If you use the package mdwlist, you can do this pretty simply, as the attached file hopefully shows... Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{mdwlist} \end_preamble \language american \inputencoding default \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 Standard Some listed items: \layout Enumerate one \layout Enumerate two \begin_deeper \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash suspend{enumerate} \end_inset regular text, which can include other paragraph types \layout Subsection* a heading \layout Itemize itemized things \layout Standard tables! \begin_inset Tabular lyxtabular version=3 rows=2 columns=2 features column alignment=center valignment=top leftline=true width=0 column alignment=center valignment=top leftline=true rightline=true width=0 row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \layout Standard 1 \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \layout Standard 2 \end_inset /cell /row row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \layout Standard 3 \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \layout Standard 4 \end_inset /cell /row /lyxtabular \end_inset \layout Standard ho hum \layout Standard back to regular itemization stuff \begin_inset ERT status Collapsed \layout Standard \backslash resume{enumerate} \end_inset \end_deeper \layout Enumerate three \layout Enumerate four \layout Standard The key is to change the depth of the text block you want to keep normal ( \begin_inset Quotes eld \end_inset un--enumerated \begin_inset Quotes erd \end_inset ??). \the_end
Re: enumeration problem...
Mathieu Richaud wrote: Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 Won't this look better as: 1. item 1 2. item 2 3. item 3 [std text] 4. item 4 5. item 5 Select the std. text, (or just put the cursor there, if it is a single paragraph only) then press ctrl+alt+rightarrow. Or use the menu choice increase environment depth. This way, the standard text becomes a part of item3, it gets indented, and the next item automatically becomes number 4. This works great, and no ERT at all. However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) If you really want _unindented_ standard text between numbered items, then sure, it can be done. But it is unusual, and require lots of ERT. You aren't trying to use enumerate as a sort of section headings? To do this, write item1, item2 and item3 and the std. text as usual. Then make item 4 like this: ERTSTART[4.]\setcounter{enumi}{4}ERTSTOPtext for item 4 Then you make item 5 as usual. Note that item 4 and item 5 will be wrongly numbered inside lyx, but correct in view-dvi. This because lyx don't parse the stuff inside ERT. Also note that the ERT has to be the very first thing in item4, _nothing_ must come before it or it goes wrong. And yes - the you are supposed to type in the brackets and the number four, they are not part of the label. This solution is inflexible, as you'll have to update the numbering of number 4 if you delete item3 later. Helge Hafting
Re: enumeration problem...
Mathieu Richaud wrote: What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 Attached an LyX-example file with two solutions. regards Uwe newfile2.lyx Description: application/lyx
Re: enumeration problem...
On Tue, Feb 28, 2006 at 10:19:51PM -0600, Mathieu Richaud wrote: Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) However, I got stucked with errors when trying to mimic his ERT code from my list. If you use the package mdwlist, you can do this pretty simply, as the attached file hopefully shows... Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{mdwlist} \end_preamble \language american \inputencoding default \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 Standard Some listed items: \layout Enumerate one \layout Enumerate two \begin_deeper \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash suspend{enumerate} \end_inset regular text, which can include other paragraph types \layout Subsection* a heading \layout Itemize itemized things \layout Standard tables! \begin_inset Tabular lyxtabular version=3 rows=2 columns=2 features column alignment=center valignment=top leftline=true width=0 column alignment=center valignment=top leftline=true rightline=true width=0 row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \layout Standard 1 \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \layout Standard 2 \end_inset /cell /row row topline=true bottomline=true cell alignment=center valignment=top topline=true leftline=true usebox=none \begin_inset Text \layout Standard 3 \end_inset /cell cell alignment=center valignment=top topline=true leftline=true rightline=true usebox=none \begin_inset Text \layout Standard 4 \end_inset /cell /row /lyxtabular \end_inset \layout Standard ho hum \layout Standard back to regular itemization stuff \begin_inset ERT status Collapsed \layout Standard \backslash resume{enumerate} \end_inset \end_deeper \layout Enumerate three \layout Enumerate four \layout Standard The key is to change the depth of the text block you want to keep normal ( \begin_inset Quotes eld \end_inset un--enumerated \begin_inset Quotes erd \end_inset ??). \the_end
Re: enumeration problem...
Mathieu Richaud wrote: Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 Won't this look better as: 1. item 1 2. item 2 3. item 3 [std text] 4. item 4 5. item 5 Select the std. text, (or just put the cursor there, if it is a single paragraph only) then press ctrl+alt+rightarrow. Or use the menu choice increase environment depth. This way, the standard text becomes a part of item3, it gets indented, and the next item automatically becomes number 4. This works great, and no ERT at all. However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) If you really want _unindented_ standard text between numbered items, then sure, it can be done. But it is unusual, and require lots of ERT. You aren't trying to use "enumerate" as a sort of section headings? To do this, write item1, item2 and item3 and the std. text as usual. Then make item 4 like this: ERTSTART[4.]\setcounter{enumi}{4}ERTSTOPtext for item 4 Then you make item 5 as usual. Note that item 4 and item 5 will be wrongly numbered inside lyx, but correct in view->dvi. This because lyx don't parse the stuff inside ERT. Also note that the ERT has to be the very first thing in item4, _nothing_ must come before it or it goes wrong. And yes - the you are supposed to type in the brackets and the number four, they are not part of the label. This solution is inflexible, as you'll have to update the numbering of number 4 if you delete item3 later. Helge Hafting
Re: enumeration problem...
Mathieu Richaud wrote: What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 Attached an LyX-example file with two solutions. regards Uwe newfile2.lyx Description: application/lyx
Re: enumeration problem...
On Tue, Feb 28, 2006 at 10:19:51PM -0600, Mathieu Richaud wrote: > Hello all, > > What I am trying to create is the following enumerated list; > > 1. Item 1 > 2. Item 2 > 3. Item 3 > [standard text] > 4. Item 4 > 5. Item 5 > > However, Lyx reset to 1 the enumeration after the standard text. How can > I get around that problem. I looked on the Wiki and the closest I got to > an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} > could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) > > However, I got stucked with errors when trying to mimic his ERT code > from my list. If you use the package mdwlist, you can do this pretty simply, as the attached file hopefully shows... Kenward -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{mdwlist} \end_preamble \language american \inputencoding default \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 Standard Some listed items: \layout Enumerate one \layout Enumerate two \begin_deeper \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash suspend{enumerate} \end_inset regular text, which can include other paragraph types \layout Subsection* a heading \layout Itemize itemized things \layout Standard tables! \begin_inset Tabular \begin_inset Text \layout Standard 1 \end_inset \begin_inset Text \layout Standard 2 \end_inset \begin_inset Text \layout Standard 3 \end_inset \begin_inset Text \layout Standard 4 \end_inset \end_inset \layout Standard ho hum \layout Standard back to regular itemization stuff \begin_inset ERT status Collapsed \layout Standard \backslash resume{enumerate} \end_inset \end_deeper \layout Enumerate three \layout Enumerate four \layout Standard The key is to change the depth of the text block you want to keep normal ( \begin_inset Quotes eld \end_inset un--enumerated \begin_inset Quotes erd \end_inset ??). \the_end
enumeration problem...
Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) However, I got stucked with errors when trying to mimic his ERT code from my list. Thanks, Mathieu -- Mathieu Richaud Graduate Student Dept. of Geology Northern Illinois University DeKalb, IL 60115 [EMAIL PROTECTED]
enumeration problem...
Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) However, I got stucked with errors when trying to mimic his ERT code from my list. Thanks, Mathieu -- Mathieu Richaud Graduate Student Dept. of Geology Northern Illinois University DeKalb, IL 60115 [EMAIL PROTECTED]
enumeration problem...
Hello all, What I am trying to create is the following enumerated list; 1. Item 1 2. Item 2 3. Item 3 [standard text] 4. Item 4 5. Item 5 However, Lyx reset to 1 the enumeration after the standard text. How can I get around that problem. I looked on the Wiki and the closest I got to an answer is from Paul A. Rubin who wrote that \newcounter{myCounter} could be used. (http://wiki.lyx.org/Examples/ReferToEnumeratedItem) However, I got stucked with errors when trying to mimic his ERT code from my list. Thanks, Mathieu -- Mathieu Richaud Graduate Student Dept. of Geology Northern Illinois University DeKalb, IL 60115 [EMAIL PROTECTED]