开发者

LaTeX type rendering with pygame

I am trying to read text with LaTeX formatting and render it using 开发者_StackOverflow社区pygame. I am a novice to pygame and any help will be appreciated.

I looked into Glyph package. The problem is that I would have to rewrite all my .txt files in Glyph formatting for them to be useful. If I try and define macros I would essentially have to build a LaTeX translator. Both these options don't seem very practical considering the number of text files I have.


You could render LaTeX via matplotlib and use these figures in PyGame as sprites.

http://matplotlib.sourceforge.net/users/usetex.html


Check out pylasem (yes, it says MathML rendering library, but it also supports a subset of Latex) or lasem itself via gobject-introspection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