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
Copy file name to clipboardExpand all lines: userguide/content/en/docs/adding-content/diagrams-and-formulae/index.md
+27-7Lines changed: 27 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,8 @@ The probability of getting \(k\) heads when flipping \(n\) coins is:
50
50
\tag*{(1)} P(E) = {n \choose k} p^k (1-p)^{n-k}
51
51
```
52
52
53
-
{{% alert title="Warning" color="warning" %}}
54
-
`math` code blocks are supported as of hugo version 0.93, using the standard syntax is possible as of hugo version 0.122.
53
+
{{% alert title="Attention" color="warning" %}}
54
+
In order to display mathematical formulae and/or chemical equations inside your page(s), you need to run hugo version 0.141.0 or above. With older hugo versions, an error is thrown.
55
55
{{% /alert %}}
56
56
57
57
{{% alert title="Tip" %}}
@@ -172,6 +172,30 @@ params:
172
172
{{< /tab >}}
173
173
{{< /tabpane >}}
174
174
175
+
By default, docsy pulls in the latest officially released version of \(\KaTeX\) / mhchem extension at build time. If that doesn't fit your needs, you can specify the wanted \(\KaTeX\) version inside your configuration file `hugo.toml`/`hugo.yaml`/`hugo.json`:
`chem` code blocks are supported as of hugo version 0.93, using the standard syntax is possible as of hugo version 0.122.
327
-
{{% /alert %}}
328
-
329
349
{{% alert title="Note" %}}
330
350
The [manual](https://mhchem.github.io/MathJax-mhchem/) for mchem’s input syntax provides in-depth information about typesetting chemical formulae and physical units using the `mhchem` tool.
331
351
{{% /alert %}}
@@ -342,7 +362,7 @@ Use of `mhchem` is not limited to the authoring of chemical equations. By using
342
362
343
363
For a complete list of options when authoring physical units, have a look at the [section](https://mhchem.github.io/MathJax-mhchem/#pu) on physical units in the `mhchem` documentation.
344
364
345
-
#### Activating rendering support for chemical formulae
365
+
#### Activating rendering support for chemical equations
0 commit comments