2011-12-29 22:24:05 +01:00
|
|
|
\documentclass[]{article}
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
\usepackage{lmodern}
|
2010-07-21 06:06:32 +02:00
|
|
|
\usepackage{amssymb,amsmath}
|
2012-06-06 07:25:54 +02:00
|
|
|
\usepackage{ifxetex,ifluatex}
|
2012-04-21 18:59:36 +02:00
|
|
|
\usepackage{fixltx2e} % provides \textsubscript
|
2013-01-19 19:41:27 +01:00
|
|
|
% use upquote if available, for straight quotes in verbatim environments
|
|
|
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
2012-06-06 07:25:54 +02:00
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage[utf8]{inputenc}
|
2012-06-06 07:25:54 +02:00
|
|
|
\else % if luatex or xelatex
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage{fontspec}
|
2012-06-06 07:25:54 +02:00
|
|
|
\ifxetex
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage{xltxtra,xunicode}
|
2011-07-22 22:56:04 +02:00
|
|
|
\fi
|
2012-06-05 20:52:57 +02:00
|
|
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
|
|
|
\newcommand{\euro}{€}
|
2011-07-22 22:56:04 +02:00
|
|
|
\fi
|
2013-02-28 04:42:54 +01:00
|
|
|
% use microtype if available
|
|
|
|
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
|
2009-12-31 02:08:56 +01:00
|
|
|
\usepackage{fancyvrb}
|
|
|
|
\usepackage{graphicx}
|
2010-04-04 10:36:37 +02:00
|
|
|
% We will generate all images so they have a width \maxwidth. This means
|
|
|
|
% that they will get their normal width if they fit onto the page, but
|
|
|
|
% are scaled down if they would overflow the margins.
|
|
|
|
\makeatletter
|
|
|
|
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
|
|
|
|
\else\Gin@nat@width\fi}
|
|
|
|
\makeatother
|
|
|
|
\let\Oldincludegraphics\includegraphics
|
|
|
|
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
|
2012-06-06 07:25:54 +02:00
|
|
|
\ifxetex
|
2011-07-23 18:54:42 +02:00
|
|
|
\usepackage[setpagesize=false, % page size defined by xetex
|
|
|
|
unicode=false, % unicode breaks when used with xetex
|
2012-06-03 20:08:57 +02:00
|
|
|
xetex]{hyperref}
|
2011-07-23 18:54:42 +02:00
|
|
|
\else
|
2012-06-03 20:08:57 +02:00
|
|
|
\usepackage[unicode=true]{hyperref}
|
2011-07-23 18:54:42 +02:00
|
|
|
\fi
|
2012-06-03 20:08:57 +02:00
|
|
|
\hypersetup{breaklinks=true,
|
|
|
|
bookmarks=true,
|
|
|
|
pdfauthor={John MacFarlane; Anonymous},
|
|
|
|
pdftitle={Pandoc Test Suite},
|
|
|
|
colorlinks=true,
|
|
|
|
urlcolor=blue,
|
2012-06-08 20:00:27 +02:00
|
|
|
linkcolor=magenta,
|
2012-06-03 20:08:57 +02:00
|
|
|
pdfborder={0 0 0}}
|
2013-01-21 20:52:00 +01:00
|
|
|
\urlstyle{same} % don't use monospace font for urls
|
2011-07-23 18:44:36 +02:00
|
|
|
\usepackage[normalem]{ulem}
|
|
|
|
% avoid problems with \sout in headers with hyperref:
|
|
|
|
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
|
2010-01-05 09:35:55 +01:00
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
2011-07-22 22:56:04 +02:00
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
2009-12-31 02:08:56 +01:00
|
|
|
\setcounter{secnumdepth}{0}
|
2009-12-31 02:18:27 +01:00
|
|
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
2009-12-31 02:08:56 +01:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\title{Pandoc Test Suite}
|
2011-07-21 19:09:51 +02:00
|
|
|
\author{John MacFarlane \and Anonymous}
|
2006-10-17 16:22:29 +02:00
|
|
|
\date{July 17, 2006}
|
2009-12-31 02:08:56 +01:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{document}
|
|
|
|
\maketitle
|
2007-07-08 05:48:07 +02:00
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
This is a set of tests for pandoc. Most of them are adapted from John Gruber's
|
|
|
|
markdown test suite.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Headers}
|
|
|
|
|
|
|
|
\subsection{Level 2 with an \href{/url}{embedded link}}
|
|
|
|
|
|
|
|
\subsubsection{Level 3 with \emph{emphasis}}
|
|
|
|
|
2010-12-19 00:05:21 +01:00
|
|
|
\paragraph{Level 4}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2010-12-19 00:05:21 +01:00
|
|
|
\subparagraph{Level 5}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\section{Level 1}
|
|
|
|
|
|
|
|
\subsection{Level 2 with \emph{emphasis}}
|
|
|
|
|
|
|
|
\subsubsection{Level 3}
|
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
|
|
|
\subsection{Level 2}
|
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Paragraphs}
|
|
|
|
|
|
|
|
Here's a regular paragraph.
|
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
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.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Here's one with a bullet. * criminey.
|
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
There should be a hard line break\\here.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Block Quotes}
|
|
|
|
|
|
|
|
E-mail style:
|
|
|
|
|
|
|
|
\begin{quote}
|
|
|
|
This is a block quote. It is pretty short.
|
|
|
|
\end{quote}
|
2012-04-30 16:46:38 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{quote}
|
|
|
|
Code in a block quote:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
sub status {
|
|
|
|
print "working";
|
|
|
|
}
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
A list:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
item one
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
item two
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Nested block quotes:
|
|
|
|
|
|
|
|
\begin{quote}
|
|
|
|
nested
|
|
|
|
\end{quote}
|
2012-04-30 16:46:38 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{quote}
|
|
|
|
nested
|
|
|
|
\end{quote}
|
|
|
|
\end{quote}
|
2012-04-30 16:46:38 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
This should not be a block quote: 2 \textgreater{} 1.
|
|
|
|
|
|
|
|
And a following paragraph.
|
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Code Blocks}
|
|
|
|
|
|
|
|
Code:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
---- (should be four hyphens)
|
|
|
|
|
|
|
|
sub status {
|
|
|
|
print "working";
|
|
|
|
}
|
|
|
|
|
|
|
|
this code block is indented by one tab
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
And:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
this code block is indented by two tabs
|
|
|
|
|
|
|
|
These should not be escaped: \$ \\ \> \[ \{
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Lists}
|
|
|
|
|
|
|
|
\subsection{Unordered}
|
|
|
|
|
|
|
|
Asterisks tight:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
asterisk 1
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
asterisk 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
asterisk 3
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Asterisks loose:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
asterisk 1
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
asterisk 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
asterisk 3
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Pluses tight:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Plus 1
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Plus 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Plus 3
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Pluses loose:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Plus 1
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Plus 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Plus 3
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Minuses tight:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Minus 1
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Minus 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Minus 3
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Minuses loose:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Minus 1
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Minus 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Minus 3
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\subsection{Ordered}
|
|
|
|
|
|
|
|
Tight:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
First
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Second
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Third
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
and:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
One
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Two
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Three
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Loose using tabs:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
First
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Second
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Third
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
and using spaces:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
One
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Two
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Three
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Multiple paragraphs:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Item 1, graf one.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Item 2.
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Item 3.
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\subsection{Nested}
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Tab
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Tab
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Tab
|
|
|
|
\end{itemize}
|
|
|
|
\end{itemize}
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Here's another:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
First
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Second:
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Fee
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Fie
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Foe
|
|
|
|
\end{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Third
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Same thing but with paragraphs:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
First
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Second:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Fee
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Fie
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Foe
|
|
|
|
\end{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Third
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\subsection{Tabs and spaces}
|
|
|
|
|
|
|
|
\begin{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
this is a list item indented with tabs
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
this is a list item indented with spaces
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
\begin{itemize}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
this is an example list item indented with tabs
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
this is an example list item indented with spaces
|
|
|
|
\end{itemize}
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-08-08 04:43:15 +02:00
|
|
|
\subsection{Fancy list markers}
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{(\arabic{enumi})}
|
2007-08-08 04:43:15 +02:00
|
|
|
\setcounter{enumi}{1}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
begins with 2
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
and now 3
|
|
|
|
|
|
|
|
with a continuation
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumii{\roman{enumii}.}
|
2007-08-30 22:34:24 +02:00
|
|
|
\setcounter{enumii}{3}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
sublist with roman numerals, starting with 4
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
more items
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumiii{(\Alph{enumiii})}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
a subsublist
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
a subsublist
|
|
|
|
\end{enumerate}
|
|
|
|
\end{enumerate}
|
2007-08-08 04:43:15 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-08-08 04:43:15 +02:00
|
|
|
Nesting:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\Alph{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Upper Alpha
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumii{\Roman{enumii}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Upper Roman.
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumiii{(\arabic{enumiii})}
|
2007-08-30 22:34:24 +02:00
|
|
|
\setcounter{enumiii}{5}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Decimal start with 6
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumiv{\alph{enumiv})}
|
2007-08-30 22:34:24 +02:00
|
|
|
\setcounter{enumiv}{2}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Lower alpha with paren
|
|
|
|
\end{enumerate}
|
|
|
|
\end{enumerate}
|
|
|
|
\end{enumerate}
|
2007-08-08 04:43:15 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-08-08 04:43:15 +02:00
|
|
|
Autonumbering:
|
|
|
|
|
|
|
|
\begin{enumerate}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Autonumber.
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
More.
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
\begin{enumerate}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
Nested.
|
|
|
|
\end{enumerate}
|
2007-08-08 04:43:15 +02:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-08-18 17:26:29 +02:00
|
|
|
Should not be a list item:
|
|
|
|
|
2008-07-11 04:14:57 +02:00
|
|
|
M.A.~2007
|
2007-08-18 17:26:29 +02:00
|
|
|
|
2007-08-23 06:25:09 +02:00
|
|
|
B. Williams
|
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
2007-05-11 00:04:36 +02:00
|
|
|
\section{Definition Lists}
|
|
|
|
|
|
|
|
Tight using spaces:
|
|
|
|
|
|
|
|
\begin{description}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2007-08-30 22:34:24 +02:00
|
|
|
\item[apple]
|
|
|
|
red fruit
|
|
|
|
\item[orange]
|
|
|
|
orange fruit
|
|
|
|
\item[banana]
|
|
|
|
yellow fruit
|
2007-05-11 00:04:36 +02:00
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-05-11 00:04:36 +02:00
|
|
|
Tight using tabs:
|
|
|
|
|
|
|
|
\begin{description}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2007-08-30 22:34:24 +02:00
|
|
|
\item[apple]
|
|
|
|
red fruit
|
|
|
|
\item[orange]
|
|
|
|
orange fruit
|
|
|
|
\item[banana]
|
|
|
|
yellow fruit
|
2007-05-11 00:04:36 +02:00
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-05-11 00:04:36 +02:00
|
|
|
Loose:
|
|
|
|
|
|
|
|
\begin{description}
|
2007-08-30 22:34:24 +02:00
|
|
|
\item[apple]
|
|
|
|
red fruit
|
|
|
|
\item[orange]
|
|
|
|
orange fruit
|
|
|
|
\item[banana]
|
|
|
|
yellow fruit
|
2007-05-11 00:04:36 +02:00
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-05-11 00:04:36 +02:00
|
|
|
Multiple blocks with italics:
|
|
|
|
|
|
|
|
\begin{description}
|
2007-08-30 22:34:24 +02:00
|
|
|
\item[\emph{apple}]
|
|
|
|
red fruit
|
2007-05-11 00:04:36 +02:00
|
|
|
|
|
|
|
contains seeds, crisp, pleasant to taste
|
2007-08-30 22:34:24 +02:00
|
|
|
\item[\emph{orange}]
|
|
|
|
orange fruit
|
2007-05-11 00:04:36 +02:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
{ orange code block }
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2007-05-11 00:04:36 +02:00
|
|
|
\begin{quote}
|
|
|
|
orange block quote
|
|
|
|
\end{quote}
|
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2009-12-07 09:26:53 +01:00
|
|
|
Multiple definitions, tight:
|
|
|
|
|
|
|
|
\begin{description}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2009-12-07 09:26:53 +01:00
|
|
|
\item[apple]
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
computer
|
|
|
|
\item[orange]
|
|
|
|
orange fruit
|
|
|
|
|
|
|
|
bank
|
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2009-12-07 09:26:53 +01:00
|
|
|
Multiple definitions, loose:
|
|
|
|
|
|
|
|
\begin{description}
|
|
|
|
\item[apple]
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
computer
|
|
|
|
\item[orange]
|
|
|
|
orange fruit
|
|
|
|
|
|
|
|
bank
|
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2009-12-07 09:26:53 +01:00
|
|
|
Blank line after term, indented marker, alternate markers:
|
|
|
|
|
|
|
|
\begin{description}
|
|
|
|
\item[apple]
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
computer
|
|
|
|
\item[orange]
|
|
|
|
orange fruit
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2009-12-07 09:26:53 +01:00
|
|
|
\item
|
|
|
|
sublist
|
|
|
|
\item
|
|
|
|
sublist
|
|
|
|
\end{enumerate}
|
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\section{HTML Blocks}
|
|
|
|
|
|
|
|
Simple block on one line:
|
|
|
|
|
|
|
|
foo
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
And nested without indentation:
|
|
|
|
|
|
|
|
foo
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
bar
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Interpreted markdown in a table:
|
|
|
|
|
|
|
|
This is \emph{emphasized}
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
And this is \textbf{strong}
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Here's a simple block:
|
|
|
|
|
|
|
|
foo
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
This should be a code block, though:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
<div>
|
|
|
|
foo
|
|
|
|
</div>
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
As should this:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
<div>foo</div>
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Now, nested:
|
|
|
|
|
|
|
|
foo
|
2012-05-14 16:04:07 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
This should just be an HTML comment:
|
|
|
|
|
|
|
|
Multiline:
|
|
|
|
|
|
|
|
Code block:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
<!-- Comment -->
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Just plain comment, with trailing spaces on the line:
|
|
|
|
|
|
|
|
Code:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
<hr />
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Hr's:
|
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Inline Markup}
|
|
|
|
|
|
|
|
This is \emph{emphasized}, and so \emph{is this}.
|
|
|
|
|
|
|
|
This is \textbf{strong}, and so \textbf{is this}.
|
|
|
|
|
|
|
|
An \emph{\href{/url}{emphasized link}}.
|
|
|
|
|
|
|
|
\textbf{\emph{This is strong and em.}}
|
|
|
|
|
|
|
|
So is \textbf{\emph{this}} word.
|
|
|
|
|
|
|
|
\textbf{\emph{This is strong and em.}}
|
|
|
|
|
|
|
|
So is \textbf{\emph{this}} word.
|
|
|
|
|
2011-07-22 21:19:34 +02:00
|
|
|
This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
|
|
|
|
\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2007-07-22 20:49:23 +02:00
|
|
|
\sout{This is \emph{strikeout}.}
|
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
|
|
|
|
a\textsuperscript{hello~there}.
|
2007-07-22 20:49:23 +02:00
|
|
|
|
2012-04-21 18:59:36 +02:00
|
|
|
Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
|
|
|
|
H\textsubscript{many~of~them}O.
|
2007-07-22 20:49:23 +02:00
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
These should not be superscripts or subscripts, because of the unescaped
|
2012-03-03 15:34:38 +01:00
|
|
|
spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
|
2007-07-22 20:49:23 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Smart quotes, ellipses, dashes}
|
|
|
|
|
2007-01-24 09:14:43 +01:00
|
|
|
``Hello,'' said the spider. ``\,`Shelob' is my name.''
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
`A', `B', and `C' are letters.
|
|
|
|
|
|
|
|
`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
|
|
|
|
|
2007-01-24 09:14:43 +01:00
|
|
|
`He said, ``I want to go.''\,' Were you alive in the 70's?
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2011-07-22 21:19:34 +02:00
|
|
|
Here is some quoted `\texttt{code}' and a
|
2011-01-15 03:59:50 +01:00
|
|
|
``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2008-06-08 05:20:15 +02:00
|
|
|
Some dashes: one---two --- three---four --- five.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Dashes between numbers: 5--7, 255--66, 1987--1999.
|
|
|
|
|
2007-01-06 10:54:58 +01:00
|
|
|
Ellipses\ldots{}and\ldots{}and\ldots{}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{LaTeX}
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
\cite[22-23]{smith.1899}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
$2+2=4$
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
$x \in y$
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
$\alpha \wedge \omega$
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
$223$
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
$p$-Tree
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2008-08-13 05:02:42 +02:00
|
|
|
Here's some display math:
|
|
|
|
\[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2010-12-19 19:13:55 +01:00
|
|
|
Here's one that has a line break in it: $\alpha + \omega \times x^2$.
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
These shouldn't be math:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2011-07-22 21:19:34 +02:00
|
|
|
To get the famous equation, write \texttt{\$e = mc\^{}2\$}.
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2010-12-19 19:13:55 +01:00
|
|
|
\$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
|
|
|
|
emphasized.)
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2008-07-15 22:41:27 +02:00
|
|
|
Shoes (\$20) and socks (\$5).
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2011-07-22 21:19:34 +02:00
|
|
|
Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Here's a LaTeX table:
|
|
|
|
|
|
|
|
\begin{tabular}{|l|l|}\hline
|
|
|
|
Animal & Number \\ \hline
|
|
|
|
Dog & 2 \\
|
|
|
|
Cat & 1 \\ \hline
|
|
|
|
\end{tabular}
|
2011-01-24 18:05:51 +01:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Special Characters}
|
|
|
|
|
|
|
|
Here is some unicode:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
I hat: Î
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
o umlaut: ö
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
section: §
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
set membership: ∈
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
copyright: ©
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
AT\&T has an ampersand in their name.
|
|
|
|
|
|
|
|
AT\&T is another way to write it.
|
|
|
|
|
|
|
|
This \& that.
|
|
|
|
|
|
|
|
4 \textless{} 5.
|
|
|
|
|
|
|
|
6 \textgreater{} 5.
|
|
|
|
|
|
|
|
Backslash: \textbackslash{}
|
|
|
|
|
|
|
|
Backtick: `
|
|
|
|
|
|
|
|
Asterisk: *
|
|
|
|
|
|
|
|
Underscore: \_
|
|
|
|
|
|
|
|
Left brace: \{
|
|
|
|
|
|
|
|
Right brace: \}
|
|
|
|
|
2010-10-25 04:31:06 +02:00
|
|
|
Left bracket: {[}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2010-10-25 04:31:06 +02:00
|
|
|
Right bracket: {]}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Left paren: (
|
|
|
|
|
|
|
|
Right paren: )
|
|
|
|
|
|
|
|
Greater-than: \textgreater{}
|
|
|
|
|
|
|
|
Hash: \#
|
|
|
|
|
|
|
|
Period: .
|
|
|
|
|
|
|
|
Bang: !
|
|
|
|
|
|
|
|
Plus: +
|
|
|
|
|
|
|
|
Minus: -
|
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Links}
|
|
|
|
|
|
|
|
\subsection{Explicit}
|
|
|
|
|
|
|
|
Just a \href{/url/}{URL}.
|
|
|
|
|
|
|
|
\href{/url/}{URL and title}.
|
|
|
|
|
|
|
|
\href{/url/}{URL and title}.
|
|
|
|
|
|
|
|
\href{/url/}{URL and title}.
|
|
|
|
|
|
|
|
\href{/url/}{URL and title}
|
|
|
|
|
|
|
|
\href{/url/}{URL and title}
|
|
|
|
|
2012-09-16 05:42:24 +02:00
|
|
|
\href{/url/with_underscore}{with\_underscore}
|
2007-01-06 21:47:00 +01:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\href{mailto:nobody@nowhere.net}{Email link}
|
|
|
|
|
|
|
|
\href{}{Empty}.
|
|
|
|
|
|
|
|
\subsection{Reference}
|
|
|
|
|
|
|
|
Foo \href{/url/}{bar}.
|
|
|
|
|
|
|
|
Foo \href{/url/}{bar}.
|
|
|
|
|
|
|
|
Foo \href{/url/}{bar}.
|
|
|
|
|
2010-10-25 04:31:06 +02:00
|
|
|
With \href{/url/}{embedded {[}brackets{]}}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\href{/url/}{b} by itself should be a link.
|
|
|
|
|
|
|
|
Indented \href{/url}{once}.
|
|
|
|
|
|
|
|
Indented \href{/url}{twice}.
|
|
|
|
|
|
|
|
Indented \href{/url}{thrice}.
|
|
|
|
|
2010-10-25 04:31:06 +02:00
|
|
|
This should {[}not{]}{[}{]} be a link.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
[not]: /url
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
Foo \href{/url/}{bar}.
|
|
|
|
|
|
|
|
Foo \href{/url/}{biz}.
|
|
|
|
|
|
|
|
\subsection{With ampersands}
|
|
|
|
|
2011-01-15 03:59:50 +01:00
|
|
|
Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
|
2010-12-19 19:13:55 +01:00
|
|
|
URL}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2007-08-30 22:34:24 +02:00
|
|
|
Here's a link with an amersand in the link text:
|
|
|
|
\href{http://att.com/}{AT\&T}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2011-01-15 03:59:50 +01:00
|
|
|
Here's an \href{/script?foo=1\&bar=2}{inline link}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2011-01-15 03:59:50 +01:00
|
|
|
Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\subsection{Autolinks}
|
|
|
|
|
2012-09-16 20:20:53 +02:00
|
|
|
With an ampersand: \url{http://example.com/?foo=1\&bar=2}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{itemize}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
In a list?
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
\url{http://example.com/}
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2007-08-30 22:34:24 +02:00
|
|
|
It should.
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{itemize}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2013-01-07 05:51:51 +01:00
|
|
|
An e-mail address: \href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{quote}
|
2007-08-04 00:14:32 +02:00
|
|
|
Blockquoted: \url{http://example.com/}
|
2006-10-17 16:22:29 +02:00
|
|
|
\end{quote}
|
2012-04-30 16:46:38 +02:00
|
|
|
|
2011-07-22 21:19:34 +02:00
|
|
|
Auto-links should not occur here:
|
|
|
|
\texttt{\textless{}http://example.com/\textgreater{}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
or here: <http://example.com/>
|
|
|
|
\end{verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2006-10-17 16:22:29 +02:00
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Images}
|
|
|
|
|
|
|
|
From ``Voyage dans la Lune'' by Georges Melies (1902):
|
|
|
|
|
2011-02-12 04:03:46 +01:00
|
|
|
\begin{figure}[htbp]
|
2010-03-16 05:06:33 +01:00
|
|
|
\centering
|
2006-10-17 16:22:29 +02:00
|
|
|
\includegraphics{lalune.jpg}
|
2010-03-17 07:53:38 +01:00
|
|
|
\caption{lalune}
|
2010-03-16 05:06:33 +01:00
|
|
|
\end{figure}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Here is a movie \includegraphics{movie.jpg} icon.
|
|
|
|
|
|
|
|
\begin{center}\rule{3in}{0.4pt}\end{center}
|
|
|
|
|
|
|
|
\section{Footnotes}
|
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
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.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
Subsequent blocks are indented to show that they belong to the footnote (as
|
|
|
|
with list items).
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2011-07-20 01:25:01 +02:00
|
|
|
\begin{Verbatim}
|
2006-10-17 16:22:29 +02:00
|
|
|
{ <code> }
|
2011-07-20 01:25:01 +02:00
|
|
|
\end{Verbatim}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
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
|
2011-07-22 21:19:34 +02:00
|
|
|
\href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
|
|
|
|
well as {[}bracketed text{]}.}
|
2006-12-20 00:13:03 +01:00
|
|
|
|
2006-12-21 20:33:57 +01:00
|
|
|
\begin{quote}
|
2010-12-19 19:13:55 +01:00
|
|
|
Notes can go in quotes.\footnote{In quote.}
|
2006-12-21 20:33:57 +01:00
|
|
|
\end{quote}
|
2012-04-30 16:46:38 +02:00
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2013-01-08 05:58:12 +01:00
|
|
|
\itemsep1pt\parskip0pt\parsep0pt
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2010-12-19 19:13:55 +01:00
|
|
|
And in list items.\footnote{In list.}
|
2006-12-21 20:33:57 +01:00
|
|
|
\end{enumerate}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2010-12-19 19:13:55 +01:00
|
|
|
This paragraph should not be part of the note, as it is not indented.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\end{document}
|