mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] TeXmacs and HTML export


Chronological Thread 
  • From: "chu-ching huang" <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] TeXmacs and HTML export
  • Date: Tue, 24 Aug 2010 18:34:02 +0800

Hi,

If you are not satisfied the export html direct from TeXmacs. Here maybe a
solution:

1. install Mathjax: a JavaScript engine for latex/MathML that works for almost
browsers.

2. export TeXmacs source in LaTeX format;

3. Copy/Paster to a html as follows:

...
<script src="SomeWhere/MathJax.js" type="text/javascript">
MathJax.Hub.Config({jax: ["input/TeX", "output/HTML-CSS"],
delayStartupUntil: "onload"
});
</script>
...
<body>

"""LaTex Contents of here"""
</body>

4. Some modification needed, for instance:
a) tmop{} ---> text{}
b)
Equations environment can be replaces the following:

<br />
\[
begin{matrix}
.....
\end{matrix}
\]
<br />

Here is the example I made:

http://diffusion.cgu.edu.tw/moodle/mod/resource/view.php?id=499


In this demo, another javascript, jQuery, is used to simulated "fold" effect
in TeXmacs.

Enjoy,

cch





Archive powered by MHonArc 2.6.19.

Top of page