Minor comments on the new counter feature

Scott Kostyshak skostysh at lyx.org
Tue Sep 29 03:24:51 UTC 2020


On Mon, Sep 28, 2020 at 10:11:28PM -0400, Richard Kimberly Heck wrote:
> On 6/14/20 11:10 PM, Scott Kostyshak wrote:
> > On Sun, Jun 14, 2020 at 10:52:31PM -0400, Richard Kimberly Heck wrote:
> >> On 5/3/20 10:26 PM, Scott Kostyshak wrote:
> >>> Riki, thanks for your work on the counter inset!
> >>>
> >>> Can this feature be used to set an enumerate to start with 2? See
> >>> attached for my naive attempt. It doesn't work because the counter is
> >>> reset to 1 when the enumerate begins. I can put it in a "list preamble"
> >>> inset inside the enumerate and then the PDF output is correct, but then
> >>> the LyX display is not correct.
> >>>
> >>> Also, should the inset label display the value of the counter?
> >> Sorry, Scott, missed this email. Will have a look shortly.
> > Thanks, Riki. There's no hurry, although I am curious about it.
> 
> The attached file shows how to do it now. The complication is that you
> have to override the default "PassThru 1" setting on the list preamble.
> I've done that here in Local Layout...and had to modify the code a bit
> to make it work properly. But it does now work.

Thanks!

> You do know about the *Resume layouts in the Customizable Lists module?
> Or is there another use case?

Indeed that seems the best way to go.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200928/dce3cc9a/attachment.asc>


More information about the lyx-devel mailing list