83 lines
1.2 KiB
TeX
83 lines
1.2 KiB
TeX
\documentclass[12pt,a4paper]{article}
|
|
|
|
\usepackage{lmodern}
|
|
\usepackage[dvipsnames]{xcolor}
|
|
\usepackage[
|
|
unicode=true,
|
|
colorlinks=true,
|
|
urlcolor=blue,
|
|
linkcolor=black,
|
|
citecolor=black,
|
|
]{hyperref}
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage[T1]{fontenc}
|
|
% remove tab from new line
|
|
\usepackage[parfill]{parskip}
|
|
% allow pictures to be used
|
|
\usepackage{graphicx}
|
|
|
|
\linespread{1.5}
|
|
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
|
|
% MACROS
|
|
\newcommand{\todo}[1]{
|
|
\centerline{
|
|
\colorbox{YellowOrange}{\textbf{To-do} #1}
|
|
}
|
|
\vspace{0.5cm}
|
|
}
|
|
|
|
% BIBLATEX
|
|
$if(bibliography)$
|
|
\usepackage[
|
|
style=authoryear-ibid,
|
|
backend=biber,
|
|
]{biblatex}
|
|
\addbibresource{$bibliography$}
|
|
$endif$
|
|
|
|
\begin{document}
|
|
|
|
$if(title)$
|
|
\begin{titlepage}
|
|
|
|
\title{$title$}
|
|
$if(author)$
|
|
\author{$author$}
|
|
$endif$
|
|
\maketitle
|
|
\thispagestyle{empty}
|
|
|
|
\end{titlepage}
|
|
\newpage
|
|
$endif$
|
|
|
|
% TOC
|
|
$if(toc)$
|
|
$if(toc-title)$
|
|
\renewcommand\contentsname{$toc-title$}
|
|
$endif$
|
|
\tableofcontents
|
|
\newpage
|
|
$endif$
|
|
|
|
$body$
|
|
|
|
$if(bibliography)$
|
|
$if(bibliography-title)$
|
|
\renewcommand\refname{$bibliography-title$}
|
|
$endif$
|
|
\newpage
|
|
\printbibliography
|
|
$endif$
|
|
|
|
$for(include-after)$
|
|
$include-after$
|
|
$endfor$
|
|
|
|
\end{document}
|
|
|