[texhax] What has happened to ctan?
William F Hammond
hmwlfsr at yahoo.com
Mon Oct 7 22:08:19 CEST 2013
Gerd --
Given that javascript is being invoked, it would seem good also to invoke
the incantation for MathJax so that math in the descriptive area is
displayed.
For example, with the page
http://ctan.org/tex-archive/macros/latex/contrib/interval
the following diffs will make this happen:
----------
1c1
< <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
---
> <!DOCTYPE html>
18a19,30
>
> <script type="text/x-mathjax-config">
> MathJax.Hub.Config({
> extensions: ["tex2jax.js"],
> jax: ["input/TeX","output/HTML-CSS"],
> tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
> });
> </script>
> <script type="text/javascript"
> src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
> </script>
>
----------
The DOCTYPE may not be necessary. The point is that it flags HTML5 where
math is legal.
Also the first of the two script elements is being used mainly to enable
'$' for toggling in and out of TeX math. If the preferred notation
\( ... \) were used for inline math the first script element could be
dropped. If the first script element is retained, there might be a small
advantage in changing the config value in the second script -- for which I'm
not a good person to make the recommendation.
-- Bill
Email: hmwlfsr at yahoo.com
gellmu at gmail.com
https://www.facebook.com/william.f.hammond
http://www.albany.edu/~hammond/
More information about the texhax
mailing list