On Wed, 10 Nov 1999, Paolo wrote:
> Received from Allan Rae, On Oct 21 Thu, 15:50:
> .In the first item after the break insert the following as TeX:
> . [##.]\setcounter{enumi}{##}
> .where the ## is the number you want the enumeration to start at.
> .
> .
> Your suggestion works.
> But now i cannot change labels. Numbering starts from 6, byt with the default
> labels. Here is te relevant LyX interface:
>
> \renewcommand{\labelenumi}{Art. \arabic{enumi}}
> [6.]\setcounter{enumi}{6}
>
> Label 'Art. ' is not printed out in the dvi output
The problem here is that the [6.] is a _replacement_ label for that \item.
That is, the "6." replaces the "Art. \arabic{enumi}" so one ugly way to
fix it is to write:
[Art. 6]\setcounter{enumi}{6}
instead. Like I said its getting uglier by the minute. If we could
shoehorn a line of raw LaTeX in between the \begin{enumerate} and the
first \item it'd be so much simpler. This is definitely on my TODO list
but if anyone else wants to have a go they are welcome since I've also got
gui-indep work to catch up on.
It may be possible to use two versions of labelenumi but I can't quite
think of a way to do that at present. What I would suggest is that you
take a look at enumerate.sty which has a number of very nice features not
least of which is the ability to easily modify the enumeration settings
(like your custom "Art. x"). I can't remember if it allows for broken
enumerations or not though so we may still be stuck but it does have good
documentation and several examples.
Allan. (ARRae)