plugin:jsmath
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:jsmath [2011-04-02 16:08] – [Unresolved Issues] 87.152.158.235 | plugin:jsmath [2018-05-20 18:20] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== jsmath | + | ====== jsmath |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : yllohy@gmail.com | email : yllohy@gmail.com | ||
type : Syntax | type : Syntax | ||
- | lastupdate : 2010-10-13 | + | lastupdate : 2011-06-21 |
- | compatible : 2009-02-14 2010-11-07 | + | compatible : 2011-05-25 |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : math, latex, formula | + | tags : |
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker |
- | sourcerepo | + | sourcerepo : |
donationurl: | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
- | ===== User Reactions | + | ===== End-of-life |
- | "// | + | > :!: This plugin, even though it should still work, has been abandoned. It is recommended to use the excellent plugin **[[plugin:MathJax]]** instead. |
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | Install this plugin | ||
+ | |||
+ | For your convenience, | ||
+ | * [[https:// | ||
+ | * [[https://storage.googleapis.com/ | ||
===== Features ===== | ===== Features ===== | ||
Line 30: | Line 40: | ||
===== Usage ===== | ===== Usage ===== | ||
- | Once this plugin is completely installed, you can embed LaTeX code into your wiki pages. | ||
- | === Inline Math === | + | Once this plugin is installed, you can embed LaTeX code into your wiki pages. |
+ | |||
+ | ==== Inline Math ==== | ||
Each of the following will cause jsmath to display the formula inline: | Each of the following will cause jsmath to display the formula inline: | ||
< | < | ||
Line 38: | Line 50: | ||
< | < | ||
- | === Displayed Math === | + | ==== Displayed Math ==== |
Each of the following will display an equation in block format, on its own line: | Each of the following will display an equation in block format, on its own line: | ||
< | < | ||
< | < | ||
- | ===== Download | + | ===== Configuration |
- | For your convenience, | + | On the DokuWiki Configuration Settings page (available in the admin menu) you can |
- | ^ Download | [[http:// | + | - Choose to not use dollar symbols |
+ | | ||
- | ===== Installation | + | ===== (Optional) Install a local copy of the Rendering Backend |
- | To setup your DokuWiki for displaying LaTeX, you need to upload some files to your webspace and install the jsmath plugin. | + | |
- | ==== Step 1: The Rendering Backend ==== | ||
The jsmath plugin for DokuWiki does not render the LaTeX-code itself. Instead it uses a JavaScript backend that renders the code in the client' | The jsmath plugin for DokuWiki does not render the LaTeX-code itself. Instead it uses a JavaScript backend that renders the code in the client' | ||
- | * [[http:// | + | * [[http:// |
- | * [[http:// | + | * [[http:// |
+ | |||
+ | The default behaviour of the jsmath plugin is to use the MathJax CDN at [[http:// | ||
You only need to install one of those libraries. If unsure, choose MathJax. | You only need to install one of those libraries. If unsure, choose MathJax. | ||
- | Optionally, instead of downloading a local copy, you can use MathJax CDN by using this url [[http:// | + | ==== a) MathJax |
- | + | ||
- | === a) MathJax === | + | |
- | To get the cutting edge version of MathJax, | + | To get the cutting edge version of MathJax, |
git clone git:// | git clone git:// | ||
Now move the mathjax directory to your webspace. You can test your installation by going to URL/ | Now move the mathjax directory to your webspace. You can test your installation by going to URL/ | ||
- | === b) jsMath === | + | ==== b) jsMath |
Follow the [[http:// | Follow the [[http:// | ||
Line 72: | Line 84: | ||
- Optionally download the [[http:// | - Optionally download the [[http:// | ||
- Optionally install the [[http:// | - Optionally install the [[http:// | ||
- | ==== Step 2: The jsmath Plugin ==== | ||
- | - Install the jsmath plugin for DokuWiki using DokuWiki' | ||
- | - Go to the DokuWiki Configuration Settings page (available in the admin menu) and set the full URL to your jsMath or MathJax installation. This is the directory to which you installed the JavaScript library in Step 1. | ||
- | - Choose whether you want to use jsMath or MathJax. | ||
- | - Optionally choose your syntax options (e.g. if you use dollars as currency symbols). | ||
- | |||
- | **Note:** | ||
- | When trying to display latex formulas for the first time, it may help to clear the browser cache. In Firefox, just press ' | ||
- | < | ||
===== Development ===== | ===== Development ===== | ||
- | If you want to contribute to this plugin, go to the [[http:// | + | If you want to contribute to this plugin, go to the [[https:// |
===== Discussion ===== | ===== Discussion ===== | ||
- | Please report your issues to the [[http:// | + | Please report your issues to the [[https:// |
==== Backend discussion ==== | ==== Backend discussion ==== | ||
- | |||
I've just switched from jsplugin backend to MathJax one: it's **awesome** ! This plugin together MathJax makes publishing math in dokuwiki a real pleasure. And it is so easy to install both. Thank you very much ! Now that MathJax is in version 1.0.1 I think you should recommend it over jsmath now. | I've just switched from jsplugin backend to MathJax one: it's **awesome** ! This plugin together MathJax makes publishing math in dokuwiki a real pleasure. And it is so easy to install both. Thank you very much ! Now that MathJax is in version 1.0.1 I think you should recommend it over jsmath now. | ||
Line 97: | Line 100: | ||
==== Unresolved Issues ==== | ==== Unresolved Issues ==== | ||
- | |||
- | === Doesn' | ||
- | Sorry I write this without providing any information, | ||
- | My mathjax installation works, but for some reason jsmath simply won't display anything. | ||
- | |||
- | Please have a look at the source of my playground page: | ||
- | http:// | ||
=== Conflict with asciisvg plugin === | === Conflict with asciisvg plugin === | ||
Line 136: | Line 132: | ||
It would be great if there was an option on the configuration page to list extensions that should automatically be loaded. | It would be great if there was an option on the configuration page to list extensions that should automatically be loaded. | ||
+ | === Formula labels and references === | ||
+ | |||
+ | Anyone got an idea or workaround for how to label formulas and refer to or even link to them from the text? | ||
+ | |||
+ | > It's not pretty but I use a combination of [[plugin: | ||
+ | < | ||
+ | where \(\delta_{kl}\) is the Kronecker delta function. | ||
+ | <div right>< | ||
+ | \[ | ||
+ | \text{Covar}[a_j, | ||
+ | \] | ||
+ | and we find that \([C]\) is the covariance matrix. | ||
+ | <div right>< | ||
+ | \[ | ||
+ | \text{Var}[a_j]=\text{Covar}[a_j, | ||
+ | \] | ||
+ | </ | ||
+ | |||
+ | > The Mathjax people work on adding support for \label and \ref capabilities. [[https:// | ||
==== Webspace inode limit solved by MathJax CDN ==== | ==== Webspace inode limit solved by MathJax CDN ==== | ||
Some webspaces set an inode limit for the users (maximum number of files and folders) and, if you unzip the MathJax package directly on the server, it take about 36.000 inodes; this number is really high for a lot of free webspaces, then to resolve the issue you can use the cdn network kindly offered by MathJax, by putting the following url in the field " | Some webspaces set an inode limit for the users (maximum number of files and folders) and, if you unzip the MathJax package directly on the server, it take about 36.000 inodes; this number is really high for a lot of free webspaces, then to resolve the issue you can use the cdn network kindly offered by MathJax, by putting the following url in the field " | ||
< | < | ||
- |
plugin/jsmath.1301753304.txt.gz · Last modified: 2011-04-02 16:08 by 87.152.158.235