Does it requires pdflatex, doesn't it? I think it's not supported in GAE.

El jueves, 20 de junio de 2013 18:59:44 UTC+2, Massimo Di Pierro escribió:
>
> Why not use markmin2latex or markmin2pdf (itsuses latex inside)
>
> On Thursday, 20 June 2013 17:53:58 UTC+2, peibol wrote:
>>
>> Hi all
>>
>> I'm getting in love with web2py, but I'm just a newcomer, and need some 
>> advice. Take into account that I finally want to deploy my app on GAE (so I 
>> can't install pdflatex for example).
>>
>> 1- I have configured my views to use mathjax (in the head section). Is it 
>> the right way to proceed with markmin? Cause mathjax is cooler than the 
>> google api that produces images...
>>
>> 2- I want to produce a pdf with some math formulas. I've managed to 
>> create a pdf in this way, but I don't know how to render the latex...:
>>
>>
>> def fractions1topdf():  
>>     html=markmin2html('\( \cfrac{1}{3} + \cfrac{3}{4} = \)')
>>     class MyFPDF(FPDF, HTMLMixin):
>>         pass
>>     pdf=MyFPDF()    
>>     pdf.add_page() 
>>     pdf.set_font('Arial','B',16)    
>>     pdf.write_html(html) 
>>     response.headers['Content-Type']='application/pdf' 
>>     return pdf.output(dest='S') 
>>
>> Thanks!!!
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to