Re: Enumerate between Sections

2001-06-06 Thread Dekel Tsur

On Tue, Jun 05, 2001 at 07:01:16PM +0200, Herbert Voss wrote:
 
 \newcounter{myCounter}
 \newcounter{mySaveCounter}
 \renewenvironment{enumerate}{%
   \begin{list}{\arabic{myCounter}.}{\usecounter{myCounter}%
   \setcounter{myCounter}{\value{mySaveCounter}}}
   \item[]
   }{%
   \setcounter{mySaveCounter}{\value{myCounter}}\end{list}%
 }

the line 
\item[]
should be removed.
Also, note that this will make ALL enumerate lists in the document use the
same counter, so if you want an enumerate to start from 1 again, put
\setcounter{mySaveCounter}{0} in front of it (in latex mode).



Re: Enumerate between Sections

2001-06-06 Thread Dekel Tsur

On Tue, Jun 05, 2001 at 07:01:16PM +0200, Herbert Voss wrote:
 
 \newcounter{myCounter}
 \newcounter{mySaveCounter}
 \renewenvironment{enumerate}{%
   \begin{list}{\arabic{myCounter}.}{\usecounter{myCounter}%
   \setcounter{myCounter}{\value{mySaveCounter}}}
   \item[]
   }{%
   \setcounter{mySaveCounter}{\value{myCounter}}\end{list}%
 }

the line 
\item[]
should be removed.
Also, note that this will make ALL enumerate lists in the document use the
same counter, so if you want an enumerate to start from 1 again, put
\setcounter{mySaveCounter}{0} in front of it (in latex mode).



Re: Enumerate between Sections

2001-06-06 Thread Dekel Tsur

On Tue, Jun 05, 2001 at 07:01:16PM +0200, Herbert Voss wrote:
> 
> \newcounter{myCounter}
> \newcounter{mySaveCounter}
> \renewenvironment{enumerate}{%
>   \begin{list}{\arabic{myCounter}.}{\usecounter{myCounter}%
>   \setcounter{myCounter}{\value{mySaveCounter}}}
>   \item[]
>   }{%
>   \setcounter{mySaveCounter}{\value{myCounter}}\end{list}%
> }

the line 
\item[]
should be removed.
Also, note that this will make ALL enumerate lists in the document use the
same counter, so if you want an enumerate to start from 1 again, put
\setcounter{mySaveCounter}{0} in front of it (in latex mode).



Enumerate between Sections

2001-06-05 Thread Adolfo Pachón

Hi all!!

I want to do this:

* I have 20  items.
* 10 in Section 1, and the other 10 in Section 2.
* I want to obtain this:

Section 1

1. item 1 
2. item 2 
...
10. item 10 

Section 2

11. item 11 
12. item 12 
...
20. item 20 


How can I do this?

Thanks.





Re: Enumerate between Sections

2001-06-05 Thread Herbert Voss

Adolfo Pachón wrote:
 
 Section 1
 
 1. item 1 
 2. item 2 
 ...
 10. item 10 
 
 Section 2
 
 11. item 11 
 12. item 12 
 ...
 20. item 20 

try in latex preamble

\newcounter{myCounter}
\newcounter{mySaveCounter}
\renewenvironment{enumerate}{%
  \begin{list}{\arabic{myCounter}.}{\usecounter{myCounter}%
  \setcounter{myCounter}{\value{mySaveCounter}}}
  \item[]
  }{%
  \setcounter{mySaveCounter}{\value{myCounter}}\end{list}%
}

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Enumerate between Sections

2001-06-05 Thread Adolfo Pachón

Hi all!!

I want to do this:

* I have 20  items.
* 10 in Section 1, and the other 10 in Section 2.
* I want to obtain this:

Section 1

1. item 1 
2. item 2 
...
10. item 10 

Section 2

11. item 11 
12. item 12 
...
20. item 20 


How can I do this?

Thanks.





Re: Enumerate between Sections

2001-06-05 Thread Herbert Voss

Adolfo Pachón wrote:
 
 Section 1
 
 1. item 1 
 2. item 2 
 ...
 10. item 10 
 
 Section 2
 
 11. item 11 
 12. item 12 
 ...
 20. item 20 

try in latex preamble

\newcounter{myCounter}
\newcounter{mySaveCounter}
\renewenvironment{enumerate}{%
  \begin{list}{\arabic{myCounter}.}{\usecounter{myCounter}%
  \setcounter{myCounter}{\value{mySaveCounter}}}
  \item[]
  }{%
  \setcounter{mySaveCounter}{\value{myCounter}}\end{list}%
}

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Enumerate between Sections

2001-06-05 Thread Adolfo Pachón

Hi all!!

I want to do this:

* I have 20  items.
* 10 in "Section 1", and the other 10 in "Section 2".
* I want to obtain this:

Section 1

1. item 1 
2. item 2 
...
10. item 10 

Section 2

11. item 11 
12. item 12 
...
20. item 20 


How can I do this?

Thanks.





Re: Enumerate between Sections

2001-06-05 Thread Herbert Voss

Adolfo Pachón wrote:
> 
> Section 1
> 
> 1. item 1 
> 2. item 2 
> ...
> 10. item 10 
> 
> Section 2
> 
> 11. item 11 
> 12. item 12 
> ...
> 20. item 20 

try in latex preamble

\newcounter{myCounter}
\newcounter{mySaveCounter}
\renewenvironment{enumerate}{%
  \begin{list}{\arabic{myCounter}.}{\usecounter{myCounter}%
  \setcounter{myCounter}{\value{mySaveCounter}}}
  \item[]
  }{%
  \setcounter{mySaveCounter}{\value{myCounter}}\end{list}%
}

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/