Commit 5405f95a authored by Albert Gräf's avatar Albert Gräf
Browse files

Convert to Pandoc.

parent a7258a0c
#HTML_FLAGS = -c modern.css
HTML_FLAGS = -c john-full.css
TEX_FLAGS = --template=mydefault.latex --latex-engine=xelatex
PDF_FLAGS = -V 'geometry:paperwidth=21cm' -V 'geometry:paperheight=29.7cm' -V 'geometry:vmargin=2cm' -V 'geometry:hmargin=2cm' -V 'fontsize:12pt'
filter = -F pandoc-crossref
all: html pdf
html: Purr-Data-Intro.html
pdf: Purr-Data-Intro.pdf
clean:
rm -f Purr-Data-Intro.html Purr-Data-Intro.pdf
%.html: %.md
pandoc $(filter) -s -S $< -o $@ $(HTML_FLAGS)
%.pdf: %.md
pandoc $(filter) -s -S $< -o $@ $(TEX_FLAGS) $(PDF_FLAGS)
This diff is collapsed.
This diff is collapsed.
No preview for this file type
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
html {
color:#000;
background:#FFF;
}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-spacing:0;
font-size:inherit;
font:100%;
max-width:100%;
background-color:transparent;
border:1px solid #DDD;
border-left:0;
border-collapse:collapsed;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
fieldset,img {
border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-style:normal;
font-weight:400;
}
ol,ul {
list-style:none;
}
caption,th {
text-align:left;
}
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:400;
color:#20639b;
margin:1em 0;
}
q:before,q:after {
content:'';
}
abbr,acronym {
border:0;
font-variant:normal;
border-bottom:1px dotted #000;
cursor:help;
}
sup {
vertical-align:text-top;
}
sub {
vertical-align:text-bottom;
}
input,textarea,select {
font-family:inherit;
font-weight:inherit;
font-size:100%;
}
legend {
color:#000;
}
h1,h2,h3,h4,h5,h6,strong {
font-weight:700;
}
em {
font-style:italic;
}
blockquote,ul,ol,dl {
margin:1em;
}
ol,ul,dl {
margin-left:2em;
}
ol {
list-style:decimal outside;
}
ul {
list-style:disc outside;
}
dl dd {
margin-left:1em;
}
th,td {
line-height:1.125em;
text-align:left;
vertical-align:top;
border-top:1px solid #DDD;
border-left:1px solid #DDD;
padding:.5em;
}
th {
font-weight:700;
text-align:center;
color:#20639b;
}
table thead:first-child tr:first-child th,table tbody:first-child tr:first-child th,table tbody:first-child tr:first-child td {
border-top:0;
}
table thead:first-child tr:first-child th:first-child,table tbody:first-child tr:first-child td:first-child {
-webkit-border-radius:4px 0 0 0;
-moz-border-radius:4px 0 0;
border-radius:4px 0 0 0;
}
table thead:first-child tr:first-child th:last-child,table tbody:first-child tr:first-child td:last-child {
-webkit-border-radius:0 4px 0 0;
-moz-border-radius:0 4px 0 0;
border-radius:0 4px 0 0;
}
table thead:last-child tr:last-child th:first-child,table tbody:last-child tr:last-child td:first-child {
-webkit-border-radius:0 0 0 4px;
-moz-border-radius:0 0 0 4px;
border-radius:0 0 0 4px;
}
table thead:last-child tr:last-child th:last-child,table tbody:last-child tr:last-child td:last-child {
-webkit-border-radius:0 0 4px 0;
-moz-border-radius:0 0 4px;
border-radius:0 0 4px 0;
}
table tbody tr:nth-child(odd) td,table tbody tr:nth-child(odd) th {
background-color:#f9f9f9;
}
caption {
margin-bottom:.5em;
text-align:center;
}
p,fieldset,table,pre {
margin-top:.5em;
margin-bottom:.5em;
}
body {
font:16px/1.4 "Helvetica Neue", Helvetica, "Open Sans", Arial, sans-serif;
color:#333;
max-width:960px;
margin:0 auto;
}
pre,code,kbd,samp,tt {
font-family:monospace;
font-size:100%;
line-height:100%;
}
h1 {
font-size:200%;
border-bottom:2px dotted #ddd;
}
a,a:visited,code {
color:#f06024;
}
h2 {
font-size:160%;
}
h3 {
font-size:120%;
}
h4 {
font-size:110%;
}
h5 {
font-size:95%;
}
h6 {
font-size:90%;
color:#999;
}
dl {
margin:0 0 1.125em;
}
dt {
font-weight:700;
line-height:1.125em;
}
dd {
margin-left:1em;
line-height:1.125em;
}
pre,blockquote {
border:1px solid #ddd;
background-color:#f1f1f1;
-webkit-border-radius:6px;
-moz-border-radius:6px;
border-radius:6px;
padding:10px;
}
blockquote {
margin:1em 2.5em;
}
code {
color:#20639b;
background:#f1f1f1;
}
img {
max-width:100%;
}
ol[type=1] {
list-style-type:decimal;
}
ol[type=a] {
list-style-type:lower-alpha;
}
ol[type=A] {
list-style-type:upper-alpha;
}
ol[type=I] {
list-style-type:upper-roman;
}
ol[type=i] {
list-style-type:lower-roman;
}
body{font:normal 0.8764em / 1.5em;margin:0}html>body{font-size:14px}p{margin:1.3125em 0;font-size:1.1429em;line-height:1.3125em}li{font-size:100%}h1{margin:0.6563em 0;font-size:2.2857em;line-height:0.6563em}h2{margin:0.875em 0;font-size:1.7143em;line-height:0.875em}h3{margin:1em 0;font-size:1.5em;line-height:1em}h4{margin:1.1667em 0;font-size:1.2857em;line-height:1.1667em}h5{margin:1.3125em 0;font-size:1.1429em;line-height:1.3125em}h6{margin:1.5em 0;font-size:1em;line-height:1.5em}body,p,td,div{font-family:"Lucida Grande", Lucida, Verdana, sans-serif;color:#333;word-wrap:break-word;-webkit-font-smoothing:antialiased}h1,h2,h3,h4{color:#333;line-height:1.5em}p{margin:0 0 1.7em 0}a{color:#0d6ea1;text-decoration:none;-webkit-transition:color .2s ease-in-out;-moz-transition:color .2s ease-in-out;-o-transition:color .2s ease-in-out;-ms-transition:color .2s ease-in-out;transition:color .2s ease-in-out}a:hover{color:#3593d9}.footnote{font-size:.8em;vertical-align:super;color:#0d6ea1}#wrapper img{max-width:100%;height:auto}dt{font-weight:bold}dd{margin-bottom:1em}blockquote{margin-left:10px}.footnotes{-webkit-column-break-inside:avoid-column;-webkit-column-break-before:always}.footnotes li{margin-left:5px}@media screen{::selection{background:rgba(157,193,200,0.5)}h1::selection{background-color:rgba(45,156,208,0.3)}h2::selection{background-color:rgba(90,182,224,0.3)}h3::selection,h4::selection,h5::selection,h6::selection,li::selection,ol::selection{background-color:rgba(133,201,232,0.3)}code::selection{background-color:rgba(0,0,0,0.7);color:#eee}code span::selection{background-color:rgba(0,0,0,0.7) !important;color:#eee !important}a::selection{background-color:rgba(255,230,102,0.2)}.inverted a::selection{background-color:rgba(255,230,102,0.6)}td::selection,th::selection,caption::selection{background-color:rgba(180,237,95,0.5)}.inverted{background:#0b2531;background:#111 !important}.inverted #wrapper{background:#111 !important}.inverted p,.inverted td,.inverted li,.inverted h1,.inverted h2,.inverted h3,.inverted h4,.inverted h5,.inverted h6,.inverted pre,.inverted code,.inverted th,.inverted .math,.inverted dd,.inverted dt{color:#eee !important}.inverted pre{background:#ddd}.inverted pre code{color:#333 !important}.inverted a{color:#fff;text-decoration:underline}body{height:100% !important;padding:20px !important}#wrapper{background:transparent;color:#303030;text-indent:0px;padding:10px;margin:10px !important;overflow:visible;-webkit-hyphens:auto;hyphens:auto;max-width:100% !important}}@media only screen and (min-width: 1101px){body{font-size:0.8em;line-height:1.5em}#wrapper{-webkit-column-width:340px;-moz-column-width:340px;column-width:340px;-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}}@media only screen and (max-width: 1100px){body{font-size:0.8em;line-height:1.5em}#wrapper{-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-width:300px;-moz-column-width:300px;column-width:300px;-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}}@media only screen and (max-width: 599px){body{font-size:0.8em;line-height:1.5em}#wrapper{-webkit-column-count:1;-moz-column-count:1;column-count:1;-webkit-column-gap:20;-moz-column-gap:20;column-gap:20;width:85%}}ul,ol{padding:0;list-style-position:outside;margin-left:20px}li{margin-bottom:.5em}li>p{margin:0 0 1em}ul ul,ul ol{margin-top:1em}caption,col,colgroup,table,tbody,td,tfoot,th,thead,tr{border-spacing:0}table{display:table;table-layout:fixed;border-collapse:collapse;empty-cells:hide;margin:0;padding:0;margin-bottom:24px;border:0}caption{display:table-caption;font-weight:bold}col{display:table-column}colgroup{display:table-column-group}tbody{display:table-row-group}tfoot{display:table-footer-group}thead{display:table-header-group}td{display:table-cell}th{display:table-cell;font-weight:bold}tr{display:table-row}table{margin-top:-1px;margin-bottom:23px;border:1px solid rgba(0,0,0,0.25)}table th,table td{padding:0 1em;font-size:1.1em;line-height:23px}table thead{background-color:rgba(0,0,0,0.15)}table tbody{background-color:rgba(0,0,0,0.05)}table tfoot{background-color:rgba(0,0,0,0.15)}table tr:nth-child(odd){background-color:rgba(255,255,255,0.06)}table tr:nth-child(even){background-color:rgba(0,0,0,0.06)}table th:nth-child(odd){background-color:rgba(255,255,255,0.06)}table td:nth-child(odd){background-color:rgba(255,255,255,0.06)}table td:nth-child(even){background-color:rgba(0,0,0,0.06)}table thead{border:1px solid rgba(0,0,0,0.15);border-bottom:1px solid rgba(0,0,0,0.2)}table tfoot{border:1px solid rgba(0,0,0,0.15);border-top:1px solid rgba(0,0,0,0.2)}figure{position:relative;display:inline-block;margin-bottom:1.2em}figcaption{text-align:center;position:absolute;background:rgba(0,0,0,0);width:100%;left:0;bottom:0;color:rgba(255,255,255,0);-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;transition:all .2s ease-in-out}figure:hover{cursor:pointer}figcaption:hover{background:rgba(0,0,0,0.56);color:#fff}@media print{body{overflow:auto;max-width:600px !important}img,pre,blockquote,table,figure{page-break-inside:avoid}#wrapper{background:#fff;position:relative;color:#303030;text-indent:0px;padding:10px;font-size:85%}}pre code{-webkit-column-break-inside:avoid-column}.poetry pre{font-family:Georgia, Garamond, serif !important;font-style:italic;font-size:110% !important;line-height:1.6em;display:block;margin-left:1em}.poetry pre code{font-family:Georgia, Garamond, serif !important;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;white-space:pre-wrap}sup,sub,a.footnote{font-size:1.4ex;height:0;line-height:1;vertical-align:super;position:relative}sub{vertical-align:sub;top:-1px}.modern #firstdiff{width:105% !important;background:transparent;text-align:right}@media screen{#wrapper{position:absolute;left:20px;top:20px;bottom:20px}}
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
\usepackage{a4wide}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[utf8]{inputenc}
$if(euro)$
\usepackage{eurosym}
$endif$
\else % if luatex or xelatex
\ifxetex
\usepackage{mathspec}
\usepackage{xltxtra,xunicode}
\else
\usepackage{fontspec}
\fi
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{}
$if(mainfont)$
\setmainfont{$mainfont$}
$endif$
$if(sansfont)$
\setsansfont{$sansfont$}
$endif$
$if(monofont)$
\setmonofont[Mapping=tex-ansi]{$monofont$}
$endif$
$if(mathfont)$
\setmathfont(Digits,Latin,Greek){$mathfont$}
$endif$
\fi
% use microtype if available
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
$endif$
$if(biblatex)$
\usepackage{biblatex}
$if(biblio-files)$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
$if(tables)$
\usepackage{longtable,booktabs}
$endif$
$if(graphics)$
\usepackage{graphicx}
% Redefine \includegraphics so that, unless explicit options are
% given, the image width will not exceed the width of the page.
% Images get their normal width if they fit onto the page, but
% are scaled down if they would overflow the margins.
\makeatletter
\def\ScaleIfNeeded{%
\ifdim\Gin@nat@width>\linewidth
\linewidth
\else
\Gin@nat@width
\fi
}
\makeatother
\let\Oldincludegraphics\includegraphics
{%
\catcode`\@=11\relax%
\gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
}%
$endif$
\ifxetex
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
xetex]{hyperref}
\else
\usepackage[unicode=true]{hyperref}
\fi
\hypersetup{breaklinks=true,
bookmarks=true,
pdfauthor={$author-meta$},
pdftitle={$title-meta$},
colorlinks=true,
citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
pdfborder={0 0 0}}
\urlstyle{same} % don't use monospace font for urls
$if(links-as-notes)$
% Make links footnotes instead of hotlinks:
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
$endif$
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
$if(numbersections)$
\setcounter{secnumdepth}{5}
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
\ifxetex
\usepackage{polyglossia}
\setmainlanguage{$mainlang$}
\else
\usepackage[$lang$]{babel}
\fi
$endif$
$if(title)$
\title{$title$}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
$endif$
\author{$for(author)$$author$$sep$ \and $endfor$}
\date{$date$}
$for(header-includes)$
$header-includes$
$endfor$
\usepackage{mathpazo}
\usepackage[scaled=0.86]{beramono}
% AG: On my Linux system the Palatino font is actually called "Palatino
% Linotype", so that's what we use here. You might have to edit this.
\setromanfont[Mapping=tex-text]{Palatino Linotype}
\setsansfont[Mapping=tex-text]{Palatino Linotype}
\setmonofont[Mapping=tex-text,Scale=0.8]{Bitstream Vera Sans Mono}
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% Use Helvetica for the section titles.
\usepackage{sectsty}
\allsectionsfont{\usefont{OT1}{phv}{bc}{n}}
\begin{document}
$if(title)$
\maketitle
$endif$
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
{
\hypersetup{linkcolor=black}
\setcounter{tocdepth}{$toc-depth$}
\tableofcontents
}
$endif$
$body$
$if(natbib)$
$if(biblio-files)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment