Hi,
Short version:
I have documentation (which includes mathematical and technical text) in the form of a LaTeX source, and I need to present selected portions of this to my users as context sensitive help. The solution that comes to mind for me is to render the appropriate sections on some variety of Frame on demand.
For this approach to be meaningful it’s pretty much necessary for the text to wrap naturally as most sections would cover from a few lines to about half a page on A4 paper ( i.e. circa 20 cm wide, circa 30 cm high ).
There has been discussions about doing things similar to this, but it’s a while ago and the material I have found so far can basically be divided into
1.) suggestions for hacks that provide some pretty limited functionality,
and
2.) old ideas and plans about writing ‘official’ code for wxPython to do this task well.
Is there now a good way to render LaTeX in a wxPython? If not, could you suggest alternative approaches for my particular task?
A bit more background:
The software in question is a somewhat complicated beast for physics simulations. (I’m writing some pieces of GUI for what has up until now been a pure command line application). Since the learning curve is high, we want to help new users out by giving them the option of viewing a Frame with the relevant piece of documentation when they select a field for editing. Since updating manuals can be discouraging enough to do once, it’s pretty much a requirement that the descriptions displayed in this help function should be pulled from the manual source, which is the place that will be updated as the software is developed; hence the format. Some of the sections also contain mathematical expressions that look better and are much more readable if some symbols are used rather than being described in pure text, and this is another reason something like LaTeX would be useful.
I am currently trying to show the help using the capabilities of wxmpl, following Christopher Barker 's
suggestion in the thread “Latex and wxpython”
( https://groups.google.com/group/wxpython-users/browse_thread/thread/bd56870c64c840b9?hl=en&noredirect=true&pli=1 ),
but as far as I can tell this does not seem to be suitable for more than one-liners, and adds the complications of placing the text in the right place on what is basically a plotting canvas. Notably, I have not found any way to make text wrap or otherwise fit itself to the frame without using a lot of ugly manual workarounds.
The discussion in “TeX/PDF. Was: ideas for Andrea” (https://groups.google.com/group/wxpython-users/browse_thread/thread/708579f63de00167?hl=en&noredirect=true ) seems somewhat relevant as well, but it doesn’t really offer anything I could turn in to a solution. What is the situation on viewing pdf in wxPython today?
Again, I need some help here. Do you have suggestions for handling LaTeX in wxPython? Or ideas for how to turn LaTex source into something that’s better to handle in wxPython?