Re: Qt widget to display LaTeX

2006-05-22 Thread Andre Poenitz
On Fri, May 19, 2006 at 12:56:38PM +0200, Gunnar G wrote: > Hi. > Since you are using Qt for LyX, I wonder, is there an easy way of using a > (hopefully small) part of the LyX code to display LaTeX math formulas > nicely in a ordinary Qt program? There is no such widget in the LyX code, and separa

Re: Qt widget to display LaTeX

2006-05-22 Thread Andre Poenitz
On Fri, May 19, 2006 at 03:28:31PM +0200, Helge Hafting wrote: > Have a look at the code, and feel free to reuse it in other > gpl-licenced software. > > I believe lyx does something like this for previewing formulas: > 1. Generate a small latex file containing the formula, using preview.sty > 2.

Re: Qt widget to display LaTeX

2006-05-19 Thread Helge Hafting
Gunnar G wrote: Hi. Since you are using Qt for LyX, I wonder, is there an easy way of using a (hopefully small) part of the LyX code to display LaTeX math formulas nicely in a ordinary Qt program? Something like: QLyXWidget* myWidget = new QLyXWidget("\\frac{3+x}{xy}); would be great. Have

Qt widget to display LaTeX

2006-05-19 Thread Gunnar G
Hi. Since you are using Qt for LyX, I wonder, is there an easy way of using a (hopefully small) part of the LyX code to display LaTeX math formulas nicely in a ordinary Qt program? Something like: QLyXWidget* myWidget = new QLyXWidget("\\frac{3+x}{xy}); would be great.