Element niestandardowy <devsite-mathjax>
umożliwia wyświetlanie notacji matematycznej w treści DevSite.
Ogólne użycie
Dodaj element niestandardowy <devsite-mathjax>
z atrybutem config
na początku pliku. Element <devsite-mathjax>
jest autonomiczny i musi być zawarty na stronie tylko raz.
To jest przykład równań pola Einsteina z ogólną względnością z elementem <devsite-mathjax>
i atrybutem config
ustawionym na TeX-AMS-MML_SVG
.
Separatory
Notacja matematyczna jest objęta ogranicznikiem i może być wyświetlana jako samodzielna lub wbudowana.
Wersja samodzielna
Oto twierdzenie Pitagorasa otoczone $$
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.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2022-03-14 UTC.