Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 9:56 GMT+02:00 Jürgen Spitzmüller: 2015-04-26 21:40 GMT+02:00 Jean-Marc Lasgouttes: I think it should treat tab like space. It is probably not that hard to look up all the uses of eatLine in the code. The only place I would be scared about is the parsing on .lyx files So should

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 11:11:25, schrieb Kornel Benko kor...@lyx.org Am Montag, 27. April 2015 um 01:49:32, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri wrote: Still, I would see this as a palliative and think that

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 11:59:07AM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 11:11:25, schrieb Kornel Benko kor...@lyx.org Am Montag, 27. April 2015 um 01:49:32, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri wrote:

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jean-Marc Lasgouttes
Le 27 avril 2015 09:56:37 UTC+02:00, Jürgen Spitzmüller sp...@lyx.org a écrit : 2015-04-26 21:40 GMT+02:00 Jean-Marc Lasgouttes: I think it should treat tab like space. It is probably not that hard to look up all the uses of eatLine in the code. The only place I would be scared about is the

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 10:11 GMT+02:00 Jean-Marc Lasgouttes: I am away for a week, and I have no access to the source code unfortunately. Does eatline eat spaces? It eats it in the sense that it does not ignore it. Only \r is ignored, AFAICS. Jürgen JMarc

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri for...@lyx.org pdftocairo.diff The patch fails for master with patching file lib/scripts/legacy_lyxpreview2ppm.py Hunk #4 FAILED at 233. Hunk #5 succeeded at 308 (offset -3 lines). Hunk #6 succeeded at 324 (offset -3 lines). Hunk

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote: Am Sonntag, 26. April 2015 um 23:17:24, schrieb Enrico Forestieri for...@lyx.org On Sun, Apr 26, 2015 at 08:07:47PM +0200, Kornel Benko wrote: Am Sonntag, 26. April 2015 um 16:21:51, schrieb Enrico Forestieri for...@lyx.org

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 01:49:32, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri wrote: Still, I would see this as a palliative and think that reverting the offending commit is better. Let's see what others think. Though,

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Sonntag, 26. April 2015 um 23:17:24, schrieb Enrico Forestieri for...@lyx.org On Sun, Apr 26, 2015 at 08:07:47PM +0200, Kornel Benko wrote: Am Sonntag, 26. April 2015 um 16:21:51, schrieb Enrico Forestieri for...@lyx.org On Sun, Apr 26, 2015 at 02:50:51PM +0200, Kornel Benko wrote:

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Uwe Stöhr
Am 27.04.2015 um 11:09 schrieb Jürgen Spitzmüller: I inspected the (actually not so few) uses now, and I think that getString and getDocString is the place where tabs should be replaced by blanks. Doing it in eatLine breaks parsing of LANGUAGES. See attached patch. Opinions? Hi Jürgen,

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jürgen Spitzmüller
2015-04-26 21:40 GMT+02:00 Jean-Marc Lasgouttes: I think it should treat tab like space. It is probably not that hard to look up all the uses of eatLine in the code. The only place I would be scared about is the parsing on .lyx files So should eatLine itself care about the \t - blank

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 10:41:20, schrieb LyX Ticket Tracker t...@lyx.org #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default ---+ Reporter: sriggs | Owner: lasgouttes Type: defect

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 16:14:09, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri for...@lyx.org pdftocairo.diff The patch fails for master with You

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 12:48:36PM +0200, Enrico Forestieri wrote: On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote: Sorry, my fault. The patch is working in case of lualatex (and non-tex-fonts), but not for pdflatex. The standard answer is: if you use ERT, you are on your

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri for...@lyx.org pdftocairo.diff The patch fails for master with You are trying to apply the patch to the stable branch, rather than master. -- Enrico

Re: Behavior of second preview after error

2015-04-27 Thread Scott Kostyshak
On Sat, Apr 25, 2015 at 6:17 PM, Richard Heck rgh...@lyx.org wrote: On 04/24/2015 11:52 PM, Scott Kostyshak wrote: Suppose there is an error during LaTeX compilation, and then the user immediate previews again. We should show the same error again. This doesn't happen since adding a show

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 04:40:26PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 16:14:09, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 16:38:06, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 12:48:36PM +0200, Enrico Forestieri wrote: On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote: Sorry, my fault. The patch is working in case of lualatex (and

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 17:38:43, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 04:40:26PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 16:14:09, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote:

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 01:11:34AM +0200, Enrico Forestieri wrote: On Mon, Apr 27, 2015 at 01:00:57AM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 10:13:47, schrieb aparsloe apars...@clear.net.nz On 27/04/2015 9:17 a.m., Enrico Forestieri wrote: In principle, I would

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri for...@lyx.org commit 691fdea346eb5643bff3f84017629d966a90af05 Author: Enrico Forestieri for...@lyx.org Date: Mon Apr 27 17:22:25 2015 +0200 Try hard to obtain an instant preview. When the dvipng route is

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 1:08 GMT+02:00 Enrico Forestieri: The attached patch against master implements those ideas. Now the pdf generated by pdflatex contains vector fonts, so that the preview of math and text snippets is much improved. I would go with lmodern rather than with ae[compl], since the former

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri for...@lyx.org commit 691fdea346eb5643bff3f84017629d966a90af05 Author: Enrico Forestieri for...@lyx.org Date: Mon Apr 27 17:22:25 2015 +0200 Try hard

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 18:48 GMT+02:00 Enrico Forestieri: I attach here a document with a preview and what I obtain with ghostscript and pdftocairo. I think the results from the latter are much better. As regards speed, yes, only if you have a document with some hundreds of equations it becomes

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 06:06:48PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:38:43, schrieb Enrico Forestieri for...@lyx.org What about speed of conversion and image quality? Make sure you have pdftocairo and epstopdf. I had both already installed. pdftocairo in

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 17:41:34, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 01:11:34AM +0200, Enrico Forestieri wrote: On Mon, Apr 27, 2015 at 01:00:57AM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 10:13:47, schrieb aparsloe

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:24:17PM +0200, Kornel Benko wrote: This file is also a good check for lyx2lyx. I can open it with lyx2.0, but neither with lyx2.1 nor with lyx2.2. I think it is simply a problem with mail transfer. I am attaching here a gzipped version to force the mailer to base64

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:28:09PM +0200, Jürgen Spitzmüller wrote: 2015-04-27 19:14 GMT+02:00 Enrico Forestieri: I discarded lmodern simply because I thought it is not a package that is installed by default. \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{\usepackage{ae,aecomp}}

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:33:49PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 19:40:03, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 07:24:17PM +0200, Kornel Benko wrote: This file is also a good check for lyx2lyx. I can open it with lyx2.0, but neither with lyx2.1 nor with lyx2.2. I think it is simply a problem

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:00:40PM +0200, Jürgen Spitzmüller wrote: 2015-04-27 1:08 GMT+02:00 Enrico Forestieri: The attached patch against master implements those ideas. Now the pdf generated by pdflatex contains vector fonts, so that the preview of math and text snippets is much

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 19:14 GMT+02:00 Enrico Forestieri: I discarded lmodern simply because I thought it is not a package that is installed by default. \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{\usepackage{ae,aecomp}} After all, we are talking about previews here. Now, for math previews there

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 18:48:46, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 06:06:48PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:38:43, schrieb Enrico Forestieri for...@lyx.org What about speed of conversion and image quality? Make sure

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri for...@lyx.org commit 691fdea346eb5643bff3f84017629d966a90af05 Author:

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri for...@lyx.org commit 691fdea346eb5643bff3f84017629d966a90af05 Author:

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:36:31PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri for...@lyx.org On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jürgen Spitzmüller
2015-04-26 21:40 GMT+02:00 Jean-Marc Lasgouttes: > I think it should treat tab like space. It is probably not that hard to > look up all the uses of eatLine in the code. The only place I would be > scared about is the parsing on .lyx files > So should eatLine itself care about the \t -> blank

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 9:56 GMT+02:00 Jürgen Spitzmüller: > 2015-04-26 21:40 GMT+02:00 Jean-Marc Lasgouttes: > >> I think it should treat tab like space. It is probably not that hard to >> look up all the uses of eatLine in the code. The only place I would be >> scared about is the parsing on .lyx files >> >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 01:49:32, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri wrote: > > > > > > Still, I would see this as a palliative and think that reverting the > > > > offending commit is better. Let's see what others think.

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri > > pdftocairo.diff The patch fails for master with patching file lib/scripts/legacy_lyxpreview2ppm.py Hunk #4 FAILED at 233. Hunk #5 succeeded at 308 (offset -3 lines). Hunk #6 succeeded at 324 (offset -3 lines).

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jean-Marc Lasgouttes
Le 27 avril 2015 09:56:37 UTC+02:00, "Jürgen Spitzmüller" a écrit : >2015-04-26 21:40 GMT+02:00 Jean-Marc Lasgouttes: > >> I think it should treat tab like space. It is probably not that hard >to >> look up all the uses of eatLine in the code. The only place I would >be >> scared

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Sonntag, 26. April 2015 um 23:17:24, schrieb Enrico Forestieri > On Sun, Apr 26, 2015 at 08:07:47PM +0200, Kornel Benko wrote: > > Am Sonntag, 26. April 2015 um 16:21:51, schrieb Enrico Forestieri > > > > > On Sun, Apr 26, 2015 at 02:50:51PM +0200, Kornel

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 10:11 GMT+02:00 Jean-Marc Lasgouttes: > I am away for a week, and I have no access to the source code > unfortunately. > Does eatline eat spaces? > It eats it in the sense that it does not ignore it. Only \r is ignored, AFAICS. Jürgen > > JMarc >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 11:11:25, schrieb Kornel Benko > Am Montag, 27. April 2015 um 01:49:32, schrieb Enrico Forestieri > > > On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri wrote: > > > > > > > > Still, I would see this as a palliative and

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 11:59:07AM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 11:11:25, schrieb Kornel Benko > > Am Montag, 27. April 2015 um 01:49:32, schrieb Enrico Forestieri > > > > > On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote: > Am Sonntag, 26. April 2015 um 23:17:24, schrieb Enrico Forestieri > > > On Sun, Apr 26, 2015 at 08:07:47PM +0200, Kornel Benko wrote: > > > Am Sonntag, 26. April 2015 um 16:21:51, schrieb Enrico Forestieri > > >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 10:41:20, schrieb LyX Ticket Tracker > #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default > ---+ > Reporter: sriggs | Owner: lasgouttes > Type: defect

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri > > > > > pdftocairo.diff > > The patch fails for master with You are trying to apply the patch to the stable branch, rather than master. --

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 12:48:36PM +0200, Enrico Forestieri wrote: > On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote: > > > Sorry, my fault. The patch is working in case of lualatex (and > > non-tex-fonts), > > but not for pdflatex. > > The standard answer is: if you use ERT, you

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 16:14:09, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote: > > > Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri > > > > > > > > pdftocairo.diff > > > > The patch fails for

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 16:38:06, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 12:48:36PM +0200, Enrico Forestieri wrote: > > On Mon, Apr 27, 2015 at 11:40:13AM +0200, Kornel Benko wrote: > > > > > Sorry, my fault. The patch is working in case of lualatex (and > > >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 04:40:26PM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 16:14:09, schrieb Enrico Forestieri > > > On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel Benko wrote: > > > > > Am Montag, 27. April 2015 um 01:08:46, schrieb Enrico Forestieri > > >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 01:11:34AM +0200, Enrico Forestieri wrote: > On Mon, Apr 27, 2015 at 01:00:57AM +0200, Kornel Benko wrote: > > > Am Montag, 27. April 2015 um 10:13:47, schrieb aparsloe > > > > > On 27/04/2015 9:17 a.m., Enrico Forestieri wrote: > > > > In

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 17:38:43, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 04:40:26PM +0200, Kornel Benko wrote: > > > Am Montag, 27. April 2015 um 16:14:09, schrieb Enrico Forestieri > > > > > On Mon, Apr 27, 2015 at 11:24:58AM +0200, Kornel

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 17:41:34, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 01:11:34AM +0200, Enrico Forestieri wrote: > > > On Mon, Apr 27, 2015 at 01:00:57AM +0200, Kornel Benko wrote: > > > > > Am Montag, 27. April 2015 um 10:13:47, schrieb aparsloe > > >

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > commit 691fdea346eb5643bff3f84017629d966a90af05 > Author: Enrico Forestieri > Date: Mon Apr 27 17:22:25 2015 +0200 > > Try hard to obtain an instant preview. > > When the dvipng

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 06:06:48PM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 17:38:43, schrieb Enrico Forestieri > > > > > What about speed of conversion and image quality? > > Make sure you have pdftocairo and epstopdf. > > > > I had both already installed. >

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > > > commit 691fdea346eb5643bff3f84017629d966a90af05 > > Author: Enrico Forestieri > > Date: Mon Apr 27 17:22:25 2015 +0200 > > >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 1:08 GMT+02:00 Enrico Forestieri: > The attached patch against master implements those ideas. Now the pdf > generated by pdflatex contains vector fonts, so that the preview of > math and text snippets is much improved. I would go with lmodern rather than with ae[compl], since the

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 18:48 GMT+02:00 Enrico Forestieri: > I attach here a document with a preview and what I obtain with ghostscript > and pdftocairo. I think the results from the latter are much better. > As regards speed, yes, only if you have a document with some hundreds of > equations it becomes

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:00:40PM +0200, Jürgen Spitzmüller wrote: > 2015-04-27 1:08 GMT+02:00 Enrico Forestieri: > > > The attached patch against master implements those ideas. Now the pdf > > generated by pdflatex contains vector fonts, so that the preview of > > math and text snippets is

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 18:48:46, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 06:06:48PM +0200, Kornel Benko wrote: > > Am Montag, 27. April 2015 um 17:38:43, schrieb Enrico Forestieri > > > > > > > > What about speed of conversion and image

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Jürgen Spitzmüller
2015-04-27 19:14 GMT+02:00 Enrico Forestieri: > I discarded lmodern simply because I thought it is not a package that is > installed by default. \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{\usepackage{ae,aecomp}} > After all, we are talking about previews here. > Now, for math previews

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: > > > Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > > > > > commit 691fdea346eb5643bff3f84017629d966a90af05 > >

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: > > > Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > > > > > commit 691fdea346eb5643bff3f84017629d966a90af05 > >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:24:17PM +0200, Kornel Benko wrote: > > This file is also a good check for lyx2lyx. I can open it with lyx2.0, but > neither with lyx2.1 nor with lyx2.2. I think it is simply a problem with mail transfer. I am attaching here a gzipped version to force the mailer to

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:28:09PM +0200, Jürgen Spitzmüller wrote: > 2015-04-27 19:14 GMT+02:00 Enrico Forestieri: > > > I discarded lmodern simply because I thought it is not a package that is > > installed by default. > > >

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:33:49PM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri > > > On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: > > > > > Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > > >

Re: #9371: Math Preview doesn’t work in LuaTeX and XeTeX output modes by default

2015-04-27 Thread Kornel Benko
Am Montag, 27. April 2015 um 19:40:03, schrieb Enrico Forestieri > On Mon, Apr 27, 2015 at 07:24:17PM +0200, Kornel Benko wrote: > > > > This file is also a good check for lyx2lyx. I can open it with lyx2.0, but > > neither with lyx2.1 nor with lyx2.2. > > I think it is simply

Re: [LyX/master] Try hard to obtain an instant preview.

2015-04-27 Thread Enrico Forestieri
On Mon, Apr 27, 2015 at 07:36:31PM +0200, Kornel Benko wrote: > Am Montag, 27. April 2015 um 19:00:38, schrieb Enrico Forestieri > > > On Mon, Apr 27, 2015 at 06:13:58PM +0200, Kornel Benko wrote: > > > > > Am Montag, 27. April 2015 um 17:28:37, schrieb Enrico Forestieri > > >

Re: [LyX/master] pdfcomment.module: uniform whitespace

2015-04-27 Thread Uwe Stöhr
Am 27.04.2015 um 11:09 schrieb Jürgen Spitzmüller: I inspected the (actually not so few) uses now, and I think that getString and getDocString is the place where tabs should be replaced by blanks. Doing it in eatLine breaks parsing of LANGUAGES. See attached patch. Opinions? Hi Jürgen,

Re: Behavior of second preview after error

2015-04-27 Thread Scott Kostyshak
On Sat, Apr 25, 2015 at 6:17 PM, Richard Heck wrote: > On 04/24/2015 11:52 PM, Scott Kostyshak wrote: >> >> Suppose there is an error during LaTeX compilation, and then the user >> immediate previews again. We should show the same error again. >> >> This doesn't happen since