수학

<devsite-mathjax> 맞춤 요소를 사용하면 DevSite 콘텐츠에 수학 표기법을 표시할 수 있습니다.

일반 사용법

파일 상단에 config 속성이 있는 <devsite-mathjax> 맞춤 요소를 추가합니다. <devsite-mathjax> 요소는 자체 포함되어 있으며 페이지에 한 번만 포함하면 됩니다.

다음은 아인슈타인의 <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.