แมทแจ็กซ์

องค์ประกอบที่กําหนดเอง <devsite-mathjax> ช่วยให้คุณแสดงสัญลักษณ์ทางคณิตศาสตร์ในเนื้อหา DevSite

การใช้งานทั่วไป

เพิ่มเอลิเมนต์ที่กําหนดเอง <devsite-mathjax> ซึ่งมีแอตทริบิวต์ config ที่ด้านบนของไฟล์ องค์ประกอบ <devsite-mathjax> ประกอบด้วยตนเองเท่านั้นและต้องมีเพียง 1 ครั้งเท่านั้นในหน้าเว็บ

ต่อไปนี้คือตัวอย่างสมการช่องของ Einstein ของความสัมพันธ์ทั่วไปที่มีองค์ประกอบ <devsite-mathjax> และแอตทริบิวต์ config ที่ตั้งค่าเป็น TeX-AMS-MML_SVG

$$ R_{\mu\nu}-\frac{1}{2}Rg_{\mu\nu}+\Lambda{g_{\mu\nu}} = \frac{8\pi{G}}{c^4}{T_{\mu\nu}} $$

ตัวคั่น

สัญลักษณ์ทางคณิตศาสตร์จะล้อมรอบด้วยตัวคั่น และอาจแสดงแบบสแตนด์อโลนหรือแทรกในบรรทัดก็ได้

แบบยืนรีด

ทฤษฎีบทของปิทาโกรัสเหล่านี้ล้อมรอบด้วย $$ delimiters and wrapped in a <div> element. It is displayed on its own line.

$$ a^2 + b^2 = c^2 $$

The following Pythagorean theorem is surrounded by \\[ and \\] delimiters and isn't wrapped in a <div> element. It is displayed on its own line.

\[ a^2 + b^2 = c^2 \]

The following Pythagorean theorem is surrounded by \[ and \] delimiters and is wrapped in a <div> element. It is displayed on its own line.

\[ a^2 + b^2 = c^2 \]

Inline

This inline equation of the area of a circle $ A = \pi{r^2} $ is displayed in this Markdown paragraph by using $ delimiters.

This inline equation of a summation expression \( \sum_{i=1}^n X_i \) is displayed in this Markdown paragraph by using \\( and \\) delimiters.

This inline equation of a straight line \(y=mx+b\) is displayed in this HTML paragraph by using \( and \) delimiters.