LoginSignup
1
1

More than 1 year has passed since last update.

marpで数式を書くときの式番号とギリシャ文字の太文字化

Last updated at Posted at 2022-08-11

概要

vscodeにてmarpで数式が登場するスライドを作成しているときに

  • 式番号の書き方
  • thetaやetaなどのギリシャ文字の太文字化

がわからなかったのでメモ

前提知識

環境について

marp(in vscode)には、Math Typesettingという設定項目がある

デフォルトでkatex、他の選択肢にはmathjaxがある

記法について

自分が普段使いしているのはplatexなので下記だと思ったが違った。
(そもそもplatexでもギリシャ文字の太文字化は\mathbfじゃできないかも?)

$$
% 式番号
y = 3x \eqno(1.1)
$$
$$
% ギリシャ文字の太文字化
\mathbf{\theta}
$$

本題

綺麗にできるのはmathjaxぽい、katexはなぜか下に出力されてしまう。

katex


$$
% 式番号
\tag{1.1} y = 3x
$$
$$
% ギリシャ文字の太文字化
\bm{\theta}
$$

スクリーンショット 2022-08-11 19.17.55.png

mathjax

$$
% 式番号
\tag{1.1} y = 3x
$$
$$
% ギリシャ文字の太文字化
\boldsymbol{\theta}
$$

スクリーンショット 2022-08-11 19.16.23.png

参考リンク

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1