diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/writer.latex | 107 | 
1 files changed, 35 insertions, 72 deletions
| diff --git a/tests/writer.latex b/tests/writer.latex index 33c52eadd..374815f63 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -36,8 +36,8 @@  \begin{document}  \maketitle -This is a set of tests for pandoc. Most of them are adapted from -John Gruber's markdown test suite. +This is a set of tests for pandoc. Most of them are adapted from John Gruber's +markdown test suite.  \begin{center}\rule{3in}{0.4pt}\end{center} @@ -69,9 +69,9 @@ with no blank line  Here's a regular paragraph. -In Markdown 1.0.0 and earlier. Version 8. This line turns into a -list item. Because a hard-wrapped line in the middle of a paragraph -looked like a list item. +In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. +Because a hard-wrapped line in the middle of a paragraph looked like a list +item.  Here's one with a bullet. * criminey. @@ -161,13 +161,10 @@ Asterisks loose:  \begin{itemize}  \item    asterisk 1 -  \item    asterisk 2 -  \item    asterisk 3 -  \end{itemize}  Pluses tight: @@ -184,13 +181,10 @@ Pluses loose:  \begin{itemize}  \item    Plus 1 -  \item    Plus 2 -  \item    Plus 3 -  \end{itemize}  Minuses tight: @@ -207,13 +201,10 @@ Minuses loose:  \begin{itemize}  \item    Minus 1 -  \item    Minus 2 -  \item    Minus 3 -  \end{itemize}  \subsection{Ordered} @@ -242,26 +233,20 @@ Loose using tabs:  \begin{enumerate}[1.]  \item    First -  \item    Second -  \item    Third -  \end{enumerate}  and using spaces:  \begin{enumerate}[1.]  \item    One -  \item    Two -  \item    Three -  \end{enumerate}  Multiple paragraphs: @@ -269,15 +254,11 @@ Multiple paragraphs:  \item    Item 1, graf one. -  Item 1. graf two. The quick brown fox jumped over the lazy dog's -  back. - +  Item 1. graf two. The quick brown fox jumped over the lazy dog's back.  \item    Item 2. -  \item    Item 3. -  \end{enumerate}  \subsection{Nested} @@ -316,7 +297,6 @@ Same thing but with paragraphs:  \begin{enumerate}[1.]  \item    First -  \item    Second: @@ -330,24 +310,20 @@ Same thing but with paragraphs:    \end{itemize}  \item    Third -  \end{enumerate}  \subsection{Tabs and spaces}  \begin{itemize}  \item    this is a list item indented with tabs -  \item    this is a list item indented with spaces    \begin{itemize}    \item      this is an example list item indented with tabs -    \item      this is an example list item indented with spaces -    \end{itemize}  \end{itemize}  \subsection{Fancy list markers} @@ -487,13 +463,11 @@ Multiple definitions, loose:  \item[apple]  red fruit -  computer  \item[orange]  orange fruit -  bank  \end{description} @@ -503,7 +477,6 @@ Blank line after term, indented marker, alternate markers:  \item[apple]  red fruit -  computer  \item[orange] @@ -583,20 +556,17 @@ So is \textbf{\emph{this}} word.  So is \textbf{\emph{this}} word. -This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, -\verb!<html>!. +This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, \verb!<html>!.  \sout{This is \emph{strikeout}.} -Superscripts: a\textsuperscript{bc}d -a\textsuperscript{\emph{hello}} a\textsuperscript{hello~there}. +Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}} +a\textsuperscript{hello~there}. -Subscripts: H\textsubscr{2}O, H\textsubscr{23}O, -H\textsubscr{many~of~them}O. +Subscripts: H\textsubscr{2}O, H\textsubscr{23}O, H\textsubscr{many~of~them}O. -These should not be superscripts or subscripts, because of the -unescaped spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b -c\ensuremath{\sim}d. +These should not be superscripts or subscripts, because of the unescaped +spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b c\ensuremath{\sim}d.  \begin{center}\rule{3in}{0.4pt}\end{center} @@ -640,8 +610,7 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.    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: @@ -649,8 +618,8 @@ These shouldn't be math:  \item    To get the famous equation, write \verb!$e = mc^2$!.  \item -  \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if -  ``lot'' is emphasized.) +  \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is +  emphasized.)  \item    Shoes (\$20) and socks (\$5).  \item @@ -777,16 +746,15 @@ Foo \href{/url/}{biz}.  \subsection{With ampersands} -Here's a -\href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}. +Here's a \href{http://example.com/?foo=1&bar=2}{link with an ampersand in the +URL}.  Here's a link with an amersand in the link text:  \href{http://att.com/}{AT\&T}.  Here's an \href{/script?foo=1&bar=2}{inline link}. -Here's an -\href{/script?foo=1&bar=2}{inline link in pointy braces}. +Here's an \href{/script?foo=1&bar=2}{inline link in pointy braces}.  \subsection{Autolinks} @@ -830,37 +798,32 @@ Here is a movie \includegraphics{movie.jpg} icon.  \section{Footnotes} -Here is a footnote reference,% -\footnote{Here is the footnote. It can go anywhere after the footnote -reference. It need not be placed at the end of the document.} -and another.% -\footnote{Here's the long note. This one contains multiple blocks. +Here is a footnote reference,\footnote{Here is the footnote. It can go +  anywhere after the footnote reference. It need not be placed at the end of +  the document.} and another.\footnote{Here's the long note. This one contains +  multiple blocks. -Subsequent blocks are indented to show that they belong to the -footnote (as with list items). +  Subsequent blocks are indented to show that they belong to the footnote (as +  with list items). -\begin{Verbatim} +  \begin{Verbatim}    { <code> } -\end{Verbatim} -If you want, you can indent every line, but you can also be lazy -and just indent the first line of each block.} -This should \emph{not} be a footnote reference, because it contains -a space.{[}\^{}my note{]} Here is an inline note.% -\footnote{This is \emph{easier} to type. Inline notes may contain -\href{http://google.com}{links} and \verb!]! verbatim characters, -as well as {[}bracketed text{]}.} +  \end{Verbatim} +  If you want, you can indent every line, but you can also be lazy and just +  indent the first line of each block.} This should \emph{not} be a footnote +reference, because it contains a space.{[}\^{}my note{]} Here is an inline +note.\footnote{This is \emph{easier} to type. Inline notes may contain +  \href{http://google.com}{links} and \verb!]! verbatim characters, as well as +  {[}bracketed text{]}.}  \begin{quote} -Notes can go in quotes.% -\footnote{In quote.} +Notes can go in quotes.\footnote{In quote.}  \end{quote}  \begin{enumerate}[1.]  \item -  And in list items.% -  \footnote{In list.} +  And in list items.\footnote{In list.}  \end{enumerate} -This paragraph should not be part of the note, as it is not -indented. +This paragraph should not be part of the note, as it is not indented.  \end{document} | 
