git.iko.soy/typeable/pandoc
on master help sign in
Modified writer tests for new Math and TeX output.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1119 788f1e2b-df1e-0410-8736-df70ead52e1b

commitb008e5d34739b06b7d020218a1d50239f887da07 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 29 Nov 2007, 08:09 (19 years ago) parent03f4a66
6 files changed+36−65
tests/writer.docbook+7−14 tests/writer.html+3−7 tests/writer.man+7−14 tests/writer.native+7−7 tests/writer.rst+2−9 tests/writer.rtf+10−14
tests/writer.docbook+7−14
@@ -883,48 +883,46 @@ These should not be escaped: \$ \\ \&gt; \[ \{
883883 <itemizedlist>
884884 <listitem>
885885 <para>
886− <literal>\cite[22-23]{smith.1899}</literal>
887886 </para>
888887 </listitem>
889888 <listitem>
890889 <para>
891− <literal>\doublespacing</literal>
892890 </para>
893891 </listitem>
894892 <listitem>
895893 <para>
896− <literal>$2+2=4$</literal>
894+ <literal>2+2=4</literal>
897895 </para>
898896 </listitem>
899897 <listitem>
900898 <para>
901− <literal>$x \in y$</literal>
899+ <literal>x \in y</literal>
902900 </para>
903901 </listitem>
904902 <listitem>
905903 <para>
906− <literal>$\alpha \wedge \omega$</literal>
904+ <literal>\alpha \wedge \omega</literal>
907905 </para>
908906 </listitem>
909907 <listitem>
910908 <para>
911− <literal>$223$</literal>
909+ <literal>223</literal>
912910 </para>
913911 </listitem>
914912 <listitem>
915913 <para>
916− <literal>$p$</literal>-Tree
914+ <literal>p</literal>-Tree
917915 </para>
918916 </listitem>
919917 <listitem>
920918 <para>
921− <literal>$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</literal>
919+ <literal>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</literal>
922920 </para>
923921 </listitem>
924922 <listitem>
925923 <para>
926924 Here's one that has a line break in it:
927− <literal>$\alpha + \omega \times x^2$</literal>.
925+ <literal>\alpha + \omega \times x^2</literal>.
928926 </para>
929927 </listitem>
930928 </itemizedlist>
@@ -954,11 +952,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
954952 Here's a LaTeX table:
955953 </para>
956954 <para>
957− <literal>\begin{tabular}{|l|l|}\hline
958−Animal &amp; Number \\ \hline
959−Dog &amp; 2 \\
960−Cat &amp; 1 \\ \hline
961−\end{tabular}</literal>
962955 </para>
963956 </section>
964957 <section>
tests/writer.html+3−7
@@ -758,9 +758,9 @@ Blah
758758 >LaTeX</h1
759759 ><ul
760760 ><li
761− >\cite[22-23]{smith.1899}</li
761+ ></li
762762 ><li
763− >\doublespacing</li
763+ ></li
764764 ><li
765765 >$2+2=4$</li
766766 ><li
@@ -797,11 +797,7 @@ Blah
797797 ><p
798798 >Here&rsquo;s a LaTeX table:</p
799799 ><p
800− >\begin{tabular}{|l|l|}\hline
801−Animal &amp; Number \\ \hline
802−Dog &amp; 2 \\
803−Cat &amp; 1 \\ \hline
804−\end{tabular}</p
800+ ></p
805801 ><hr
806802 /><h1 id="special-characters"
807803 >Special Characters</h1
tests/writer.man+7−14
@@ -574,24 +574,22 @@ Ellipses\&...and\&...and\&...\.
574574 * * * * *
575575.SH LaTeX
576576.IP \[bu] 2
577−\\cite[22-23]{smith\.1899}
578577.IP \[bu] 2
579−\\doublespacing
580578.IP \[bu] 2
581−$2+2=4$
579+2+2=4
582580.IP \[bu] 2
583−$x\ \\in\ y$
581+x\ \\in\ y
584582.IP \[bu] 2
585−$\\alpha\ \\wedge\ \\omega$
583+\\alpha\ \\wedge\ \\omega
586584.IP \[bu] 2
587−$223$
585+223
588586.IP \[bu] 2
589−$p$-Tree
587+p-Tree
590588.IP \[bu] 2
591−$\\frac{d}{dx}f(x)=\\lim_{h\\to\ 0}\\frac{f(x+h)-f(x)}{h}$
589+\\frac{d}{dx}f(x)=\\lim_{h\\to\ 0}\\frac{f(x+h)-f(x)}{h}
592590.IP \[bu] 2
593591Here's one that has a line break in it:
594−$\\alpha\ +\ \\omega\ \\times\ x^2$\.
592+\\alpha\ +\ \\omega\ \\times\ x^2\.
595593.PP
596594These shouldn't be math:
597595.IP \[bu] 2
@@ -604,11 +602,6 @@ Escaped \f[B]$\f[]: $73 \f[I]this should be emphasized\f[] 23$\.
604602.PP
605603Here's a LaTeX table:
606604.PP
607−\\begin{tabular}{|l|l|}\\hline
608−Animal\ &\ Number\ \\\\\ \\hline
609−Dog\ \ \ \ &\ 2\ \ \ \ \ \ \\\\
610−Cat\ \ \ \ &\ 1\ \ \ \ \ \ \\\\\ \\hline
611−\\end{tabular}
612605.PP
613606 * * * * *
614607.SH Special Characters
tests/writer.native+7−7
@@ -297,13 +297,13 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
297297, BulletList
298298 [ [ Plain [TeX "\\cite[22-23]{smith.1899}"] ]
299299 , [ Plain [TeX "\\doublespacing"] ]
300− , [ Plain [TeX "$2+2=4$"] ]
301− , [ Plain [TeX "$x \\in y$"] ]
302− , [ Plain [TeX "$\\alpha \\wedge \\omega$"] ]
303− , [ Plain [TeX "$223$"] ]
304− , [ Plain [TeX "$p$",Str "-",Str "Tree"] ]
305− , [ Plain [TeX "$\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}$"] ]
306− , [ Plain [Str "Here",Apostrophe,Str "s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",Space,TeX "$\\alpha + \\omega \\times x^2$",Str "."] ] ]
300+ , [ Plain [Math "2+2=4"] ]
301+ , [ Plain [Math "x \\in y"] ]
302+ , [ Plain [Math "\\alpha \\wedge \\omega"] ]
303+ , [ Plain [Math "223"] ]
304+ , [ Plain [Math "p",Str "-",Str "Tree"] ]
305+ , [ Plain [Math "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"] ]
306+ , [ Plain [Str "Here",Apostrophe,Str "s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",Space,Math "\\alpha + \\omega \\times x^2",Str "."] ] ]
307307, Para [Str "These",Space,Str "shouldn",Apostrophe,Str "t",Space,Str "be",Space,Str "math:"]
308308, BulletList
309309 [ [ Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code "$e = mc^2$",Str "."] ]
tests/writer.rst+2−9
@@ -642,8 +642,8 @@ LaTeX
642642=====
643643
644644
645−- \cite[22-23]{smith.1899}
646−- \doublespacing
645+-
646+-
647647- $2+2=4$
648648- $x \in y$
649649- $\alpha \wedge \omega$
@@ -664,14 +664,7 @@ These shouldn't be math:
664664Here's a LaTeX table:
665665
666666
667−.. raw:: latex
668667
669− \begin{tabular}{|l|l|}\hline
670− Animal & Number \\ \hline
671− Dog & 2 \\
672− Cat & 1 \\ \hline
673− \end{tabular}
674−
675668--------------
676669
677670Special Characters
tests/writer.rtf+10−14
@@ -250,25 +250,21 @@ quoted link
250250{\pard \ql \f0 \sa180 \li0 \fi0 Ellipses\u8230?and\u8230?and\u8230?.\par}
251251{\pard \qc \f0 \sa180 \li0 \fi0 \emdash\emdash\emdash\emdash\emdash\par}
252252{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 LaTeX\par}
253−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 \\cite[22-23]\{smith.1899\}\cf0 } \par}
254−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 \\doublespacing\cf0 } \par}
255−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 $2+2=4$\cf0 } \par}
256−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 $x \\in y$\cf0 } \par}
257−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 $\\alpha \\wedge \\omega$\cf0 } \par}
258−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 $223$\cf0 } \par}
259−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 $p$\cf0 } -Tree\par}
260−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 $\\frac\{d\}\{dx\}f(x)=\\lim_\{h\\to 0\}\\frac\{f(x+h)-f(x)\}\{h\}$\cf0 } \par}
261−{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Here\u8217's one that has a line break in it: {\cf1 $\\alpha + \\omega \\times x^2$\cf0 } .\sa180\par}
253+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab \par}
254+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab \par}
255+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 2+2=4\cf0 } \par}
256+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 x \\in y\cf0 } \par}
257+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 \\alpha \\wedge \\omega\cf0 } \par}
258+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 223\cf0 } \par}
259+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 p\cf0 } -Tree\par}
260+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab {\cf1 \\frac\{d\}\{dx\}f(x)=\\lim_\{h\\to 0\}\\frac\{f(x+h)-f(x)\}\{h\}\cf0 } \par}
261+{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Here\u8217's one that has a line break in it: {\cf1 \\alpha + \\omega \\times x^2\cf0 } .\sa180\par}
262262{\pard \ql \f0 \sa180 \li0 \fi0 These shouldn\u8217't be math:\par}
263263{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab To get the famous equation, write {\f1 $e = mc^2$} .\par}
264264{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab $22,000 is a {\i lot} of money. So is $34,000. (It worked if \u8220"lot\u8221" is emphasized.)\par}
265265{\pard \ql \f0 \sa0 \li360 \fi-360 \bullet \tx360\tab Escaped {\f1 $} : $73 {\i this should be emphasized} 23$.\sa180\par}
266266{\pard \ql \f0 \sa180 \li0 \fi0 Here\u8217's a LaTeX table:\par}
267−{\pard \ql \f0 \sa180 \li0 \fi0 {\cf1 \\begin\{tabular\}\{|l|l|\}\\hline
268−Animal & Number \\\\ \\hline
269−Dog & 2 \\\\
270−Cat & 1 \\\\ \\hline
271−\\end\{tabular\}\cf0 } \par}
267+{\pard \ql \f0 \sa180 \li0 \fi0 \par}
272268{\pard \qc \f0 \sa180 \li0 \fi0 \emdash\emdash\emdash\emdash\emdash\par}
273269{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 Special Characters\par}
274270{\pard \ql \f0 \sa180 \li0 \fi0 Here is some unicode:\par}