Cannot put new counter inset in list preamble

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sat May 8 18:08:52 UTC 2021


Le 08/05/2021 à 20:02, Scott Kostyshak a écrit :
>> I don't think so. Counter is always local to the list environment.
>> Outside, the counter could be stepped for other purposes, such as
>> (constructed example)
>>
>> \setcounter{enumi}{2}
>> Hello \theenumii
>>
>> \begin{enumerate}
>> \item I expect this to be 1!
>> \end{enumerate}

Could we be able to have a dialog
   Set counter [enumi] to [2] for next [Itemize] layout
?

Where the things in brackets would be lists or something. Then we would 
generate the right code automatically. Maybe the name of the counter 
should even not be given.

Can we make this work?

JMarc


More information about the lyx-devel mailing list