# masamitsu-murase/redmine_wiki_gchart_formula

### Subversion checkout URL

You can clone with
or
.
LaTeX-style formula plugin for Redmine
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

 Failed to load latest commit information. lib test Jan 25, 2012 LICENSE README.textile init.rb Jan 30, 2012

# wiki_gchart_formula (LaTeX-style formula plugin for Redmine)

## Overview

• This Redmine plugin enables Redmine to render LaTeX-style formula images in Wiki.
• This plugin uses Google Chart API, so it works without any other software, such as latex or dvips.
• You can use curly braces in formula.

## How to write in Redmine Wiki

You can write formula in LaTeX style as follows:

{{latex(formula)}}

For example,

{{latex(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a})}}

is shown as .

formula can include curly braces, ‘{’ and ‘}’.

## Samples

• {{latex(\textstyle\sum_{k=1}^n k^2)}} is shown as .
• {{latex(\displaystyle\sum_{k=1}^n k^2)}} is shown as .
• {{latex(\displaystyle\sum_{k=1}^n k^3 = \left(\frac{1}{2}n(n+1)\right)^2)}} is shown as .
• {{latex(\displaystyle A=\left(\begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix}\right))}} is shown as .

## Tips

• This plugin regards the sequence ‘)}}’ as an end of the LaTeX formula, so you should write ‘) }}’ instead of ‘)}}’ to output ‘)}}’.
• Too long formula cannot be shown, because of Google Chart API restriction.
If you need to output long formula, you should consider using another plugin, such as redmine-wiki_latex_plugin.
• This plugin uses Google Chart API, so the formula you input is sent to Google.
If you are nervous about the privacy, you should use another plugin instead of this plugin.
• You can use curly braces in formula, such as {{latex(\sum_{k=1}^n k^2)}}, because this plugin does not use Redmine::WikiFormatting::Macros but has own processing method, inline_wiki_gchart_formula.
If you would like to know more, please refer to wiki_gchart_formula_patch.rb.
• class attribute, “gchart_formula”, is added to the image tag of formula.

You can use this plugin under the MIT License.

## Change Logs

Initial commit.

### Version 0.0.2

Add “title” attribute to image tag of formula.