Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 1.84 KB

File metadata and controls

73 lines (60 loc) · 1.84 KB
title The Little Book of Everything
subtitle Version 0.1.0
author Duc-Tam Nguyen
date \today
papersize a4
geometry
a4paper
margin=2.5cm
heightrounded
fontsize 12pt
toc true
toc-depth 2
numbersections false
mathjax true
equation-numbering none
pdf-engine xelatex
mainfont Noto Serif
monofont Noto Sans Mono
colorlinks true
linkcolor blue
urlcolor blue
header-includes
\usepackage{amsmath} % already pulled in by Pandoc, but safe
\renewenvironment{equation}{\begin{equation*}}{\end{equation*}}
\usepackage{microtype}
\newcommand{\docversion}{0.1.1}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{2} % keep TOC depth as desired
\makeatletter
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
\renewcommand{\subsectionmark}[1]{\markright{#1}}
\makeatother
\usepackage{fancyhdr}
\fancypagestyle{content}{% \fancyhf{}% \fancyhead[LE,RO]{\thepage}% \fancyhead[LO,RE]{\nouppercase{\leftmark}}% \fancyfoot[C]{Version \docversion}% \renewcommand{\headrulewidth}{0.4pt}% \setlength{\headheight}{13.6pt}% }
\usepackage{etoolbox}
\AtBeginDocument{\thispagestyle{plain}\pagestyle{content}}
\let\oldsection\section
\renewcommand{\section}{\clearpage\oldsection}

42