2016-05-09 15:16:43 +02:00
|
|
|
% -----------------------------------------------
|
|
|
|
% Pandoc LaTeX Template for TLDR Pages
|
|
|
|
% -----------------------------------------------
|
|
|
|
% Partly from The Little MongoDB Book
|
|
|
|
% github.com/karlseguin/the-little-mongodb-book
|
|
|
|
% -----------------------------------------------
|
|
|
|
|
|
|
|
\documentclass[
|
2016-09-27 07:15:21 +02:00
|
|
|
12pt, % font size
|
|
|
|
DIV12, % space / margins
|
|
|
|
a4paper, % paper format
|
|
|
|
oneside, % one-sided document
|
2016-05-09 15:16:43 +02:00
|
|
|
]{scrreprt}
|
|
|
|
|
|
|
|
% Typography
|
|
|
|
\usepackage[no-math]{fontspec}
|
|
|
|
\defaultfontfeatures{Scale = MatchLowercase}
|
|
|
|
|
|
|
|
% Fonts
|
|
|
|
\setmainfont[Ligatures = TeX]{Verdana}
|
|
|
|
\setsansfont[Ligatures = TeX]{Verdana}
|
2017-03-16 13:32:34 +01:00
|
|
|
\setmonofont{Inconsolata}
|
2016-05-09 15:16:43 +02:00
|
|
|
|
|
|
|
% Set Sans font in headings
|
|
|
|
\usepackage{sectsty}
|
|
|
|
\allsectionsfont{\sffamily}
|
|
|
|
|
|
|
|
% Set polyglossia language
|
|
|
|
\usepackage{polyglossia}
|
|
|
|
\setdefaultlanguage{english}
|
|
|
|
|
|
|
|
|
|
|
|
% -----------------------------------------------
|
|
|
|
% Project specific changes
|
|
|
|
% -----------------------------------------------
|
|
|
|
|
|
|
|
% fix for pandoc 1.14 (from https://github.com/mpastell/Pweave/pull/29/)
|
|
|
|
\providecommand{\tightlist}{
|
2016-09-27 07:15:21 +02:00
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
2016-05-09 15:16:43 +02:00
|
|
|
|
|
|
|
% Disable section numbers
|
|
|
|
\setcounter{secnumdepth}{0}
|
|
|
|
|
|
|
|
% Print program synopsis as normal but a bit bigger text
|
|
|
|
\def\quote{\large}
|
|
|
|
|
|
|
|
% Set en dash as list item
|
|
|
|
\renewcommand{\labelitemi}{--}
|
|
|
|
|
|
|
|
% Decrease indentation of list items
|
|
|
|
\usepackage{enumitem}
|
|
|
|
\setlist[itemize,1]{
|
2016-09-27 07:15:21 +02:00
|
|
|
leftmargin = 11pt,
|
|
|
|
itemindent = 0pt,
|
2016-05-09 15:16:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
% Align commands with list items
|
|
|
|
\setlength{\parindent}{11pt}
|
|
|
|
|
|
|
|
|
|
|
|
% -----------------------------------------------
|
|
|
|
% Colors, Listings and Links
|
|
|
|
% -----------------------------------------------
|
|
|
|
|
|
|
|
\usepackage{xcolor}
|
|
|
|
\usepackage{listings}
|
|
|
|
|
|
|
|
\definecolor{tldrBlue}{HTML}{0074d9}
|
|
|
|
|
|
|
|
\lstset{
|
2016-09-27 07:15:21 +02:00
|
|
|
moredelim = *[is][\color{tldrBlue}]{\{\{}{\}\}}, % the magic for the blue
|
|
|
|
basicstyle = \ttfamily, % monospace font for code
|
|
|
|
backgroundcolor = \color{white}, % for multiline code samples (there are none atm)
|
|
|
|
extendedchars = true,
|
|
|
|
breaklines = true,
|
|
|
|
keepspaces = true, % if not set to true, the space between two following variables is removed when setting `basicstyle` (why? WHY?)
|
2016-05-09 15:16:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
\usepackage[
|
2016-09-27 07:15:21 +02:00
|
|
|
linktoc = all % link the text and the page number in the TOC
|
2016-05-09 15:16:43 +02:00
|
|
|
]{hyperref}
|
|
|
|
|
|
|
|
|
|
|
|
% -----------------------------------------------
|
|
|
|
% The Document
|
|
|
|
% -----------------------------------------------
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
2016-09-27 07:15:21 +02:00
|
|
|
\thispagestyle{plain}
|
2016-05-09 15:16:43 +02:00
|
|
|
|
2016-09-27 07:15:21 +02:00
|
|
|
\begin{titlepage}
|
|
|
|
\begin{center}
|
|
|
|
\vspace*{11em}
|
|
|
|
\huge{\textbf{TLDR Pages}}\\[1em]
|
|
|
|
\LARGE{The Book}\\[3em]
|
|
|
|
\large{Simplified and community-driven man pages}\\[1em]
|
|
|
|
\ttfamily{\href{https://tldr-pages.github.io}{tldr-pages.github.io}}
|
|
|
|
\end{center}
|
|
|
|
\end{titlepage}
|
2016-05-09 15:16:43 +02:00
|
|
|
|
2016-09-27 07:15:21 +02:00
|
|
|
\tableofcontents % Table of Contents #usefulcomments
|
2016-05-09 15:16:43 +02:00
|
|
|
|
2016-09-27 07:15:21 +02:00
|
|
|
$body$ % this is were pandoc hooks in
|
2016-05-09 15:16:43 +02:00
|
|
|
|
|
|
|
\end{document}
|