DEV Community

nullity
nullity

Posted on • Edited on

Make math equations in Obidian bigger

I find that math equations in Obsidian are too small to see clearly.

Here are the solutions,

Change \frac to \dfrac

"d" means "display"

This is a inline fraction $\frac{x^2-3x+2}{x^2-1}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

This is a inline fraction $\dfrac{x^2-3x+2}{x^2-1}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

Change \binom to \dbinom

This is a inline binomial $\binom{n}{m}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

This is a inline binomial $\dbinom{n}{m}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

General method (applicable to all functions)

Just add \displaystyle to the front of each function

note: it's also ok to add \displaystyle to \frac or \binom.
The effect of \displaystyle\frac equals to \drac
The effect of \displaystyle\binom equals to \dbinom

1.

This is a inline sum $\sum_{k=1}^n \frac{1}{k+\frac{1}{k + \frac{1}{k}}}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

  1. Add \displaystyle before \sum
This is a inline sum $\displaystyle \sum_{k=1}^n \frac{1}{k+\frac{1}{k + \frac{1}{k}}}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

  1. Add \displaystyle before \sum and change each \frac to dfrac
This is a inline sum $\displaystyle\sum_{k=1}^n \dfrac{1}{k+\dfrac{1}{k + \dfrac{1}{k}}}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

Edit CSS snippet

mjx-math {
  font-size: 140% !important;
}
Enter fullscreen mode Exit fullscreen mode

Make it even bigger

Use \Huge, \huge, \LARGE, \Large or \large in front of the function that you want to enlarge.

This is a inline binomial $\huge \dbinom{n}{m}$ in the middle
Enter fullscreen mode Exit fullscreen mode

Image description

Note:
Obsidian use MathJax to display math equations.
You can see MathJax - Supported TeX/LaTeX commands for more information.

Katex's syntax is very similar, the above methods apply to Katex too.

ref:

Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server ⏰

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post

Top comments (0)

Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server 🏁

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay