# how to center latex formulas and mermaid diagrams?

**URL:** https://community.silverbullet.md/t/how-to-center-latex-formulas-and-mermaid-diagrams/3018
**Category:** Tricks & Techniques
**Created:** [August 13, 2025, 5:21am UTC](https://community.silverbullet.md/t/how-to-center-latex-formulas-and-mermaid-diagrams/3018 "2025-08-13T05:21:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [August 13, 2025, 2:33pm UTC](https://community.silverbullet.md/t/how-to-center-latex-formulas-and-mermaid-diagrams/3018/2 "2025-08-13T14:33:24Z")

</div>

For the katex plug you can add

```lua
config.set {
  katex = {
    displayMode = true
  }
}

```

to you config, although [this script](https://community.silverbullet.md/t/mathematical-expressions/421/14) is probably the more ergonomic approach compared to the katex plug.

Don’t know about mermaid tho.

---

_[View the full topic](https://community.silverbullet.md/t/how-to-center-latex-formulas-and-mermaid-diagrams/3018)._
