Permalink
Please sign in to comment.
Browse files
Support exporting latex equation fragments
- ox-blackfriday.el updated to do the escaping using backslashes as suggested in https://gohugo.io/content-management/formats#solution > One solution is to simply escape each underscore in your math code by entering \_ instead of _. Org reference for latex fragments: http://orgmode.org/manual/LaTeX-fragments.html Add test.
- Loading branch information...
Showing
with
115 additions
and 20 deletions.
| @@ -0,0 +1,24 @@ | ||
| ++++ | ||
| +title = "Inline equations" | ||
| +date = 2017-07-31 | ||
| +tags = ["equations"] | ||
| +draft = false | ||
| ++++ | ||
| + | ||
| +Wrap the equations between `\(` and `\)`. | ||
| + | ||
| +For example, below in Org: | ||
| + | ||
| +```text | ||
| +LaTeX formatted equation: \( E = -J \sum_{i=1}^N s_i s_{i+1} \) | ||
| +``` | ||
| + | ||
| +will look like this in Hugo rendered HTML (don't see this in Markdown, | ||
| +see what it looks after Hugo has processed it). | ||
| + | ||
| +LaTeX formatted equation: \\( E = -J \sum\_{i=1}^N s\_i s\_{i+1 }\\) | ||
| + | ||
| +Here's another example similar to one in [(org) LaTeX fragments](http://orgmode.org/manual/LaTeX-fragments.html). | ||
| + | ||
| +If \\(a^2=b\\) and \\( b=2 \\), then the solution must be either | ||
| +\\(a=+\sqrt{2}\\) or \\(a=-\sqrt{2}\\). |
0 comments on commit
8da68a6