Skip to content

Commit 31af010

Browse files
authored
Merge pull request #7957 from moodyjmz/feat/latex-math-clean
Add LaTex Support
2 parents 54b4d2c + 8b7c90b commit 31af010

File tree

14 files changed

+1084
-352
lines changed

14 files changed

+1084
-352
lines changed

โ€ŽREADME.mdโ€Ž

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,29 @@
1919
- **๐Ÿ™‹ Work together:** Share and collaborate with friends and colleagues, no matter if they use Nextcloud or not!
2020
- **๐Ÿ’พ Open format:** Files are saved as [Markdown](https://en.wikipedia.org/wiki/Markdown), so you can edit them from any other text app too.
2121
- **โœŠ Strong foundation:** We use [๐Ÿˆ tiptap](https://tiptap.dev) which is based on [๐Ÿฆ‰ ProseMirror](https://prosemirror.net) โ€“ huge thanks to them!
22+
- **๐Ÿงฎ Math support:** Write mathematical formulas using LaTeX syntax with inline (`$E=mc^2$`) and display (`$$...$$`) math rendering powered by KaTeX.
2223

2324
Nextcloud Text is the default text editor since Nextcloud 17. To start editing just open an existing markdown or plaintext file or create a new one.
2425

26+
### Mathematical formulas
27+
28+
You can insert mathematical formulas using LaTeX syntax:
29+
30+
- **Inline math:** Wrap your formula with single dollar signs: `$E=mc^2$`
31+
- **Display math (block):** Wrap your formula with double dollar signs on separate lines:
32+
```
33+
$$
34+
\sum_{i=1}^n i = \frac{n(n+1)}{2}
35+
$$
36+
```
37+
**Note:** When typing in the editor, create a soft line break (`Shift+Return`) to add lines within the formula block.
38+
39+
You can also:
40+
41+
- Select text and use the math buttons in the toolbar to convert it to a formula
42+
- Click on existing formulas to edit them in a dialog
43+
- Paste markdown with math formulas to have them automatically rendered
44+
2545
## Configuration
2646
2747
The rich workspaces in the file list can be disabled either by the users in the files app settings or globally by the admin with the following occ command:

0 commit comments

Comments
ย (0)