You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: enable equation numbering in MathJax (#1520)
If you place your equations inside $$\begin{equation}...\end{equation}$$
you will get MathJax equation numbering. As described here:
https://docs.mathjax.org/en/latest/input/tex/eqnumbers.html
BREAKING CHANGES: if you used \begin{equation} inside $$ you will
get equation numbering which was not previously present.
Having said that, the key `author` can also identify multiple entries.
74
73
75
74
> The benefit of reading the author information from the file `_data/authors.yml`{: .filepath } is that the page will have the meta tag `twitter:creator`, which enriches the [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started#card-and-content-attribution) and is good for SEO.
@@ -107,9 +106,11 @@ math: true
107
106
---
108
107
```
109
108
110
-
After enabling the mathematical feature, you can add math equations with the following syntax:
109
+
After enabling the mathematical feature, you can add math equations with the following syntax:
111
110
112
111
- **Block math** should be added with `$$ math $$` with **mandatory** blank lines before and after `$$`
112
+
- **Inserting equation numbering** should be added with `$$\begin{equation} math \end{equation}$$`
113
+
- **Referencing equation numbering** should be done with `\label{eq:label_name}` in the equation block and `\eqref{eq:label_name}` inline with text (see example below)
113
114
- **Inline math** (in lines) should be added with `$$ math $$` without any blank line before or after `$$`
114
115
- **Inline math** (in lists) should be added with `\$$ math $$`
115
116
@@ -120,6 +121,17 @@ $$
120
121
LaTeX_math_expression
121
122
$$
122
123
124
+
<!-- Equation numbering, keep all blank lines -->
125
+
126
+
$$
127
+
\begin{equation}
128
+
LaTeX_math_expression
129
+
\label{eq:label_name}
130
+
\end{equation}
131
+
$$
132
+
133
+
Can be referenced as \eqref{eq:label_name}.
134
+
123
135
<!-- Inline math in lines, NO blank lines -->
124
136
125
137
"Lorem ipsum dolor sit amet, $$ LaTeX_math_expression $$ consectetur adipiscing elit."
@@ -243,7 +255,7 @@ For instance, when using images:
243
255
The parsing result will automatically add the CDN prefix `https://cdn.com` before the image path:
Note that the [`img_path`](#image-path) can also be passed to the preview image, that is, when it has been set, the attribute `path` only needs the image file name.
300
+
Note that the [`img_path`](#image-path) can also be passed to the preview image, that is, when it has been set, the attribute `path` only needs the image file name.
289
301
290
302
For simple use, you can also just use `image` to define the path.
291
303
@@ -420,6 +432,7 @@ You can embed a video with the following syntax:
420
432
```liquid
421
433
{% include embed/{Platform}.html id='{ID}' %}
422
434
```
435
+
423
436
Where `Platform` is the lowercase of the platform name, and `ID` is the video ID.
424
437
425
438
The following table shows how to get the two parameters we need in a given video URL, and you can also know the currently supported video platforms.
0 commit comments