Re: LyX section counter gets it wrong

2018-04-20 Thread Richard Kimberly Heck
On 04/20/2018 03:35 AM, Jean-Marc Lasgouttes wrote: > Le 20/04/2018 à 04:15, Richard Kimberly Heck a écrit : >> I believe the attached should fix this. > > Do you really need to call updateMacros again? This is called > unconditionally a few lines above (and it is expensive). I was intending to as

Re: LyX section counter gets it wrong

2018-04-20 Thread Jean-Marc Lasgouttes
Le 20/04/2018 à 04:15, Richard Kimberly Heck a écrit : I believe the attached should fix this. Do you really need to call updateMacros again? This is called unconditionally a few lines above (and it is expensive). JMarc

Re: LyX section counter gets it wrong

2018-04-20 Thread Pavel Sanda
Richard Kimberly Heck wrote: > > I have MWE. > > 1. Save two attached files into single directory and cd there. > > 2. $ touch paper.lyx.emergency > > 3. $ lyx paper.lyx > > 4. Hit 'Load Original' > > 5. Hit 'Keep' > > 6. Document is loaded, section counter does not start at 1. > > > > I have a fee

Re: LyX section counter gets it wrong

2018-04-19 Thread Richard Kimberly Heck
On 04/18/2018 03:14 PM, Pavel Sanda wrote: > Pavel Sanda wrote: >> There is something weird going on with our section counters. >> When lyx crashes and leaves emergency file behind, in the next >> lyx run I choose for loading original and removing emergency file. >> The 'original' file is loaded bu

Re: LyX section counter gets it wrong

2018-04-18 Thread Richard Kimberly Heck
On 04/18/2018 03:14 PM, Pavel Sanda wrote: > Pavel Sanda wrote: >> There is something weird going on with our section counters. >> When lyx crashes and leaves emergency file behind, in the next >> lyx run I choose for loading original and removing emergency file. >> The 'original' file is loaded bu

Re: LyX section counter gets it wrong

2018-04-18 Thread Richard Kimberly Heck
On 04/18/2018 03:14 PM, Pavel Sanda wrote: > Pavel Sanda wrote: >> There is something weird going on with our section counters. >> When lyx crashes and leaves emergency file behind, in the next >> lyx run I choose for loading original and removing emergency file. >> The 'original' file is loaded bu