LoginSignup
0
0

More than 1 year has passed since last update.

数式の余白を設定する方法

Posted at

はじめに

v3のMathJaxで数式のmarginpaddingを設定する方法が、調べても意外と見つからなかったので書き残しておきます。

解決策

以下をHTMLのどこかに追加します。

<style>
    mjx-container { margin: 0 !important; }
    mjx-container[display="true"] { margin: 0 !important; }
</style>

[display="true"]がついていない方がinlineの方のスタイルで、[display="true"]がついている方がdisplayの方のスタイルです。

0
0
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
0
0