Re: [LyX/master] Add three new files from Andrew Parsloe. These do for AMS-type theorem environments what the already existing "by chapter" modules do for non-AMS ones.

2020-05-29 Thread Scott Kostyshak
On Fri, May 29, 2020 at 12:38:52PM -0400, Richard Kimberly Heck wrote:
> On 5/29/20 11:12 AM, Kornel Benko wrote:
> > Am Fri, 29 May 2020 10:33:23 -0400
> > schrieb Scott Kostyshak :
> >
> >> On Thu, Nov 17, 2016 at 05:39:54PM +0100, Richard Heck wrote:
> >>> commit 0f5ba65eae1b3e069be0be279904c911fe02907c
> >>> Author: Richard Heck 
> >>> Date:   Thu Nov 17 10:59:49 2016 -0500
> >>>
> >>> Add three new files from Andrew Parsloe. These do for AMS-type
> >>> theorem environments what the already existing "by chapter" modules
> >>> do for non-AMS ones.
> >>> ---  
> >> I'm looking into some fixes to the theorem style and noticed that there
> >> is a lot of duplication. Is there a reason for this? I'm not very
> >> familiar with our layout mechanism, but why don't we centralize the
> >> common definitions and, if needed, use ModifyStyle?
> >>
> >> Scott
> > But we do it already, each *.inc file is an attempt in this direction.
> > Not successful enough though :)
> 
> I'm not sure when ModifyStyle came into existence, actually. Could be that,

Riki, I think your message was cut off somehow.

In any case, I just wanted to check that it's reasonable to try to
centralize the definitions. I can look into deduplicating when I have
time.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: [LyX/master] Add three new files from Andrew Parsloe. These do for AMS-type theorem environments what the already existing "by chapter" modules do for non-AMS ones.

2020-05-29 Thread Richard Kimberly Heck
On 5/29/20 11:12 AM, Kornel Benko wrote:
> Am Fri, 29 May 2020 10:33:23 -0400
> schrieb Scott Kostyshak :
>
>> On Thu, Nov 17, 2016 at 05:39:54PM +0100, Richard Heck wrote:
>>> commit 0f5ba65eae1b3e069be0be279904c911fe02907c
>>> Author: Richard Heck 
>>> Date:   Thu Nov 17 10:59:49 2016 -0500
>>>
>>> Add three new files from Andrew Parsloe. These do for AMS-type
>>> theorem environments what the already existing "by chapter" modules
>>> do for non-AMS ones.
>>> ---  
>> I'm looking into some fixes to the theorem style and noticed that there
>> is a lot of duplication. Is there a reason for this? I'm not very
>> familiar with our layout mechanism, but why don't we centralize the
>> common definitions and, if needed, use ModifyStyle?
>>
>> Scott
> But we do it already, each *.inc file is an attempt in this direction.
> Not successful enough though :)

I'm not sure when ModifyStyle came into existence, actually. Could be that,

Riki


-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Significant .lyx EOL White Space Inquiry

2020-05-29 Thread Pavel Sanda
On Thu, May 28, 2020 at 10:27:54AM -0600, Joel Kulesza wrote:
> Finally, significant EOL white space seems unidiomatic in a "source file,"
> which is what a .lyx file effectively is.
> 
> This is an expert-use situation, but *I wonder if we have a way to overcome
> the need for significant EOL white space.*

Well, it's all in the code, so one could certainly write patch witch moves
the whitespace to the next line. The issue is that any oversight in such
patch would lead to catastrophic dataloss bugs for everyone else and one
has to ask whether this cornercase is worth the risk.

My take is that
- if you mess with .lyx you need to respect its whitespacing and 
  set your editor accordingly
- the real solution would be to actually do document comparison
  feature right, so one does not need to edit raw .lyx file...

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: [LyX/master] Add three new files from Andrew Parsloe. These do for AMS-type theorem environments what the already existing "by chapter" modules do for non-AMS ones.

2020-05-29 Thread Kornel Benko
Am Fri, 29 May 2020 10:33:23 -0400
schrieb Scott Kostyshak :

