aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-07-15 19:01:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-07-15 19:01:00 -0700
commit57a91f3b6add303ef70aa29a14a8c67123ec7c0f (patch)
tree3ec6a5f9dcb5e0c9d88d84d2599a68ee5b82a279 /README
parent8757da76b0e4c26f722ac4742689739b2b5dfb08 (diff)
downloadpandoc-57a91f3b6add303ef70aa29a14a8c67123ec7c0f.tar.gz
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.
Diffstat (limited to 'README')
-rw-r--r--README30
1 files changed, 22 insertions, 8 deletions
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 `<eq>` 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 `<img>` 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 `<img>` 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 `<img>` 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
----------