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
|
inlineToOrg (Math t str) = do
|
||||||
modify $ \st -> st{ stHasMath = True }
|
modify $ \st -> st{ stHasMath = True }
|
||||||
return $ if t == InlineMath
|
return $ if t == InlineMath
|
||||||
then "$" <> literal str <> "$"
|
then "\\(" <> literal str <> "\\)"
|
||||||
else "$$" <> literal str <> "$$"
|
else "\\[" <> literal str <> "\\]"
|
||||||
inlineToOrg il@(RawInline f str)
|
inlineToOrg il@(RawInline f str)
|
||||||
| isRawFormat f = return $ literal str
|
| isRawFormat f = return $ literal str
|
||||||
| otherwise = do
|
| otherwise = do
|
||||||
|
|
|
@ -600,14 +600,14 @@ Ellipses...and...and....
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
- \cite[22-23]{smith.1899}
|
- \cite[22-23]{smith.1899}
|
||||||
- $2+2=4$
|
- \(2+2=4\)
|
||||||
- $x \in y$
|
- \(x \in y\)
|
||||||
- $\alpha \wedge \omega$
|
- \(\alpha \wedge \omega\)
|
||||||
- $223$
|
- \(223\)
|
||||||
- $p$-Tree
|
- \(p\)-Tree
|
||||||
- Here's some display math:
|
- Here's some display math:
|
||||||
$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
|
\[\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$.
|
- Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
|
||||||
|
|
||||||
These shouldn't be math:
|
These shouldn't be math:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue