diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-04-25 12:33:50 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-04-25 20:30:27 -0700 |
commit | c243e5b67b0a3be6a713c6120da24e5e65cb0357 (patch) | |
tree | 9b1df6396034408f8d9fddaee974e3aec58bd87f /tests/writer.docbook | |
parent | b3669e139cf354d74579b87b07b41f6d63126c84 (diff) | |
download | pandoc-c243e5b67b0a3be6a713c6120da24e5e65cb0357.tar.gz |
Use texmath's parser in TexMath module.
* This replaces a lot of custom parser code, and expands
the tex -> unicode conversion.
* The behavior has also changed: if the whole formula can't
be converted, the whole formula is left in raw TeX.
Previously, pandoc converted parts of the formula to unicode
and left other parts in raw TeX.
* Added (but not yet exported) readTeXMath', which returns a Maybe.
* Updated tests
Diffstat (limited to 'tests/writer.docbook')
-rw-r--r-- | tests/writer.docbook | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook index f771bf4af..2d86cfe0e 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -1077,17 +1077,17 @@ Blah </listitem> <listitem> <para> - 2+2=4 + 2 + 2 = 4 </para> </listitem> <listitem> <para> - <emphasis>x</emphasis> ∈ <emphasis>y</emphasis> + <emphasis>x</emphasis> ∈ <emphasis>y</emphasis> </para> </listitem> <listitem> <para> - α ∧ ω + α ∧ ω </para> </listitem> <listitem> @@ -1103,13 +1103,13 @@ Blah <listitem> <para> Here's some display math: - \frac{<emphasis>d</emphasis>}{<emphasis>dx</emphasis>}<emphasis>f</emphasis>(<emphasis>x</emphasis>)=\lim<subscript><emphasis>h</emphasis> → 0</subscript>\frac{<emphasis>f</emphasis>(<emphasis>x</emphasis>+<emphasis>h</emphasis>)-<emphasis>f</emphasis>(<emphasis>x</emphasis>)}{<emphasis>h</emphasis>} + $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$ </para> </listitem> <listitem> <para> Here's one that has a line break in it: - α+ω × <emphasis>x</emphasis><superscript>2</superscript>. + α + ω × <emphasis>x</emphasis><superscript>2</superscript>. </para> </listitem> </itemizedlist> |