octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Latex interpreter via Mathjax + Qt


From: George Apostolopoulos
Subject: Re: Latex interpreter via Mathjax + Qt
Date: Tue, 12 Jan 2016 13:58:28 +0200

Thank you all for your constructive comments.

My motivation for this is actually to use octave for creating figures
for publications in scientific journals. Up to now I have used matlab to
generate eps files using the latex interpreter for axis titles and graph
labels.

I have reviewed octave's latex+ps combination which is very interesting.
However, apart from the added processing steps, I am missing the
possibility to create a single, self-contained eps file for one figure.
This is required when sending a manuscript to publishers.

So, my specifications for this project would be:
- use latex code in figure annotations (axis titles, legends, text
labels etc)
- rendering of latex on screen in the graph window
- good quality printing of a figure to eps/pdf

For the implementation the Qt graphics capabilities can be used.
It is true what Panxto writes, that mathjax will convert latex to an svg
image. However, Qt can render the svg through the QSvgRenderer class
(http://doc.qt.io/qt-4.8/qsvgrenderer.html) which is able to draw on a
QGLWidget. Thus, the rest of the toolchain would remain intact (gl2ps
etc) Of course, this will only be possible when using the qt
graphics_toolkit in octave. 

Maybe a test of qt+mathjax+openGL+gl2ps would be in order to see if all
this is possible.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]