When ReSTifying the documentation, my understanding is that the tag
.. MATH::
<put your LaTeX here>
would render whatever is in
<put your LaTeX here>
as LaTeX. That's OK, I can see that the LaTeX is rendered and shows up
in the PDF version of the standard documentation (reference manual,
tutorial, etc.). The problem is that in Sage 4.1, that tag doesn't
render properly, if at all, in the HTML version of the documentation.
For example, here is a link to a screenshot of a page in the reference
manual in Sage 4.0.2:
http://sage.math.washington.edu/home/mvngu/patch/sage-ref-4.0.2.png
And here is a screenshot of the same page in Sage 4.1:
http://sage.math.washington.edu/home/mvngu/patch/sage-ref-4.1.png
This problem might be due to ticket #5799
http://trac.sagemath.org/sage_trac/ticket/5799
Can someone confirm this?
--
Regards
Minh Van Nguyen
Apparently, the jsMath library hides all display equations, even if they
are images. There's a patch at
<SNIP>
> Apparently, the jsMath library hides all display equations, even if they
> are images.
I find this funny: I can view the rendered equations. It's just that I
have to refresh my browser every second. Even at that rate, the
equation would only be displayed for a fraction of a second :-)
> There's a patch at
>
> http://trac.sagemath.org/sage_trac/ticket/6512
Thanks for looking into the problem.
Davide,
You can see this happening at
http://sagemath.org/doc/reference/sage/numerical/knapsack.html (search
for the text "must satisfy the property")
Currently, an <img class="math" ...> displays the image, but an image
inside of a <div class="math"> is deleted.
The relevant HTML is:
<p>Let <img class="math"
src="../../_images/math/423e6d866fb7dea1490a6d84e9bd08e524a8ae74.png"
alt="L = (a_1, a_2, a_3, \dots, a_n)" /> be a non-empty sequence of
non-negative integers. Then <img class="math"
src="../../_images/math/859ccf4cd60c7bc6b8fa1afc9a42dc811a826d6f.png"
alt="L" /> is said to be super-increasing if
each <img class="math"
src="../../_images/math/412787c048e28774dc63fc27db42dc52ca858de7.png"
alt="a_i" /> is strictly greater than the sum of all previous values.
That is, for each <img class="math"
src="../../_images/math/5104cf5e4b0a4dac3d89d924244871821acf1d22.png"
alt="a_i \in L" /> the sequence <img class="math"
src="../../_images/math/859ccf4cd60c7bc6b8fa1afc9a42dc811a826d6f.png"
alt="L" /> must satisfy the property</p>
<div class="math">
<p><img
src="../../_images/math/db83da90af912a511752f6af9626076764786f3b.png"
alt="a_i > \sum_{k=1}^{i-1} a_k" />
</div></p>
<p>in order to be called a super-increasing sequence, where <img
class="math"
src="../../_images/math/71b363cfed7a38259d24cb0ac71c239743efffe5.png"
alt="|L| \geq 2" />.
If <img class="math"
src="../../_images/math/859ccf4cd60c7bc6b8fa1afc9a42dc811a826d6f.png"
alt="L" /> has only one element, it is also defined to be a
super-increasing sequence.</p>
(I just noticed that the </div> and </p> tags are in the wrong order for
the <div class="math">; maybe that is part of the problem?)
Apparently, this is representative of what is now the standard python
documentation program output (so this is probably a wider concern than
just the Sage project). Is there an easy way to make jsmath look at the
alt text of images as the latex source that should be there? Ideally,
there would be a switch somewhere, maybe on the jsmath control panel,
that would tell jsmath to either leave the images alone, or to extract
and format the alt text and hide the image.
Thanks,
Jason