Latex Templates

Overview

The template functionality is designed so that you can save bits of latex text that can be inserted into your latex document simply by clicking a button.

To add a new template, open the template section by clicking the templates link. Then enter a category for the template in the category text box. Enter the desired latex in the latex textbox.

For latex formulas, you should place the formula with {% %} brackets. This will make the formula displayable as HTML. (When it is added to a latex document, if the translate checkbox is checked, it will translate the formula to latex doc standards, i.e. surrounded by dollar signs, $ $)

Click the add button. This will create a new button with the latex displayed within the template section.

To remove a template, select the remove checkbox, and then click the desired template button.

Example

As an example, try entering the following, with category="formula"

{% \sum_i^n %}


After clicking the add button, a new category named "formula" will be added to the category drop down box (if it is not already there).

When the formula category is selected, the above formula will show up as a template button with {% \sum_i^n %} as the button label. Clicking the button will add the formula text you entered into the currently selected latex document. If the translate checkbox is checkec, it will translate the formula to

$ \sum_i^n $


That is, it will be translated from HTML style brackets to Latex document brackets.