## Writing LaTeX formulas

### Content

1. Inserting a LyX formula into the Moodle answer form
2. Viewing a Moodle formula with LyX
3. Inserting special symbols

### Inserting a LyX formula into the Moodle answer form

1. Run the lyx command to start the $$\LaTeX$$ editor, then click the new document button.

2. Use the Ctrl+M shortcut to enter the math mode.

3. Type your $$\LaTeX$$ formula, for instance type a then ^ to enter in a superscript context.

4. Type 2 to complete the formula, then select it and use the Ctrl+C shortcut to put it in the clipboard.

5. Start the equation editor on Moodle.

6. Paste your formula into the equation editor with the Ctrl+V shortcut. It will be entered as a $$\LaTeX$$ formula.

7. Insert your formula into the answer form by pressing the bottom gray button.

### Viewing a Moodle formula with LyX

1. Select the formula, then use the Ctrl+C shortcut to put it in the clipboard.

2. Run the lyx command to start the $$\LaTeX$$ editor, then click the new document button.

3. Use the Ctrl+M shortcut to enter the math mode.

4. Paste your formula with the Ctrl+V shortcut.

### Inserting special symbols

1. Run the lyx command to start the $$\LaTeX$$ editor, then click the new document button.

2. Use the Ctrl+M shortcut to enter the math mode.

3. Use the bottom toolbars buttons to select the proper symbol.