Bold matrices and vectors in LaTeX equation

What I’m trying to do

Hey! I would like to use bold matrices and vectors within Obisidian in a TeX equation. Coming from a TeX editor (like TeXstudio), I have the opportunity to use the package bm to enable bold matrices and vectors.

Can I use additional TeX packages in Obsidian, too?

What I already tried

Typing:

The result:

image

Obsidian uses MathJax JavaScript library to render inline and displayed LaTeX equations embedded in your documents. MathJax supports most of the standard TeX and LaTeX math syntax, as well as some AMS and other LaTeX extensions and custom macros. See MathJax TeX and LaTeX Support page for details. Please note that MathJax doesn’t provide a full LaTeX environment. Only math-mode macros are supported.

In your case you can use \boldsymbol{x} or mathbf{x}. You also can define the \bm command somewhere in your document

$$\newcommand{\bm}[1]{\boldsymbol{#1}}$$

and use it later:

$$\bm{x}$$

Also see

2 Likes

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