1\documentclass[]{article}
3\usepackage{amssymb,amsmath}
4\usepackage{ifxetex,ifluatex}
5\usepackage{fixltx2e} % provides \textsubscript
6\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
7 \usepackage[T1]{fontenc}
8 \usepackage[utf8]{inputenc}
9\else % if luatex or xelatex
12 \usepackage{xltxtra,xunicode}
16 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
19% use upquote if available, for straight quotes in verbatim environments
20\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
21% use microtype if available
22\IfFileExists{microtype.sty}{%
24\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
27 \usepackage[setpagesize=false, % page size defined by xetex
28 unicode=false, % unicode breaks when used with xetex
31 \usepackage[unicode=true]{hyperref}
33\hypersetup{breaklinks=true,
35 pdfauthor={John MacFarlane; Anonymous},
36 pdftitle={Pandoc Test Suite},
42\urlstyle{same} % don't use monospace font for urls
45\usepackage{graphicx,grffile}
47\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
48\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
50% Scale images if necessary, so that they will not overflow the page
51% margins by default, and it is still possible to overwrite the defaults
52% using explicit options in \includegraphics[width, height, ...]{}
53\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
54\usepackage[normalem]{ulem}
55% avoid problems with \sout in headers with hyperref:
56\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
57\setlength{\parindent}{0pt}
58\setlength{\parskip}{6pt plus 2pt minus 1pt}
59\setlength{\emergencystretch}{3em} % prevent overfull lines
60\providecommand{\tightlist}{%
61 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
62\setcounter{secnumdepth}{0}
63\VerbatimFootnotes % allows verbatim text in footnotes
65\title{Pandoc Test Suite}
66\author{John MacFarlane \and Anonymous}
69% Redefines (sub)paragraphs to behave more like sections
70\ifx\paragraph\undefined\else
71\let\oldparagraph\paragraph
72\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
74\ifx\subparagraph\undefined\else
75\let\oldsubparagraph\subparagraph
76\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
82This is a set of tests for pandoc. Most of them are adapted from John Gruber's
85\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
87\section{Headers}\label{headers}
89\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
90link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}
92\subsubsection{\texorpdfstring{Level 3 with
93\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}
95\paragraph{Level 4}\label{level-4}
97\subparagraph{Level 5}\label{level-5}
99\section{Level 1}\label{level-1}
101\subsection{\texorpdfstring{Level 2 with
102\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}
104\subsubsection{Level 3}\label{level-3}
108\subsection{Level 2}\label{level-2}
112\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
114\section{Paragraphs}\label{paragraphs}
116Here's a regular paragraph.
118In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
119Because a hard-wrapped line in the middle of a paragraph looked like a list
122Here's one with a bullet. * criminey.
124There should be a hard line break\\
127\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
129\section{Block Quotes}\label{block-quotes}
134This is a block quote. It is pretty short.
138Code in a block quote:
149\def\labelenumi{\arabic{enumi}.}
168This should not be a block quote: 2 \textgreater{} 1.
170And a following paragraph.
172\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
174\section{Code Blocks}\label{code-blocks}
179---- (should be four hyphens)
185this code block is indented by one tab
191 this code block is indented by two tabs
193These should not be escaped: \$ \\ \> \[ \{
196\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
198\section{Lists}\label{lists}
200\subsection{Unordered}\label{unordered}
271\subsection{Ordered}\label{ordered}
276\def\labelenumi{\arabic{enumi}.}
289\def\labelenumi{\arabic{enumi}.}
302\def\labelenumi{\arabic{enumi}.}
314\def\labelenumi{\arabic{enumi}.}
326\def\labelenumi{\arabic{enumi}.}
330 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
337\subsection{Nested}\label{nested}
360\def\labelenumi{\arabic{enumi}.}
380Same thing but with paragraphs:
383\def\labelenumi{\arabic{enumi}.}
402\subsection{Tabs and spaces}\label{tabs-and-spaces}
406 this is a list item indented with tabs
408 this is a list item indented with spaces
412 this is an example list item indented with tabs
414 this is an example list item indented with spaces
418\subsection{Fancy list markers}\label{fancy-list-markers}
421\def\labelenumi{(\arabic{enumi})}
431 \def\labelenumii{\roman{enumii}.}
432 \setcounter{enumii}{3}
435 sublist with roman numerals, starting with 4
440 \def\labelenumiii{(\Alph{enumiii})}
453\def\labelenumi{\Alph{enumi}.}
459 \def\labelenumii{\Roman{enumii}.}
465 \def\labelenumiii{(\arabic{enumiii})}
466 \setcounter{enumiii}{5}
472 \def\labelenumiv{\alph{enumiv})}
473 \setcounter{enumiv}{2}
476 Lower alpha with paren
498Should not be a list item:
504\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
506\section{Definition Lists}\label{definition-lists}
543Multiple blocks with italics:
549contains seeds, crisp, pleasant to taste
562Multiple definitions, tight:
576Multiple definitions, loose:
589Blank line after term, indented marker, alternate markers:
600\def\labelenumi{\arabic{enumi}.}
609\section{HTML Blocks}\label{html-blocks}
611Simple block on one line:
615And nested without indentation:
621Interpreted markdown in a table:
623This is \emph{emphasized}
625And this is \textbf{strong}
627Here's a simple block:
631This should be a code block, though:
649This should just be an HTML comment:
659Just plain comment, with trailing spaces on the line:
669\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
671\section{Inline Markup}\label{inline-markup}
673This is \emph{emphasized}, and so \emph{is this}.
675This is \textbf{strong}, and so \textbf{is this}.
677An \emph{\href{/url}{emphasized link}}.
679\textbf{\emph{This is strong and em.}}
681So is \textbf{\emph{this}} word.
683\textbf{\emph{This is strong and em.}}
685So is \textbf{\emph{this}} word.
687This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
688\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
690\sout{This is \emph{strikeout}.}
692Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
693a\textsuperscript{hello~there}.
695Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
696H\textsubscript{many~of~them}O.
698These should not be superscripts or subscripts, because of the unescaped
699spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
701\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
703\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}
705``Hello,'' said the spider. ``\,`Shelob' is my name.''
707`A', `B', and `C' are letters.
709`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
711`He said, ``I want to go.''\,' Were you alive in the 70's?
713Here is some quoted `\texttt{code}' and a
714``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
716Some dashes: one---two --- three---four --- five.
718Dashes between numbers: 5--7, 255--66, 1987--1999.
720Ellipses\ldots{}and\ldots{}and\ldots{}.
722\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
724\section{LaTeX}\label{latex}
729 \cite[22-23]{smith.1899}
735 \(\alpha \wedge \omega\)
741 Here's some display math:
742 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
744 Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
747These shouldn't be math:
752 To get the famous equation, write \texttt{\$e\ =\ mc\^{}2\$}.
754 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
757 Shoes (\$20) and socks (\$5).
759 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
764\begin{tabular}{|l|l|}\hline
765Animal & Number \\ \hline
770\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
772\section{Special Characters}\label{special-characters}
790AT\&T has an ampersand in their name.
792AT\&T is another way to write it.
800Backslash: \textbackslash{}
820Greater-than: \textgreater{}
832\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
834\section{Links}\label{links}
836\subsection{Explicit}\label{explicit}
838Just a \href{/url/}{URL}.
840\href{/url/}{URL and title}.
842\href{/url/}{URL and title}.
844\href{/url/}{URL and title}.
846\href{/url/}{URL and title}
848\href{/url/}{URL and title}
850\href{/url/with_underscore}{with\_underscore}
852\href{mailto:nobody@nowhere.net}{Email link}
856\subsection{Reference}\label{reference}
858Foo \href{/url/}{bar}.
860Foo \href{/url/}{bar}.
862Foo \href{/url/}{bar}.
864With \href{/url/}{embedded {[}brackets{]}}.
866\href{/url/}{b} by itself should be a link.
868Indented \href{/url}{once}.
870Indented \href{/url}{twice}.
872Indented \href{/url}{thrice}.
874This should {[}not{]}{[}{]} be a link.
880Foo \href{/url/}{bar}.
882Foo \href{/url/}{biz}.
884\subsection{With ampersands}\label{with-ampersands}
886Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
889Here's a link with an amersand in the link text:
890\href{http://att.com/}{AT\&T}.
892Here's an \href{/script?foo=1\&bar=2}{inline link}.
894Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
896\subsection{Autolinks}\label{autolinks}
898With an ampersand: \url{http://example.com/?foo=1\&bar=2}
905 \url{http://example.com/}
911\href{mailto:nobody@nowhere.net}{\nolinkurl{nobody@nowhere.net}}
914Blockquoted: \url{http://example.com/}
917Auto-links should not occur here:
918\texttt{\textless{}http://example.com/\textgreater{}}
921or here: <http://example.com/>
924\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
926\section{Images}\label{images}
928From ``Voyage dans la Lune'' by Georges Melies (1902):
932\includegraphics{lalune.jpg}
936Here is a movie \includegraphics{movie.jpg} icon.
938\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
940\section{Footnotes}\label{footnotes}
942Here is a footnote reference,\footnote{Here is the footnote. It can go
943 anywhere after the footnote reference. It need not be placed at the end of
944 the document.} and another.\footnote{Here's the long note. This one contains
947 Subsequent blocks are indented to show that they belong to the footnote (as
954 If you want, you can indent every line, but you can also be lazy and just
955 indent the first line of each block.} This should \emph{not} be a footnote
956reference, because it contains a space.{[}\^{}my note{]} Here is an inline
957note.\footnote{This is \emph{easier} to type. Inline notes may contain
958 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
959 well as {[}bracketed text{]}.}
962Notes can go in quotes.\footnote{In quote.}
966\def\labelenumi{\arabic{enumi}.}
969 And in list items.\footnote{In list.}
972This paragraph should not be part of the note, as it is not indented.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list