aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-07-29 20:45:49 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-07-29 20:45:49 -0700
commit8c2ed54e2e6819aee2bb4b948102fbab8f920d86 (patch)
treee0caedc3e308e465371f03cb64091b986180c9cc /tests
parent8d4eebaff42cfe474042a7dafaa86950640b9e82 (diff)
downloadpandoc-8c2ed54e2e6819aee2bb4b948102fbab8f920d86.tar.gz
LaTeX writer: use \(..\) instead of $..$ for inline math.
Closes #1464.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Writers/LaTeX.hs2
-rw-r--r--tests/writer.latex12
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index c32ded36d..8ce73c099 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -46,7 +46,7 @@ tests = [ testGroup "code blocks"
]
, testGroup "math"
[ "escape |" =: para (math "\\sigma|_{\\{x\\}}") =?>
- "$\\sigma|_{\\{x\\}}$"
+ "\\(\\sigma|_{\\{x\\}}\\)"
]
, testGroup "headers"
[ "unnumbered header" =:
diff --git a/tests/writer.latex b/tests/writer.latex
index bf08c7111..5428e9ad7 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -709,20 +709,20 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
\item
\cite[22-23]{smith.1899}
\item
- $2+2=4$
+ \(2+2=4\)
\item
- $x \in y$
+ \(x \in y\)
\item
- $\alpha \wedge \omega$
+ \(\alpha \wedge \omega\)
\item
- $223$
+ \(223\)
\item
- $p$-Tree
+ \(p\)-Tree
\item
Here's some display math:
\[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
\item
- 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\).
\end{itemize}
These shouldn't be math: