wiki:mimetex

# mimetex Plugin

mimeTexのサイト：mimeTex

Linuxへのインストール方法：http://nlogn.ath.cx/archives/000418.html

—- plugin —- description: parses LaTex blocks author : Michael Gritsaenko email : michael.gritsaenko@gmail.com type : syntax lastupdate : 2015-05-07 compatible : depends : conflicts : similar : format, math, math2, jsmath, latex tags : math, latex, formula, mimetex downloadurl: https://github.com/MichaelGr/dokuwiki-plugin-mimeTeX/zipball/master bugtracker : https://github.com/MichaelGr/dokuwiki-plugin-mimeTeX/issues sourcerepo : https://github.com/MichaelGr/dokuwiki-plugin-mimeTeX

## Description

Plugin LaTeX for embedding science formulas into wiki markup very useful. But it has very complex installation process which associated with a number of difficulties. Therefore was developed new plugin mimeTeX. This plugin is based on the source code LaTeX (thanks to author ).

Main tasks which which were the design of this plug-in:

• simplicity means simplicity of installation (I tried hard to install and configure the plugin LaTeX for WinXP, and it never worked correctly for Win7)
• small size - the total size of additional attributes for LaTeX is just 165 Mb!

The opensource CGI module mimeTeX (having a small size and needing no additional distributives) has been selected as LaTeX parser. A few words from the mimeTeX designers:

MimeTeX, licensed under the gpl, lets you easily embed LaTeX math in your html pages. It parses a LaTeX math expression and immediately emits the corresponding gif image, rather than the usual TeX dvi. And mimeTeX is an entirely separate little program that doesn't use TeX or its fonts in any way. It's just one cgi that you put in your site's cgi-bin/ directory, with no other dependencies.

## Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

The versions of this plugin which are older than the 01-05-2015 only work on Windows

### Windows: External Requirements

This plugin requires no additional components on Windows installations.

### Linux: External Requirements

This plugin requires the mimetex command/software. For Linux it is not included in the plugins installation files and therefore need to be installed manually. This can be done by executing the following command:

 sudo apt-get install mimetex

## Examples/Usage/Syntax

Before starting you needed:

1. learn about basic semantic of LaTeX
2. install this plugin
<latex>
\frac{3}{4 \pi}   \sqrt{4 \cdot x^2   12}\\
\lim_{n \to \infty}
\sum_{k=1}^n \frac{1}{k^2} = \frac{\pi^2}{6}\\
\it{f}(x) = \frac{1}{\sqrt{x} x^2}\\
e^{i \pi} + 1 = 0\;
</latex>

which generates into next images:

## Discussion

### 2011-03-03

I'm using DokuWiki on a Stick that comes with plugin manager, acl and others useful packages. The download link doesn't work with plugin manager because github exports a .zip with no meaning for automated installation. So, as Plugin Installation Instructions said, you should download the zip with yours web browser, unzip the package (remember: extract here) and rename the created folder with “mimeTeX”. Then move the folder under %pathToYourDokuWikiStickInstallation%\DokuWikiStick\dokuwiki\lib\ . Enjoy.

Thanks for the package! I have just intalled it, so wait for feedbacks!

#### Doesn't work on DokuWiki on a Stick

it doesn't work, i don't know php programming but i know other languages, and maybe it doesn't work because i modified my windows (i see that code has \$temp=c:/temp and after it call a changedir) and/or i run dokuWiki from a local drive. Anyway the comments within the code are really good. I'm waiting (with no hurry) for a fix / hint. (actually i use ASCIIMathML plugin but, as i said, i'm waiting for this)

### 2014-11-24

I installed the plugin on a “Binky” installation without any problem the normal way, by entering the URL. In contrast to the latex plugin, where there was some issue probably related to missing pre-requisites, it worked out-of-the-box. For good measure, I also installed it on a “Ponder Stibbons” version of DopkuWikiStick, again with no problem. –Art Carlson, Max Planck Institute of Biochemistry

### 2015-05-07

Trying now to update to Hrun. No matter how I update or install the plugin, the Extension Manager tells me there is a new version 2015-05-01 available. The files contain a mixture of dates, including 2011-02-01, 04/30/2015, and 07 May 2015, so I assume I have the latest version, but the dates are screwed up. I manually changed 2011-02-01 to 2015-05-01, once in plugin.info.txt and twice in syntax.php and the new version notice went away. --Art Carlson, Max Planck Institute of Biochemistry

Sorry, my fault. I did not change the dates with my last change. I added a pull-request to get this fixed. Thanks for the information and sorry for the inconvenience. –LarsDW223

The pull-request has been merged. By updating this page right now all dates should now be on 2015-05-07. –LarsDW223

wiki/mimetex.txt · 最終更新: 2016/12/26 by N_Miya