plugin:mathjax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:mathjax [2016-03-18 19:13] – old revision restored (2016-03-03 21:07) - revert random edit liffiton | plugin:mathjax [2024-02-13 04:53] (current) – Mark compatible with Kaos release liffiton | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : liffiton@gmail.com | email : liffiton@gmail.com | ||
type : action, syntax | type : action, syntax | ||
- | lastupdate : 2015-06-17 | + | lastupdate : 2021-11-20 |
- | compatible : Ponder Stibbons, Rincewind, Angua, Adora Belle, Weatherwax, Binky, | + | compatible : Ponder Stibbons, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum, Kaos |
depends | depends | ||
conflicts | conflicts | ||
Line 22: | Line 22: | ||
This plugin adds [[http:// | This plugin adds [[http:// | ||
+ | |||
+ | It has been tested with MathJax version 2.7.x, the default MathJax version loaded by the plugin is 2.7.x, and all of the links to documentation here point to the v2.7 documentation. | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
- | + | ||
- | ==== Workaround for IE and Old Dokuwiki Versions ==== | + | |
- | + | ||
- | Dokuwiki versions 2012-01-25 ' | + | |
- | + | ||
- | Edit '' | + | |
- | + | ||
- | $attr[' | + | |
- | $attr[' | + | |
- | " | + | |
===== Examples/ | ===== Examples/ | ||
Line 77: | Line 69: | ||
The plugin installs with a default configuration that should work for most users. | The plugin installs with a default configuration that should work for most users. | ||
- | The URL to the MathJax script can be set in the Configuration Manager. | + | The URL to the MathJax script can be set in the Configuration Manager. |
You can host your own installation of MathJax instead, in which case you can change the URL to point to your own installation, | You can host your own installation of MathJax instead, in which case you can change the URL to point to your own installation, | ||
Line 83: | Line 75: | ||
Additionally, | Additionally, | ||
- | For more information on configuring MathJax, see [[http:// | + | For more information on configuring MathJax, see [[https:// |
+ | |||
+ | ==== Third-Party Extensions ==== | ||
+ | |||
+ | Some [[https:// | ||
+ | |||
+ | ==== AsciiMath ==== | ||
+ | |||
+ | MathJax has the ability to parse and render [[http:// | ||
+ | |||
+ | If you want to use AsciiMath, you should also enable the " | ||
==== Automatic Equation Numbering ==== | ==== Automatic Equation Numbering ==== | ||
- | MathJax 2.0 introduces [[http:// | + | MathJax 2.0 introduces [[https:// |
MathJax.Hub.Config({ | MathJax.Hub.Config({ | ||
Line 100: | Line 102: | ||
The line '' | The line '' | ||
- | See the [[http:// | + | See the [[http:// |
+ | ==== Changing default size or scale ==== | ||
+ | |||
+ | The default size of equations can be changed by adding the " | ||
+ | |||
+ | MathJax.Hub.Config({ | ||
+ | tex2jax: { | ||
+ | inlineMath: [ [" | ||
+ | displayMath: | ||
+ | processEscapes: | ||
+ | }, | ||
+ | CommonHTML: { | ||
+ | scale: 125 | ||
+ | } | ||
+ | }); | ||
===== Development ===== | ===== Development ===== | ||
Line 109: | Line 125: | ||
Alternatively, | Alternatively, | ||
+ | |||
+ | |||
+ | ===== Notes on Older Versions ===== | ||
+ | |||
+ | ==== Workaround for IE and Old Dokuwiki Versions ==== | ||
+ | |||
+ | Dokuwiki versions 2012-01-25 ' | ||
+ | |||
+ | Edit '' | ||
+ | |||
+ | $attr[' | ||
+ | $attr[' | ||
+ | " | ||
+ | |||
+ | |||
+ | ==== CDN Update - March, 2017 ==== | ||
+ | |||
+ | Until March 31, 2017, this plugin was using the MathJax CDN for loading MathJax. | ||
+ | |||
+ | The default URL from which the plugin loads MathJax has been changed to use CDNJS as the MathJax maintainers recommend. If you have not changed the URL in your configuration, | ||
+ | |||
===== FAQ ===== | ===== FAQ ===== | ||
Line 139: | Line 176: | ||
* [[http:// | * [[http:// | ||
- | * :!: Update: Do not expect too much from Mathtype. In Word 2007, simple symbols like the dot product or a hat (^) will abort the conversion to Latex. For automated batch conversion of even slightly complex math, you're screwed --- Johan | + | * __Update__: Do not expect too much from Mathtype. In Word 2007, simple symbols like the dot product or a hat (^) will abort the conversion to Latex. For automated batch conversion of even slightly complex math, you're screwed --- Johan |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 172: | Line 209: | ||
:?: Are '' | :?: Are '' | ||
- | **Answer**: [[http:// | + | **Answer**: [[http:// |
---- | ---- | ||
Line 205: | Line 242: | ||
| | ||
(taken from the [[https:// | (taken from the [[https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | :?: How to configure the MathJax plugin step by step so that we can use XyJax in DokuWiki? | ||
+ | |||
+ | The section on third-party extensions that mentions XyJax has been updated to correct the URL for the new CDN. For instructions on installing/ | ||
+ | |||
+ | (Here are the steps of installation/ | ||
+ | |||
+ | ---- | ||
+ | |||
===== Discussion ===== | ===== Discussion ===== | ||
Line 216: | Line 264: | ||
> **Printing** (via the browser '' | > **Printing** (via the browser '' | ||
- | >> The [[http:// | + | >> The [[http:// |
> **Spacing** in vertical direction around displayed equations '' | > **Spacing** in vertical direction around displayed equations '' |
plugin/mathjax.1458324816.txt.gz · Last modified: 2016-03-18 19:13 by liffiton