Org writer: Use LaTeX style maths deliminators (#7196)
Org works better with LaTeX-style delimiters.
This commit is contained in:
parent
40da6c402b
commit
4371223d13
2 changed files with 9 additions and 9 deletions
|
@ -404,8 +404,8 @@ inlineToOrg (Str str) = return . literal $ escapeString str
|
|||
inlineToOrg (Math t str) = do
|
||||
modify $ \st -> st{ stHasMath = True }
|
||||
return $ if t == InlineMath
|
||||
then "$" <> literal str <> "$"
|
||||
else "$$" <> literal str <> "$$"
|
||||
then "\\(" <> literal str <> "\\)"
|
||||
else "\\[" <> literal str <> "\\]"
|
||||
inlineToOrg il@(RawInline f str)
|
||||
| isRawFormat f = return $ literal str
|
||||
| otherwise = do
|
||||
|
|
|
@ -600,14 +600,14 @@ Ellipses...and...and....
|
|||
:END:
|
||||
|
||||
- \cite[22-23]{smith.1899}
|
||||
- $2+2=4$
|
||||
- $x \in y$
|
||||
- $\alpha \wedge \omega$
|
||||
- $223$
|
||||
- $p$-Tree
|
||||
- \(2+2=4\)
|
||||
- \(x \in y\)
|
||||
- \(\alpha \wedge \omega\)
|
||||
- \(223\)
|
||||
- \(p\)-Tree
|
||||
- Here's some display math:
|
||||
$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
|
||||
- Here's one that has a line break in it: $\alpha + \omega \times x^2$.
|
||||
\[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
|
||||
- Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
|
||||
|
||||
These shouldn't be math:
|
||||
|
||||
|
|
Loading…
Reference in a new issue