On 13/08/2009 22:55, Manoj Rajagopalan wrote:
On Monday 10 August 2009 03:28:16 pm Abdelrazak Younes wrote:
On 10/08/2009 20:27, rgheck wrote:
On 08/10/2009 02:03 PM, Manoj Rajagopalan wrote:
Thanks, Richard and Vincent.
For a long time I've wished for a LaTeX rendering widget in Qt. I do
a lot of
scientific computing and I'd like my GUI's to contain label widgets that
display greek symbols etc. and what better way to do this than to have a
constructor that interprets a subset of latex commands. Eg:
QLaTeXLabel *label = new QLaTeXLabel(this, QString("\frac{E}
{\hbar\omega}"));
I'm not sure, but I'd suspect that nothing like this is terribly
likely to come directly out of the LyX code.
Well, Manoj could also simply embed a LyX work area. He just need to
convert LyX into a library and use that. We have this nice sexy widget
called EmbeddedWorkArea which is pretty straight forward to use :-)
So Manoj, if you want to cleanup the source code a tiny bit so that we
could generate a LyX dll instead of the executable, you're basically
done. And you would be able to have a full blown LyX editor inside your
app.
This is a good idea - I'll keep this on the radar. If this is possible, do you
think a certain amount of code reuse is possible between apps?
Sure, everything's possible to the man of good will :-)
just use unicode and a proper unicode fonts like the stix one. No need
for a LaTeX renderer...
Abdel.
Not just Greek symbols but fractions, superscripts, square-roots etc., i.e.,
full mathematical formulae short of numbering and cross-references etc. So I
might have to go the Inset way which Richard mentioned.
In achieving this, what should I keep in mind so that cut-and-paste to/from
LyX might work coherently?
Cut and paste from external app is currently limited to plain text and
graphics. It should not be terribly difficult to extend this to LateX
(via tex2lyx), to LyX format (via lyx2lyx) and, with a bit more work, to
html. So, if you embed a lyx work area, a clipboard in lyx format would
be best of course.
Abdel.