markdown-latex-pandoc/template.tex

83 lines
1.2 KiB
TeX
Raw Normal View History

2023-04-23 21:05:41 +00:00
\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}
2023-05-25 13:33:17 +00:00
% remove tab from new line
\usepackage[parfill]{parskip}
% allow pictures to be used
\usepackage{graphicx}
2023-04-23 21:05:41 +00:00
\linespread{1.5}
2023-05-25 13:23:48 +00:00
$for(include-before)$
$include-before$
$endfor$
2023-04-23 21:05:41 +00:00
% 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$
\end{document}
2023-04-23 21:05:41 +00:00
$for(include-after)$
$include-after$
$endfor$