> On Thu, Nov 17, 2016 at 05:39:54PM +0100, Richard Heck wrote:
> > commit 0f5ba65eae1b3e069be0be279904c911fe02907c
> > Author: Richard Heck 
> > Date:   Thu Nov 17 10:59:49 2016 -0500
> > 
> > Add three new files from Andrew Parsloe. These do for AMS-type
> > theorem environments what the already existing "by chapter" modules
> > do for non-AMS ones.
> > ---  
> 
> I'm looking into some fixes to the theorem style and noticed that there
> is a lot of duplication. Is there a reason for this? I'm not very
> familiar with our layout mechanism, but why don't we centralize the
> common definitions and, if needed, use ModifyStyle?
> 
> Scott

But we do it already, each *.inc file is an attempt in this direction.
Not successful enough though :)

Kornel


pgpKv5IeWeWG5.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: [LyX/master] Add three new files from Andrew Parsloe. These do for AMS-type theorem environments what the already existing "by chapter" modules do for non-AMS ones.

2020-05-29 Thread Scott Kostyshak
On Thu, Nov 17, 2016 at 05:39:54PM +0100, Richard Heck wrote:
> commit 0f5ba65eae1b3e069be0be279904c911fe02907c
> Author: Richard Heck 
> Date:   Thu Nov 17 10:59:49 2016 -0500
> 
> Add three new files from Andrew Parsloe. These do for AMS-type
> theorem environments what the already existing "by chapter" modules
> do for non-AMS ones.
> ---

I'm looking into some fixes to the theorem style and noticed that there
is a lot of duplication. Is there a reason for this? I'm not very
familiar with our layout mechanism, but why don't we centralize the
common definitions and, if needed, use ModifyStyle?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Setting to Biblatex makes Biber run even if no bibliography inset

2020-05-29 Thread Scott Kostyshak
On Fri, May 29, 2020 at 10:10:12PM +1200, Andrew Parsloe wrote:
> On 29/05/2020 5:54 pm, Jürgen Spitzmüller wrote:
> > Am Donnerstag, den 28.05.2020, 23:10 -0400 schrieb Scott Kostyshak:
> > > I don't know if this is expected or not. Is the bibliography
> > > generator
> > > still run because there might be references in the .tex file itself
> > > (i.e., not in an external file)? If that is the case, would it make
> > > sense to condition on there being no citation inset?
> > Or using a \addbibresource line in preamble or a class file.
> > 
> > Alas I see no reliable way to detect whether or not biber must be run.
> > 
> > Jürgen
> I asked the same question in 2018 and Jürgen's answer
> (https://marc.info/?l=lyx-devel=153899371502800=2) contained the extra
> wrinkle:
> 
> Currently, we run biber whenever a *.bcf file exists in the tmp dir.
> This is apparently also the case if there are no citations.

Thanks for the responses, Jürgen and Andrew. Seems like a tricky issue.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Crash using 'math-mutate gather' in search field

2020-05-29 Thread Kornel Benko
Open a new lyx-file
select findadv dialog
in the search-field enter math
use math-mutate gather ===> crash (LASSERT (isValidBuffer()))
src/mathed/InsetMathGrid.cpp:1824

JMarc, its your game (commit 44816adce63)

Kornel



pgpNSVZLm9NOj.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Shall we drop resources ?

2020-05-29 Thread Pavel Sanda
On Thu, May 28, 2020 at 07:52:16PM +0200, Jean-Marc Lasgouttes wrote:
> Le 20/05/2020 ?? 00:06, Pavel Sanda a écrit :
> >That's actually one thing I was wondering about. My config is set to classic
> >but when running the current master with your patch this option is ignored 
> >and
> >I see tango set.
> 
> Are you sure? I just checked and do not see that.

I tried again the patch and indeed can not reproduce it either.
I do not know what was the cause then.

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Setting to Biblatex makes Biber run even if no bibliography inset

2020-05-29 Thread Andrew Parsloe

On 29/05/2020 5:54 pm, Jürgen Spitzmüller wrote:

Am Donnerstag, den 28.05.2020, 23:10 -0400 schrieb Scott Kostyshak:

I don't know if this is expected or not. Is the bibliography
generator
still run because there might be references in the .tex file itself
(i.e., not in an external file)? If that is the case, would it make
sense to condition on there being no citation inset?

Or using a \addbibresource line in preamble or a class file.

Alas I see no reliable way to detect whether or not biber must be run.

Jürgen
I asked the same question in 2018 and Jürgen's answer 
(https://marc.info/?l=lyx-devel=153899371502800=2) contained the 
extra wrinkle:


Currently, we run biber whenever a *.bcf file exists in the tmp dir.
This is apparently also the case if there are no citations.

Andrew

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel