Re: test of math previews

2015-06-04 Thread Richard Heck
On 06/04/2015 07:13 PM, Guillaume M-M wrote: Bad news, it seems to forget that macros can use macros. With the attached file the preview is as follows: \begin{preview} \global\long\def\b{\a} $\b$ \end{preview} I suspect this is why all macros are included. Richard

Re: test of math previews

2015-06-04 Thread Guillaume M-M
Le 04/06/2015 22:29, Enrico Forestieri a écrit : On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guillaume M-M wrote: 1) the explosion in size mentioned above. This affects both stable and master. (This is also responsible for a regression wrt 2.1.3 because of zooming triggers preview as already disc

Re: test of math previews

2015-06-04 Thread Richard Heck
On 06/04/2015 05:29 PM, Enrico Forestieri wrote: Richard, I think that this is pretty safe for stable. It simply omits the macro definition if it is not used in the math inset. At worst, it is added unnecessarily if for example \beta appears in the inset and the macro name is \b, \be, or \bet.

Re: [patch] fix bug 7657 - Inkscape detection in configure.py

2015-06-04 Thread Guenter Milde
On 2015-06-03, Uwe Stöhr wrote: > [-- Type: text/plain, Encoding: 7bit --] > The attached patch fixes > http://www.lyx.org/trac/ticket/7657 > for me. > Could some pythionist please review this? > If this can go in I would be able to fix the same bug for other > third-party programs. Do you re

Re: test of math previews

2015-06-04 Thread Enrico Forestieri
On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guillaume M-M wrote: > > 1) the explosion in size mentioned above. This affects both stable and > master. (This is also responsible for a regression wrt 2.1.3 because of > zooming triggers preview as already discussed.) Using vim I duplicated your documen

Re: test of math previews

2015-06-04 Thread Guillaume M-M
Le 04/06/2015 20:17, Scott Kostyshak a écrit : On Thu, Jun 4, 2015 at 3:05 PM, Enrico Forestieri wrote: On Thu, Jun 04, 2015 at 02:44:56PM -0400, Scott Kostyshak wrote: On Thu, Jun 4, 2015 at 2:34 PM, Scott Kostyshak wrote: On Thu, Jun 4, 2015 at 2:31 PM, Enrico Forestieri wrote: On Thu, J

Re: test of math previews

2015-06-04 Thread Richard Heck
On 06/04/2015 03:35 PM, Jean-Marc Lasgouttes wrote: Le 04/06/2015 20:44, Scott Kostyshak a écrit : Can someone please confirm that I should indeed revert? I took a look at lyx-preview-explosion.lyx and I can indeed reproduce the assertion. My guess though is that the referenced commits expose a

Re: test of math previews

2015-06-04 Thread Jean-Marc Lasgouttes
Le 04/06/2015 20:44, Scott Kostyshak a écrit : Can someone please confirm that I should indeed revert? I took a look at lyx-preview-explosion.lyx and I can indeed reproduce the assertion. My guess though is that the referenced commits expose a different bug that has to do with previews and macros

Re: test of math previews

2015-06-04 Thread Scott Kostyshak
On Thu, Jun 4, 2015 at 3:05 PM, Enrico Forestieri wrote: > On Thu, Jun 04, 2015 at 02:44:56PM -0400, Scott Kostyshak wrote: >> On Thu, Jun 4, 2015 at 2:34 PM, Scott Kostyshak wrote: >> > On Thu, Jun 4, 2015 at 2:31 PM, Enrico Forestieri wrote: >> >> On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guil

Re: test of math previews

2015-06-04 Thread Enrico Forestieri
On Thu, Jun 04, 2015 at 02:44:56PM -0400, Scott Kostyshak wrote: > On Thu, Jun 4, 2015 at 2:34 PM, Scott Kostyshak wrote: > > On Thu, Jun 4, 2015 at 2:31 PM, Enrico Forestieri wrote: > >> On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guillaume M-M wrote: > >>> > >>> 2) an assertion violation that hap

Re: test of math previews

2015-06-04 Thread Scott Kostyshak
On Thu, Jun 4, 2015 at 2:34 PM, Scott Kostyshak wrote: > On Thu, Jun 4, 2015 at 2:31 PM, Enrico Forestieri wrote: >> On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guillaume M-M wrote: >>> >>> 2) an assertion violation that happen on copy-paste with preview (does not >>> happen without preview). This

Re: test of math previews

2015-06-04 Thread Scott Kostyshak
On Thu, Jun 4, 2015 at 2:31 PM, Enrico Forestieri wrote: > On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guillaume M-M wrote: >> >> 2) an assertion violation that happen on copy-paste with preview (does not >> happen without preview). This is a regression in master, does not happen in >> the stable br

Re: test of math previews

2015-06-04 Thread Enrico Forestieri
On Thu, Jun 04, 2015 at 06:33:28PM +0100, Guillaume M-M wrote: > > 2) an assertion violation that happen on copy-paste with preview (does not > happen without preview). This is a regression in master, does not happen in > the stable branch. I can reproduce the assertion. Bisect points at 73460423

Re: test of math previews

2015-06-04 Thread Guillaume M-M
Le 04/06/2015 17:39, Enrico Forestieri a écrit : On Thu, Jun 04, 2015 at 01:42:51AM +0100, Guillaume M-M wrote: Le 02/06/2015 23:50, Enrico Forestieri a écrit : Try using gdb for getting a backtrace after setting a breakpoint at lassert.cpp:53. If this is due to some recent change, you could t

Re: test of math previews

2015-06-04 Thread Guillaume M-M
Le 01/06/2015 23:04, Enrico Forestieri a écrit : You may be right that microtype may have been the reason why I had the impression that latex is slower than pdflatex, but this does not account for the 55s (on a good computer) during which LyX is frozen while generating the 16MB tex file. I will r

Re: test of math previews

2015-06-04 Thread Enrico Forestieri
On Thu, Jun 04, 2015 at 06:56:46PM +0200, Jürgen Spitzmüller wrote: > 2015-06-04 18:39 GMT+02:00 Enrico Forestieri : > > > Yes, I can reproduce in master. It does not occur in stable, where a > > different strategy is used, only involving the instant preview scripts. > > If I am not mistaken, it g

Re: test of math previews

2015-06-04 Thread Jürgen Spitzmüller
2015-06-04 18:39 GMT+02:00 Enrico Forestieri : > Yes, I can reproduce in master. It does not occur in stable, where a > different strategy is used, only involving the instant preview scripts. > If I am not mistaken, it goes like this. When you enter and then leave > a math inset, the generated pre

Re: test of math previews

2015-06-04 Thread Enrico Forestieri
On Thu, Jun 04, 2015 at 01:42:51AM +0100, Guillaume M-M wrote: > Le 02/06/2015 23:50, Enrico Forestieri a écrit : > > > >Try using gdb for getting a backtrace after setting a breakpoint at > >lassert.cpp:53. If this is due to some recent change, you could try > >bisetting for finding the relevant c

Re: configure.py questions

2015-06-04 Thread Jürgen Spitzmüller
2015-06-04 16:26 GMT+02:00 Richard Heck : > On 06/04/2015 03:38 AM, Jürgen Spitzmüller wrote: > > Then you might give Pandoc a try because they state that they can handle > biblatex as well. > > Interesting. I'll do. > > > The (original?) author of the program is someone I know: a philosopher a

Re: [patch] fix bug 7657 - Inkscape detection in configure.py

2015-06-04 Thread Georg Baum
Uwe Stöhr wrote: > The attached patch fixes > http://www.lyx.org/trac/ticket/7657 > for me. > > Could some pythionist please review this? First you need to explain why you use this complicated quoting, and what problem it solves. If such a quoting is really needed, then it needs to be wrapped

Re: [LyX/2.1.x] layouttranslations: Arabic update by Hatim

2015-06-04 Thread Georg Baum
Uwe Stöhr wrote: > commit 407d5bf228a8fd297aedc933b396a10e976df09b > Author: Uwe Stöhr > Date: Thu Jun 4 01:12:12 2015 +0200 > > layouttranslations: Arabic update by Hatim It is forbidden to update layouttranslations in a stable release, and if an update is done in master it must not be

Re: configure.py questions

2015-06-04 Thread Richard Heck
On 06/04/2015 03:38 AM, Jürgen Spitzmüller wrote: 2015-06-04 1:35 GMT+02:00 Uwe Stöhr >: Am 02.06.2015 um 17:22 schrieb Jürgen Spitzmüller: > I never used it, but it would certainly be a valid addition. Note that, even if Pandoc seems to handle BibT

Re: configure.py questions

2015-06-04 Thread Jürgen Spitzmüller
2015-06-04 1:35 GMT+02:00 Uwe Stöhr : > Am 02.06.2015 um 17:22 schrieb Jürgen Spitzmüller: > > > I never used it, but it would certainly be a valid addition. Note that, > >> even if Pandoc seems to handle BibTeX, htlatex is still outstanding >> because >> it supports Biblatex and biber (and it doe