13

# Math, tables and code

## Math

Ketida uses the Latex and MathJax typesetting libraries to display mathematical functions, formulae, and equations as inline text. This StackExchange note gives a summary of supported functions and the full MathJax documentation is here. There are a number of equation editors online where you can use a visual interface to construct your mathematical function, formulae, or equation, for example the MathJax demo.

### Insert inline mathematical function, formula, or equation

Use the above webpages to construct the math using LaTex/MathJax syntax or use an online LaTex/MathJax equation editor.

In the Editor where you want the math to appear, type a single dollar sign.

Enter the math in LaTex/MathJax or copy and paste from an online editor.

Type another single dollar sign.

Hit Enter on your keyboard to go to the next line. Ketida will display your math.

### Insert mathematical function, formula, or rquation as a block

Use the above webpages to construct the math using LaTex/MathJax syntax or use an online LaTex/MathJax equation editor.

Go onto a new line in the Editor where you want the math block to appear, type two dollar signs and a space.

Enter the math in LaTex/MathJax notation.

Type another two dollar signs.

Hit Enter on your keyboard to go to the next line. Ketida will display your math centered on the page on its own line(s).

### Math example

This is an example of an inline mathematical formula entered into Ketida: `$x^2 + y^2 = z^2$`

What is displayed:

The following is an example of a block level formula:

`$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$`

What is displayed:

## Tables

To insert a table select the table icon from the toolbar, then select the number of columns and rows.

Click in any cell of the table to make “Table Options” in the toolbar active. Options include: add or delete columns and rows; delete table; and toggle header column, rows, or cells (scroll down in the Table Options menu to see all the options).

## Code

Code can be inserted inline or as a block. Code in a block is centered and will be on its own line(s). The Math Examples above were created using the inline code option and the block level code option.

To enter code:

Select the inline code or code block icon from the formatting toolbar.

Type or paste your code and then hit Enter on your keyboard.

For code that is already entered you may select the code text and then select the inline code or code block icon from the toolbar.