Commits

Shlomi Fish committed 7505ece

Add support for MathJax.

Thanks to Amadiro for referring me to this library which works nicely with
MathML and inside .xhtml files.

Comments (0)

Files changed (3)

 lib/htmls/The-Enemy-English-rev6.html-part
 lib/htmls/The-Enemy-rev5.html-part
 lib/make/docbook/sf-homepage-docbooks-generated.mak
+lib/MathJax
 lib/presentations/qp/Autotools/SOURCE
 lib/presentations/qp/Autotools/rendered
 lib/presentations/qp/Autotools/src/Makefile_am/sources/Makefile.am.html-for-quad-pres
 
 DOCS_COMMON_DEPS = template.wml lib/MyNavData.pm
 
-all: make-dirs docbook_targets fortunes-target latemp_targets css_targets sitemap_targets copy_fortunes site-source-install presentations_targets lc_pres_targets art_slogans_targets graham_func_pres_targets mojo_pres hhgg_convert
+all: make-dirs docbook_targets fortunes-target latemp_targets css_targets sitemap_targets copy_fortunes site-source-install presentations_targets lc_pres_targets art_slogans_targets graham_func_pres_targets mojo_pres hhgg_convert lib/MathJax/README.md mathjax_dest
 
 include lib/make/gmsl/gmsl
 
 	cd $(HTML_TUT_BASE) && (hg pull ; hg update)
 
 include deps.mak
+
+lib/MathJax/README.md :
+	cd lib && git clone git://github.com/mathjax/MathJax.git MathJax && \
+		cd MathJax && git checkout v2.1-latest
+
+MATHJAX_DEST_DIR = $(T2_DEST)/js/MathJax
+
+mathjax_dest: $(MATHJAX_DEST_DIR)/README.md
+
+$(MATHJAX_DEST_DIR)/README.md : lib/MathJax/README.md
+	cd lib && rsync -r -v --progress MathJax/ ../$(T2_DEST)/js/MathJax/
+	rm -fr $(MATHJAX_DEST_DIR)/.git
+	rm -fr $(MATHJAX_DEST_DIR)/.gitignore

t2/MathVentures/3d-outof-4d-mathml.xhtml.wml

 #include "driver.wml"
 
 <latemp_subject "Combinatorics and the art of Dungeons and Dragons" />
+<script type="text/javascript" src="$(ROOT)/js/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+</script>
 
 <p>
 I used to play “Advanced Dungeons &amp; Dragons” in the 8th and 9th grades. I