.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Jul 22, 2020 19:41 UTC.

This page was created/modified in commit a806ce5 "Add mathjax tag and description fm to equation tests" on 2018-04-01.
Markdown source of this page

Inline equations

tags: equations mathjax


Inline and one-per-line equations


For example, below in Org:

LaTeX formatted equation: \( E = -J \sum_{i=1}^N s_i s_{i+1} \)

will look like this in Hugo rendered HTML:

LaTeX formatted equation: \( E = -J \sum_{i=1}^N s_i s_{i+1 }\)

(Don’t see this in Markdown, see what it looks after Hugo has processed it.)

Here’s another example, taken from (org) LaTeX fragments.

Below in Org:

If $a^2=b$ and \( b=2 \), then the solution must be either
$$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \]

renders to:

If \(a^2=b\) and \( b=2 \), then the solution must be either \[ a=+\sqrt{2} \] or \[ a=-\sqrt{2} \]

(Note that the last two equations show up on their own lines.)

Page (Debug)

Page VariableValue
Name "Inline equations"
Title "Inline equations"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/equation-latex-frag/"
RelPermalink "/posts/equation-latex-frag/"
page.Data{} (type:page.Data)
PrevPageList following a list
PrevInSectionList following a list

Page Params (Debug)

datetime.Time 2017-07-31 00:00:00 +0000 UTC
descriptionstring "Inline and _one-per-line_ equations"
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-04-01 23:32:28 -0400 -0400
publishdatetime.Time 2017-07-31 00:00:00 +0000 UTC
tags[]string "equations" "mathjax"
titlestring "Inline equations"

File Object (Debug)

FileInfo VariableValue
UniqueID "1219ba6dbea0430c632b58c344179800"
BaseFileName "equation-latex-frag"
TranslationBaseName "equation-latex-frag"
Lang "en"
Section "posts"
LogicalName "equation-latex-frag.md"
Dir "posts/"
Ext "md"
Path "posts/equation-latex-frag.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.68.3 (commit 157669a0) .
[Test Site home | ox-hugo home]