mirror of https://github.com/hamaluik/mkbook
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
765 B
TeX
45 lines
765 B
TeX
\documentclass{book}
|
|
|
|
% booklet-sized pages
|
|
\usepackage[papersize={5.5in, 8.5in}]{geometry}
|
|
|
|
% for strike-outs
|
|
\usepackage{ulem}
|
|
|
|
% use prettier fonts
|
|
\usepackage{fontspec}
|
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
|
\setmainfont{Crimson}
|
|
\setmonofont{Fira Mono}
|
|
|
|
\makeatletter
|
|
\renewcommand{\frontmatter}{\cleardoublepage\@mainmatterfalse}
|
|
\renewcommand{\mainmatter}{\cleardoublepage\@mainmattertrue}
|
|
\makeatother
|
|
|
|
\title{ {{ front.title }} }
|
|
\author{ {{ front.author }} }
|
|
\date{ {{ front.pubdate|human_date }} }
|
|
|
|
\begin{document}
|
|
\frontmatter
|
|
|
|
\maketitle
|
|
|
|
\tableofcontents
|
|
|
|
\chapter{Preface}
|
|
|
|
{{ description }}
|
|
|
|
\mainmatter
|
|
|
|
{% for chapter in chapters %}
|
|
\chapter{ {{ chapter.front.title }} }
|
|
|
|
{{ chapter.contents }}
|
|
|
|
{% endfor %}
|
|
|
|
\end{document}
|