On 27 April 2010 11:28, Anders Logg <[email protected]> wrote:
On Tue, Apr 27, 2010 at 10:04:03AM +0100, Garth N. Wells wrote:On 27/04/10 09:58, Kristian Oelgaard wrote: > > >On 27 April 2010 10:30, Garth N. Wells <[email protected]> wrote: >>Has anyone looked into including equations in the new documentation? I >>had a >>quick look and there appears to be no easy solution which works for both >>LaTeX and HTML. See >> >>http://docutils.sourceforge.net/FAQ.html#how-can-i-include-mathematical-equations-in-documents >> > >I see you found the .. math:: directive. I think it looks pretty good >with the png equations, the alternative is to use the jsmath extension >to render the equations, but I didn't look into how it works. > It turns out to be pretty easy. The issues was that reStructuredText doesn't support equations in a way that is independent of the output format, but Sphinx does. GarthBut we're using Sphinx so there is no problem then?
No, it should be OK. The only question is if using the jsmath rendering instead of png looks better (it's only an issue for HTML the LaTeX will always look good), but I haven't looked into getting jsmath to work yet. Kristian
-- Anders>Kristian > >>Garth >> >>_______________________________________________ >>Mailing list: https://launchpad.net/~fenics >>Post to : [email protected] >>Unsubscribe : https://launchpad.net/~fenics >>More help : https://help.launchpad.net/ListHelp >> > _______________________________________________ Mailing list: https://launchpad.net/~fenics Post to : [email protected] Unsubscribe : https://launchpad.net/~fenics More help : https://help.launchpad.net/ListHelp-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkvWrlgACgkQTuwUCDsYZdGw8gCeJkgd68aLa46VW4YKtnzE5POO dj8AoI41B9+EKdz1zIPP8/UUeWLTcxgb =znZy -----END PGP SIGNATURE-----
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mailing list: https://launchpad.net/~fenics Post to : [email protected] Unsubscribe : https://launchpad.net/~fenics More help : https://help.launchpad.net/ListHelp

