Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Add a dedicated page on how to format LaTeX.

David Rosa56c03de9270f
diff --git a/help/format-your-message-using-markdown.md b/help/format-your-message-using-markdown.md
index f16b0d7a16d..4f3f278219e 100644
--- a/help/format-your-message-using-markdown.md
+++ b/help/format-your-message-using-markdown.md
@@ -58,21 +58,10 @@ whenever you need a reminder of the formatting syntax below.
{!code-blocks-examples.md!}
## LaTeX
-~~~
-Inline: $$O(n^2)$$
-
-Displayed:
-``` math
-\int_a^b f(t)\, dt = F(b) - F(a)
-```
-~~~
-![Markdown LaTeX](/static/images/help/markdown-latex.png)
+{!latex-intro.md!}
-Zulip's LaTeX rendering is powered by [KaTeX](https://katex.org).
-Their [support table](https://katex.org/docs/support_table.html) is a
-helpful resource for checking what's supported or how to express
-something.
+{!latex-examples.md!}
## Quotes
diff --git a/help/include/latex-examples.md b/help/include/latex-examples.md
new file mode 100644
index 00000000000..6bddbdf3bc7
--- /dev/null
+++ b/help/include/latex-examples.md
@@ -0,0 +1,14 @@
+### What you type
+
+~~~
+Inline: $$O(n^2)$$
+
+Displayed:
+``` math
+\int_a^b f(t)\, dt = F(b) - F(a)
+```
+~~~
+
+### What it looks like
+
+![Markdown LaTeX](/static/images/help/markdown-latex.png)
diff --git a/help/include/latex-intro.md b/help/include/latex-intro.md
new file mode 100644
index 00000000000..7cfe0dfa7b7
--- /dev/null
+++ b/help/include/latex-intro.md
@@ -0,0 +1,4 @@
+Zulip supports math typesetting powered by [KaTeX](https://katex.org).
+Their [support table](https://katex.org/docs/support_table.html) is a
+helpful resource for checking what's supported or how to express
+something.
diff --git a/help/include/sidebar_index.md b/help/include/sidebar_index.md
index c4669f8fee5..dc714b947c5 100644
--- a/help/include/sidebar_index.md
+++ b/help/include/sidebar_index.md
@@ -66,6 +66,7 @@
* [Text emphasis](/help/text-emphasis)
* [Bulleted and numbered lists](/help/bulleted-and-numbered-lists)
* [Code blocks](/help/code-blocks)
+* [LaTeX](/help/latex)
* [Create a poll](/help/create-a-poll)
* [Start a video call](/help/start-a-call)
diff --git a/help/latex.md b/help/latex.md
new file mode 100644
index 00000000000..791b7d357eb
--- /dev/null
+++ b/help/latex.md
@@ -0,0 +1,13 @@
+# LaTeX
+
+{!latex-intro.md!}
+
+## Examples
+
+{!latex-examples.md!}
+
+## Related articles
+
+* [Message formatting](/help/format-your-message-using-markdown)
+* [Preview messages before sending](/help/preview-your-message-before-sending)
+* [Resize the compose box](/help/resize-the-compose-box)