องค์ประกอบที่กําหนดเอง <devsite-mathjax>
ช่วยให้คุณแสดงสัญลักษณ์ทางคณิตศาสตร์ในเนื้อหา DevSite
การใช้งานทั่วไป
เพิ่มเอลิเมนต์ที่กําหนดเอง <devsite-mathjax>
ซึ่งมีแอตทริบิวต์ config
ที่ด้านบนของไฟล์ องค์ประกอบ <devsite-mathjax>
ประกอบด้วยตนเองเท่านั้นและต้องมีเพียง 1 ครั้งเท่านั้นในหน้าเว็บ
ต่อไปนี้คือตัวอย่างสมการช่องของ Einstein ของความสัมพันธ์ทั่วไปที่มีองค์ประกอบ <devsite-mathjax>
และแอตทริบิวต์ config
ที่ตั้งค่าเป็น TeX-AMS-MML_SVG
ตัวคั่น
สัญลักษณ์ทางคณิตศาสตร์จะล้อมรอบด้วยตัวคั่น และอาจแสดงแบบสแตนด์อโลนหรือแทรกในบรรทัดก็ได้
แบบยืนรีด
ทฤษฎีบทของปิทาโกรัสเหล่านี้ล้อมรอบด้วย $$
delimiters and wrapped
in a <div>
element. It is displayed on its own line.
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.
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-03-14 UTC