mirror of https://github.com/zulip/zulip.git
1.5 KiB
1.5 KiB
LaTeX
{!latex-intro.md!}
Insert LaTeX formatting
Zulip's compose box has a smart LaTeX () button, which inserts contextually appropriate LaTeX formatting:
- If no text is selected, the button inserts displayed LaTeX (````math`) formatting.
- If selected text is on one line, the button inserts inline LaTeX (
$$
) formatting. - If selected text is on multiple lines, the button inserts displayed LaTeX (````math`) formatting.
{start_tabs}
{tab|via-compose-box-buttons}
{!start-composing.md!}
-
(optional) Select the text you want to format.
-
Click the LaTeX () icon at the bottom of the compose box to insert LaTeX formatting.
!!! tip ""
You can also use the **LaTeX** (<i class="zulip-icon zulip-icon-math"></i>)
icon to remove existing LaTeX formatting from the selected text.
{tab|via-markdown}
{!start-composing.md!}
- To use inline LaTeX, use double dollar signs (
$$
) around the text:
$$O(n^2)$$
To use displayed LaTeX, use triple backticks and the word math (````math`) followed by some text and triple backticks at the end:
``` math
\int_a^b f(t)\, dt = F(b) - F(a)
```
{end_tabs}
Examples
{!latex-examples.md!}