2011-12-29 22:24:05 +01:00
|
|
|
\documentclass[]{article}
|
2012-06-05 20:52:57 +02:00
|
|
|
\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
|
2012-06-06 07:25:54 +02:00
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
2014-02-20 18:43:02 +01:00
|
|
|
\usepackage[T1]{fontenc}
|
2012-06-05 20:52:57 +02:00
|
|
|
\usepackage[utf8]{inputenc}
|
2012-06-06 07:25:54 +02:00
|
|
|
\else % if luatex or xelatex
|
2017-02-06 10:50:36 +01:00
|
|
|
\usepackage{unicode-math}
|
2015-10-19 06:58:10 +02:00
|
|
|
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
2011-07-22 22:56:04 +02:00
|
|
|
\fi
|
2014-05-07 05:20:28 +02:00
|
|
|
% use upquote if available, for straight quotes in verbatim environments
|
|
|
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
2013-02-28 04:42:54 +01:00
|
|
|
% use microtype if available
|
2014-08-20 18:23:19 +02:00
|
|
|
\IfFileExists{microtype.sty}{%
|
2017-01-04 05:53:17 +01:00
|
|
|
\usepackage[]{microtype}
|
2014-08-20 18:23:19 +02:00
|
|
|
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
|
|
|
}{}
|
2017-05-09 22:09:10 +02:00
|
|
|
\IfFileExists{parskip.sty}{%
|
|
|
|
\usepackage{parskip}
|
|
|
|
}{% else
|
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
|
|
|
}
|
2017-01-10 16:59:54 +01:00
|
|
|
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
|
2017-01-24 15:01:11 +01:00
|
|
|
\usepackage{fancyvrb}
|
2016-06-07 19:08:49 +02:00
|
|
|
\usepackage[unicode=true]{hyperref}
|
|
|
|
\hypersetup{
|
2015-11-13 01:09:41 +01:00
|
|
|
pdftitle={Pandoc Test Suite},
|
|
|
|
pdfauthor={John MacFarlane; Anonymous},
|
|
|
|
pdfborder={0 0 0},
|
|
|
|
breaklinks=true}
|
2013-01-21 20:52:00 +01:00
|
|
|
\urlstyle{same} % don't use monospace font for urls
|
2015-10-14 05:50:40 +02:00
|
|
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
2015-05-27 21:23:45 +02:00
|
|
|
\usepackage{graphicx,grffile}
|
|
|
|
\makeatletter
|
|
|
|
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
|
|
|
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
|
|
|
|
\makeatother
|
|
|
|
% Scale images if necessary, so that they will not overflow the page
|
|
|
|
% margins by default, and it is still possible to overwrite the defaults
|
|
|
|
% using explicit options in \includegraphics[width, height, ...]{}
|
|
|
|
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
2011-07-23 18:44:36 +02:00
|
|
|
\usepackage[normalem]{ulem}
|
|
|
|
% avoid problems with \sout in headers with hyperref:
|
|
|
|
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
|
2011-07-22 22:56:04 +02:00
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
2015-05-02 19:16:26 +02:00
|
|
|
\providecommand{\tightlist}{%
|
2014-08-27 22:35:57 +02:00
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
2009-12-31 02:08:56 +01:00
|
|
|
\setcounter{secnumdepth}{0}
|
2015-04-18 03:38:57 +02:00
|
|
|
% Redefines (sub)paragraphs to behave more like sections
|
2015-05-04 19:05:11 +02:00
|
|
|
\ifx\paragraph\undefined\else
|
2015-04-18 03:38:57 +02:00
|
|
|
\let\oldparagraph\paragraph
|
|
|
|
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
2015-05-04 19:05:11 +02:00
|
|
|
\fi
|
|
|
|
\ifx\subparagraph\undefined\else
|
2015-04-18 03:38:57 +02:00
|
|
|
\let\oldsubparagraph\subparagraph
|
|
|
|
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
|
2015-05-04 19:05:11 +02:00
|
|
|
\fi
|
2015-04-18 03:38:57 +02:00
|
|
|
|
2016-09-28 12:01:42 +02:00
|
|
|
% set default figure placement to htbp
|
|
|
|
\makeatletter
|
|
|
|
\def\fps@figure{htbp}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
|
latex template changes.
* Removed setting of `subject` in PDF metadata.
This used to be set to the subtitle, but really the subtitle
need not give the subject. Also, `subtitle` can contain formatting,
so we'd need, at least, a plain text version for this.
* Moved `header-includes` before setting of `\title`, `\author`,
etc. This allows these macros to be redefined.
* Use `\subtitle` command for `subtitle`, instead of tacking it
on to the title as before. We give a no-op fallback definition if it is
not defined. This change should produce much better results
in classes that support `\subtitle`. With the default article
class, which does not define `\subtitle`, subtitles will no
longer be printed unless the user defines `\subtitle` and
redefines `\maketitle`.
* Moved redefinitions of `\paragraph` and `\subparagraph` to
before header-includes.
2015-11-20 23:36:47 +01:00
|
|
|
\title{Pandoc Test Suite}
|
|
|
|
\author{John MacFarlane \and Anonymous}
|
|
|
|
\date{July 17, 2006}
|
|
|
|
|
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
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{headers}{%
|
|
|
|
\section{Headers}\label{headers}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-2-with-an-embedded-link}{%
|
2014-02-13 00:03:54 +01:00
|
|
|
\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
|
2017-03-01 21:38:28 +01:00
|
|
|
link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-3-with-emphasis}{%
|
2014-02-13 00:03:54 +01:00
|
|
|
\subsubsection{\texorpdfstring{Level 3 with
|
2017-03-01 21:38:28 +01:00
|
|
|
\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-4}{%
|
|
|
|
\paragraph{Level 4}\label{level-4}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-5}{%
|
|
|
|
\subparagraph{Level 5}\label{level-5}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-1}{%
|
|
|
|
\section{Level 1}\label{level-1}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-2-with-emphasis}{%
|
2014-02-13 00:03:54 +01:00
|
|
|
\subsection{\texorpdfstring{Level 2 with
|
2017-03-01 21:38:28 +01:00
|
|
|
\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-3}{%
|
|
|
|
\subsubsection{Level 3}\label{level-3}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{level-2}{%
|
|
|
|
\subsection{Level 2}\label{level-2}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{paragraphs}{%
|
|
|
|
\section{Paragraphs}\label{paragraphs}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2015-02-05 07:42:22 +01:00
|
|
|
There should be a hard line break\\
|
|
|
|
here.
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{block-quotes}{%
|
|
|
|
\section{Block Quotes}\label{block-quotes}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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.
|
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{code-blocks}{%
|
|
|
|
\section{Code Blocks}\label{code-blocks}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{lists}{%
|
|
|
|
\section{Lists}\label{lists}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{unordered}{%
|
|
|
|
\subsection{Unordered}\label{unordered}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Asterisks tight:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{ordered}{%
|
|
|
|
\subsection{Ordered}\label{ordered}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Tight:
|
|
|
|
|
2012-09-17 07:24:55 +02:00
|
|
|
\begin{enumerate}
|
|
|
|
\def\labelenumi{\arabic{enumi}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{nested}{%
|
|
|
|
\subsection{Nested}\label{nested}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{itemize}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{tabs-and-spaces}{%
|
|
|
|
\subsection{Tabs and spaces}\label{tabs-and-spaces}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\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
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{fancy-list-markers}{%
|
|
|
|
\subsection{Fancy list markers}\label{fancy-list-markers}}
|
2007-08-08 04:43:15 +02:00
|
|
|
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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})}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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
|
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{definition-lists}{%
|
|
|
|
\section{Definition Lists}\label{definition-lists}}
|
2007-05-11 00:04:36 +02:00
|
|
|
|
|
|
|
Tight using spaces:
|
|
|
|
|
|
|
|
\begin{description}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
2009-12-07 09:26:53 +01:00
|
|
|
\item
|
|
|
|
sublist
|
|
|
|
\item
|
|
|
|
sublist
|
|
|
|
\end{enumerate}
|
|
|
|
\end{description}
|
2012-04-30 18:26:15 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{html-blocks}{%
|
|
|
|
\section{HTML Blocks}\label{html-blocks}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{inline-markup}{%
|
|
|
|
\section{Inline Markup}\label{inline-markup}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{smart-quotes-ellipses-dashes}{%
|
|
|
|
\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
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
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{latex}{%
|
|
|
|
\section{LaTeX}\label{latex}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
\begin{itemize}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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
|
2014-07-30 05:45:49 +02:00
|
|
|
\(2+2=4\)
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2014-07-30 05:45:49 +02:00
|
|
|
\(x \in y\)
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2014-07-30 05:45:49 +02:00
|
|
|
\(\alpha \wedge \omega\)
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2014-07-30 05:45:49 +02:00
|
|
|
\(223\)
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2014-07-30 05:45:49 +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
|
2014-07-30 05:45:49 +02: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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
2008-08-09 18:51:08 +02:00
|
|
|
\item
|
2014-10-15 21:06:41 +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
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{special-characters}{%
|
|
|
|
\section{Special Characters}\label{special-characters}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
Here is some unicode:
|
|
|
|
|
|
|
|
\begin{itemize}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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: -
|
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{links}{%
|
|
|
|
\section{Links}\label{links}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{explicit}{%
|
|
|
|
\subsection{Explicit}\label{explicit}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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}.
|
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{reference}{%
|
|
|
|
\subsection{Reference}\label{reference}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
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}.
|
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{with-ampersands}{%
|
|
|
|
\subsection{With ampersands}\label{with-ampersands}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
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
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{autolinks}{%
|
|
|
|
\subsection{Autolinks}\label{autolinks}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
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}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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
|
|
|
|
2014-07-16 01:42:39 +02:00
|
|
|
An e-mail address:
|
|
|
|
\href{mailto:nobody@nowhere.net}{\nolinkurl{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
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{images}{%
|
|
|
|
\section{Images}\label{images}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
|
|
|
From ``Voyage dans la Lune'' by Georges Melies (1902):
|
|
|
|
|
2016-08-29 09:51:04 +02:00
|
|
|
\begin{figure}
|
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.
|
|
|
|
|
2014-08-28 05:12:37 +02:00
|
|
|
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
2017-03-01 21:38:28 +01:00
|
|
|
\hypertarget{footnotes}{%
|
|
|
|
\section{Footnotes}\label{footnotes}}
|
2006-10-17 16:22:29 +02:00
|
|
|
|
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}.}
|
2014-08-27 22:35:57 +02:00
|
|
|
\tightlist
|
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}
|