mathjax is not an option because it is JS and cannont be embedded in PDF. 
You can, in principle, generate images using google and and embed those. 
The alignment and font sizes will be a nightmare.

On Thursday, 20 June 2013 16:35:04 UTC-5, peibol wrote:
>
> Could it be feasible to use mathjax to render the latex to be put inside 
> the pdf? Or the google api to generates the image and then add it to the 
> pdf?
>
> Thanks Massimo
>
> El jueves, 20 de junio de 2013 23:00:25 UTC+2, Massimo Di Pierro escribió:
>>
>> You are right. No latex on GAE. I cannot think of any other way to render 
>> formulas in PDF without latex.
>>
>> On Thursday, 20 June 2013 12:04:18 UTC-5, peibol wrote:
>>>
>>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to