Import custom Latex commands to notes

Hi all,

I am curious how to import custom Latex commands to obsidian notes. Since I have written some commands in Latex, and I would like to use/call them in the obsidian notes. However, I do not know how to do it. For now, we can rescope the discussion of the latex commands to only use in the math equation.

Thanks.

1 Like

Obsidian supports LaTeX math via MathJax. Please note, that MathJax doesn’t provide a full LaTeX environment. Only math-mode macros are supported.

You can add your custom macros by putting them in your Markdown document. Unlike actual TeX, however, in order for MathJax to process such definitions, they must be enclosed in math delimiters (since MathJax only processes macros in math-mode):

$\require{mhchem}$
$\newcommand{\dd}{\operatorname{d}}$
3 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.