\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} |