[EMAIL PROTECTED] schrieb:

Another small query ... I need to be able to refer
to an enumaration in various parts of a document,
but starting from different points in the enumeration. Is there some way to do this? I mean
I have an enumeration:


1. Weather forecasts
2. Items of this kind ... 3. Sports results ...
4. Poll results


Then later I want to refer only to items 3 and 4
say ...


3. Sports results ...
4. Poll results


Ie start the enumeration from 3 in this case, instead of 1.

example file attached


Herbert
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\newcounter{myEnum}
\def\saveenumcounter#1{\setcounter{myEnum}{#1}}
\def\setmyEnum#1{\setcounter{enumi}{#1}}
\def\enumerate{%
  \ifnum [EMAIL PROTECTED] >\thr@@[EMAIL PROTECTED]
    [EMAIL PROTECTED]@ne
    [EMAIL PROTECTED]@enumdepth}%
      \expandafter
      \list
        \csname [EMAIL PROTECTED]
        [EMAIL PROTECTED]   [EMAIL PROTECTED]
\def\makelabel##1{\hss\llap{##1}}}%
  \fi}
\end_preamble
\language ngerman
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\paperwidth 17cm
\paperheight 22cm
\leftmargin 1.2cm
\topmargin 1.4cm
\rightmargin 1.7cm
\bottommargin 1.4cm
\headsep 1cm
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout Standard

Another small query ...
 I need to be able to refer to an enumaration in various parts of a document,
 but starting from different points in the enumeration.
 Is there some way to do this? I mean I have an enumeration:
\layout Enumerate

Weather forecasts 
\layout Enumerate

Items of this kind ...
 
\layout Enumerate

Sports results ...
 
\layout Enumerate

Poll results
\newline 
we save the number before the following one.
 in this case 2
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
saveenumcounter{2}
\end_inset 


\layout Standard

Then later I want to refer only to items 3 and 4 say ...
 
\layout Enumerate

Sports results ...
 starts with number 2+1=3
\layout Enumerate

Poll results 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
saveenumcounter{0}
\end_inset 

 resets the enum improvement
\layout Standard

Ie start the enumeration from 3 in this case, instead of 1.
 
\layout Enumerate

Weather forecasts 
\layout Enumerate

Items of this kind ...
 
\layout Enumerate

Sports results ...
 
\the_end

Reply via email to