From 57a91f3b6add303ef70aa29a14a8c67123ec7c0f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jul 2010 19:01:00 -0700 Subject: Added --webtex option for HTML math. + Added --webtex command-line option, with optional parameter. (Defaults to using google charts API.) + Added WebTeX HTMLMathMethod. + Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.) + Modified --mimetex option to use WebTeX. + Thanks to lpeterse for the idea and some of the code. --- README | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'README') diff --git a/README b/README index 33af139a4..6c3a61ca5 100644 --- a/README +++ b/README @@ -351,8 +351,8 @@ For further documentation, see the `pandoc(1)` man page. directly; this provides portability at the price of efficiency. If you plan to use math on several pages, it is much better to link to a copy of `LaTeXMathML.js`, which can be cached. (See `--jsmath`, - `--gladtex`, and `--mimetex` for alternative ways of dealing with - math in HTML.) + `--gladtex`, `--webtex`, and `--mimetex` for alternative ways of + dealing with math in HTML.) `--mathml` : causes `pandoc` to convert all TeX math to MathML. @@ -364,21 +364,29 @@ For further documentation, see the `pandoc(1)` man page. TeX math in HTML, Slidy, or S5. The *url* should point to the jsMath load script (e.g. `jsMath/easy/load.js`). If it is provided, a link to it will be included in the header of standalone HTML documents. - (See `--latexmathml`, `--mimetex`, and `--gladtex` for alternative - ways of dealing with math in HTML.) + (See `--latexmathml`, `--mimetex`, `--webtex`, and `--gladtex` for + alternative ways of dealing with math in HTML.) `--gladtex`*[=url]* : causes TeX formulas to be enclosed in `` tags in HTML, Slidy, or S5 output. This output can then be processed by [gladTeX] to produce links to images with the typeset formulas. (See `--latexmathml`, - `--jsmath`, and `--mimetex` for alternative ways of dealing with - math in HTML.) + `--jsmath`, `--webtex`, and `--mimetex` for alternative ways of + dealing with math in HTML.) `--mimetex`*[=url]* : causes TeX formulas to be replaced by `` tags linking to the [mimeTeX] CGI script, which will produce images with the typeset - formulas. (See `--latexmathml`, `--jsmath`, and `--gladtex` for alternative - ways of dealing with math in HTML.) + formulas. (See `--latexmathml`, `--jsmath`, `--webtex`, and + `--gladtex` for alternative ways of dealing with math in HTML.) + +`--webtex`*[=url]* +: causes TeX formulas to be replaced by `` tags linking to an + external service that converts TeX formulas to images. The formula + will be concatenated with the URL provided. If no URL + is specified, the Google Chart API is used. (See `--latexmathml`, + `--jsmath`, `--mimetex`, and `--gladtex` for alternative ways of + dealing with math in HTML.) `-i` or `--incremental` : causes all lists in Slidy or S5 output to be displayed incrementally by @@ -1241,6 +1249,12 @@ command-line options selected: gladtex -d myfile-images myfile.htex # produces myfile.html and images in myfile-images +6. If the `--webtex` option is used, TeX formulas will be converted + to `` tags that link to an external script that converts + formulas to images. The formula will be URL-encoded and concatenated + with the URL provided. If no URL is specified, the Google Chart + API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`). + Inline TeX ---------- -- cgit v1.2.3