From f53fb554fe0acf88d7c697236bbd1373e78f3d83 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Wed, 13 Aug 2008 03:02:42 +0000 Subject: Support for display math; changed ASCIIMathML -> LaTeXMathML: Resolves Issue #47. + Added a DisplayMath/InlineMath selector to Math inlines. + Markdown parser yields DisplayMath for $$...$$. + LaTeX parser yields DisplayMath when appropriate. Removed mathBlock parsers, since the same effect is achieved by the math inline parsers, now that they handle display math. + Writers handle DisplayMath as appropriate for the format. + Changed -m option to use LaTeXMathML rather than ASCIIMathML. LaTeXMathML is closer to LaTeX in its display of math, and supports many non-math LaTeX environments. + Modified HTML writer to print raw TeX when LaTeXMathML is being used instead of suppressing it. + Removed ASCIIMathML files from data/ and added LaTeXMathML. + Replaced ASCIIMathML with LaTeXMathML in source files. + Modified README and pandoc man page source. + Modified web page. + Added --latexmathml option (kept --asciimathml as a synonym for backwards compatibility) + Modified tests accordingly; added new tests for display math. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1409 788f1e2b-df1e-0410-8736-df70ead52e1b --- README | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'README') diff --git a/README b/README index 9e588a4d7..73cb92f3a 100644 --- a/README +++ b/README @@ -310,27 +310,27 @@ For further documentation, see the `pandoc(1)` man page. `markdown`. It is selected automatically when the output format is `latex` or `context`.) -`-m`*[url]* or `--asciimathml`*[=url]* -: causes `pandoc` to use Peter Jipsen's [ASCIIMathML] script to display - TeX math in HTML or S5. If a local copy of `ASCIIMathML.js` is +`-m`*[url]* or `--latexmathml`*[=url]* +: causes `pandoc` to use the [LaTeXMathML] script to display + TeX math in HTML or S5. If a local copy of `LaTeXMathML.js` is available on the webserver where the page will be viewed, provide a *url* and a link will be inserted in the generated HTML or S5. If no *url* is provided, the contents of the script will be inserted 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 `ASCIIMathML.js`, which can be cached. (See `--gladtex` + a copy of `LaTeXMathML.js`, which can be cached. (See `--gladtex` and `--mimetex` for alternative ways of dealing with math in HTML.) `--gladtex`*[=url]* : causes TeX formulas to be enclosed in `` tags in HTML or S5 output. This output can then be processed by [gladTeX] to produce links to - images with the typeset formulas. (See `--asciimathml` and + images with the typeset formulas. (See `--latexmathml` 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 `--asciimathml` and `--mimetex` for alternative + formulas. (See `--latexmathml` and `--mimetex` for alternative ways of dealing with math in HTML.) `-i` or `--incremental` @@ -386,7 +386,7 @@ For further documentation, see the `pandoc(1)` man page. : prints a usage message to STDERR. [Smartypants]: http://daringfireball.net/projects/smartypants/ -[ASCIIMathML]: http://www1.chapman.edu/~jipsen/mathml/asciimath.html +[LaTeXMathML]: http://math.etsu.edu/LaTeXMathML/ [gladTeX]: http://www.math.uio.no/~martingu/gladtex/index.html [mimeTeX]: http://www.forkosh.com/mimetex.html @@ -930,11 +930,11 @@ command-line options selected: are put inside a `span` with `class="math"`, so that they may be styled differently from the surrounding text if needed. -2. If the `--asciimathml` option is used, TeX math will be displayed - between $ characters, as in LaTeX, and the [ASCIIMathML] script will +2. If the `--latexmathml` option is used, TeX math will be displayed + between $ characters, as in LaTeX, and the [LaTeXMathML] script will be used to render it as formulas. (This trick does not work in all browsers, but it works in Firefox. In browsers that do not support - ASCIIMathML, TeX math will appear verbatim between $ characters.) + LaTeXMathML, TeX math will appear verbatim between $ characters.) 3. If the `--mimetex` option is used, the [mimeTeX] CGI script will be called to generate images for each TeX formula. This should -- cgit v1.2.3