[reportlab-users] The math flowable
    Roberto Alsina 
    ralsina at netmanagers.com.ar
       
    Fri Sep 26 16:44:35 EDT 2008
    
    
  
Since I just released rst2pdf 0.9, that means the math flowable I was doing 
works :-)
It's a single small file, requires matplotlib installed:
http://code.google.com/p/rst2pdf/source/browse/trunk/rst2pdf/math_flowable.py
Given a piece of latex-like math it gives you a flowable that draws it, 
embedding all necessary TTF fonts in the process.
It also has a genImage method, so you can use it to create a PNG that you can 
then use inline in a paragraph if you have to. This is slightly buggy.
Less than 100 lines of code so how buggy can it be? ;-)
License is MIT, so it's quite liberal, I'd like to know if you use it, 
though.
-- 
 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  KDE Developer (MFCH)
 (_Y_.)' ._   ) `._`.  " -.-'  http://lateral.netmanagers.com.ar 
  _..`-'_..-_/ /-'_.'     The 6,855th most popular site of Slovenia   
(l)-'' ((i).' ((!.'       according to alexa.com (27/5/2007) 
                    
Debugging is twice as hard as writing the code in the first place. 
Therefore, if you write the code as cleverly as possible, you are, 
by definition, not smart enough to debug it. --Brian W. Kernighan
    
    
More information about the reportlab-users
mailing list