Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added maths examples for #478 #559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ canonifyurls = true
# If you set this value to `true`, these positions swap.
# swapPaginator = true

# Enable LaTeX math rendering? yes/no
# If false, you can enable math on a per page basis as needed.
math = true

# ---------------------
# Sidebar configuration
# ---------------------
Expand Down
18 changes: 18 additions & 0 deletions exampleSite/content/posts/Elements-showcase.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,24 @@ Interdum et malesuada fames ac ante ipsum primis in faucibus. `Sed erat diam`, b
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |

## Equations

For inline math we can wrap text in `$` like so: $f(k) = {n \choose k} p^{k} (1-p)^{n-k}$ which looks like this in the Markdown file: `$f(k) = {n \choose k} p^{k} (1-p)^{n-k}$`

Or for a equation block we can use double `$$`:

$$f(k) = {n \choose k} p^{k} (1-p)^{n-k}$$

which looks like this in the source:

`$$f(k) = {n \choose k} p^{k} (1-p)^{n-k}$$`

Here are some Greek letters:

- $\alpha$ == `$\alpha$`
- $\beta$ == `$\beta$`
- $\frac{1}{\delta^2} \times \gamma_3$ == `$\frac{1}{\delta^2} \times \gamma_3$`

## Misc Stuff - abbr, acronym, sub, sup, etc.

Lorem <sup>superscript</sup> dolor <sub>subscript</sub> amet, consectetuer adipiscing <kdb>ctrl + c</kdb>. Nullam dignissim convallis est. Quisque aliquam. <cite>cite</cite>. Nunc iaculis suscipit dui.
Expand Down