On Friday 11 September 2009 13:27:31 Florian Lindner wrote: > def fp_out(self): > """ > .. math:: > M_2 = \frac{M^2 \cdot (\kappa-1)+2}{\kappa (2 M^2-1)+1}} > > """ > k = self.f_prop.kappa > > I've activated the pngmath extension and it works for easier examples > from the sphinx doc. But the code above gives using make html: > > WARNING: inline latex u'M_2 = \x0crac{M^2 \\cdot (\\kappa-1)+2}{\ > \kappa (2 M^2-1)+1}}\n\n': latex exited with error:
You need to use raw strings, or double your backslashes. Python 2.6.2 (r262:71600, Jul 20 2009, 02:19:59) [GCC 4.4.0 20090630 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> '\frac' '\x0crac' >>> r'\frac' '\\frac' >>> -- ("\''/").__..-''"`-. . 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) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---