Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
fichiers:xml:mathml [2018/05/24 17:00] – joseph.wright | 5_fichiers:xml:mathml [2021/02/16 01:19] (Version actuelle) – Typos. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Math on the Web ====== |
- | section: Current TeX-related projects | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | # Future WWW technologies and (La)TeX | + | An earlier answer ([[5_fichiers: |
- | + | ||
- | An earlier answer | + | |
- | (['' | + | |
addresses the issue of converting existing (La)TeX documents for | addresses the issue of converting existing (La)TeX documents for | ||
- | viewing on the Web as HTML. | + | viewing on the Web as HTML. |
- | somewhat flawed: the answer explains why. | + | |
+ | Better font availability | ||
+ | that there are now several possibilities for good rendering | ||
+ | of mathematics on the web. | ||
+ | |||
+ | * Font technologies: Direct representation of mathematics in browsers was hampered by the limited range of symbols in the fonts that were available. However, all modern operating systems now include OpenType fonts with large collections of symbols and the availablity of web font technology means that page authors may specify fonts without relying on the reader having pre-installed suitable fonts. | ||
+ | |||
+ | The available OpenType math fonts are discussed in [[5_fichiers: | ||
+ | |||
+ | * Direct interpretaton of a subset of LaTeX math markup by Javascript. The speed of modern javaScript engines means that it is feasible to serve web pages that contain fragments of TeX markup that is converted in the reader' | ||
+ | |||
+ | * [[https:// | ||
- | However, things are changing, with | + | * [[https:// |
- | better font availability, | + | |
- | support | + | |
- | - Font technologies Direct representation | + | * Conversion |
- | browsers has been hampered up to now by the limited range of symbols | + | |
- | | + | |
- | | + | |
- | hitching them to alternate font face specifications for standard | + | |
- | | + | |
- | universality of the HTML so generated. | + | |
- | | + | |
- | mathematical symbols, are starting to appear. | + | |
- | [`STIX` fonts](http:// | + | |
- | available | + | |
- | (`XITS`) | + | |
- | available. | + | |
- | for using the fonts, but the [`unicode-math`](https:// | + | |
- | what is necessary under XeTeX and LuaTeX, and the fonts can of | + | |
- | course | + | |
- | - XML The core of the range of new standards is | + | |
- | XML, which provides a framework for better structured markup; | + | |
- | limited support for it has already appeared in some browsers. | + | |
- | Conversion of (La)TeX source to XML is already available | + | The [[https://www.mathjax.org/ |
- | (through TeX4ht at least), and work continues in that arena. | + | |
- | alternative, | + | |
- | are immediately Web-friendly, | + | |
- | typeset is also well advanced. | + | |
- | | + | |
- | using an XSLT stylesheet or code for an XML library, | + | |
- | and then simply using LaTeX; alternatively, | + | |
- | | + | |
- | - Direct representation of mathematics | + | |
- | MathML is a standard for representing maths on the Web; its | + | |
- | original version was distinctly limited, but version 2 of MathML | + | |
- | has had major browser support since 2002 with richness of mathematical | + | |
- | content for online purposes approaching that of TeX for print. | + | |
- | Browser support for MathML is provided by `amaya`, the | + | |
- | '' | + | |
- | including `NetScape`, `Firefox` and `Galeon`) and | + | |
- | `Internet Explorer` when equipped with a suitable plug-in | + | |
- | such as `MathPlayer`. | + | |
- | There' | + | |
- | browsers. | + | |
- | better online viewing than PDF. | + | |
- | Work to produce XHTML+MathML | + | |
- | TeX4ht and `TtH` projects for (La)TeX conversion. | + | |
- | | + | |
- | content of LaTeX `\[` & | + | |
- | '' | + | |
- | output | + | |
- | | + | |
- | as simple as incorporating: | + | |
- | ```latex | + | |
- | <script type=" | + | |
- | src=" | + | |
- | </ | + | |
- | ``` | + | |
- | into the header | + | |
- | though the [MathJax project' | + | |
- | | + | |
- | _your_ servers. | + | |
- | you could, in principle, extend it to do even more eccentric tasks. | + | |
- | An approach different from (La)TeX conversion | + | |
- | the [_GELLMU_ Project](http://www.albany.edu/~hammond/ | + | <code html> |
- | Its _article_ XML document type, which has a markup vocabulary | + | <img src="/ |
- | close to LaTeX that can be edited using LaTeX-like markup | + | </ |
- | (even though | + | ([[ctanpkg> |
- | that make both PDF (via _pdflatex_) and | + | |
- | | + | |
- | limitations of the '' | + | |
- | which have traps that can be sprung by unfettered use of (La)TeX | + | |
- | markup. | + | |
- | - Graphics | + | |
- | SVG is a standard for graphics representation on the web. | + | |
- | While the natural use is for converting existing figures, | + | |
- | representations of formulas are also possible, in place of the separate | + | |
- | bitmaps that have been used in the past (and while we wait for the | + | |
- | wider deployment of MathML). | + | |
- | Browser plug-ins, that deal with SVG are already available | ||
- | (Adobe offer one, for example). | ||
- | graphics editor [`Inkscape`](https:// | ||
- | has appeared, and has been reported to be useful for | ||
- | SVG-related work in at least one TeX-related project. | ||
- | aware that the developers of `Inkscape` have no illusions | ||
- | about being able to replace commercial software, yet& | ||
- | - Direct use of TeX markup | ||
- | Some time back, IBM developed a browser plug-in called | ||
- | TechExplorer, | ||
- | browser. | ||
- | plug-in, while still retaining its (La)TeX abilities, and was | ||
- | distributed (free for Linux and Windows platforms) by | ||
- | Integre Technical Publishing. | ||
- | The disadvantage of the TechExplorer approach is that it places the | + | ----- |
- | onus on the browser user; and however technically proficient | + | //Source:// [[faquk> |
- | _you_ are, it's never safe to assume too much of your readers. | + | |
- | An interesting alternative is | + | |
- | [MathTeX](http:// | + | |
- | on your server as a CGI script, and you use it to include | + | |
- | your TeX, in your HTML, as if it were an image: | + | |
- | ```latex | + | |
- | <img src="/ | + | |
- | ``` | + | |
- | ([`Mathtex`](https: | + | |
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||