template-ebook/styles/print-template.tex

70 lines
1.4 KiB
TeX

\documentclass[11pt,a4paper]{article}
\usepackage{xfp} % <-- ganz nach oben!
\usepackage{expl3} % <-- optional, bei manchen TeX-Installationen nötig
\usepackage{fontspec}
\setmainfont{DejaVu Sans}
\usepackage[ngerman]{babel}
\usepackage{parskip}
\usepackage{geometry}
\geometry{margin=2.5cm}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{emptypage}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{calc}
% Fallback-Makros für Pandoc Highlighting
$if(highlighting-macros)$
$highlighting-macros$
$endif$
% Codeblöcke (Pandoc Highlighting)
\usepackage{color}
\usepackage{framed}
\usepackage{fancyvrb}
% Kapitel auf neuer Seite
\newcommand{\sectionbreak}{\clearpage}
\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{}
% Titel
\title{
\includegraphics[width=0.3\textwidth]{media/logo/logo_256x256.png} \\[2em]
{\Huge $title$} \\
\vspace{1em}
\Large $subtitle$
}
\author{$for(author)$$author$$sep$ \and $endfor$}
\date{$date$}
\begin{document}
% Titelseite OHNE Seitenzahl
\pagestyle{empty}
\maketitle
\thispagestyle{empty}
\clearpage
% Inhaltsverzeichnis OHNE Seitenzahl
\tableofcontents
\clearpage
% Seitenzahlen ab hier: fancy mit Kopf-/Fußzeile
\pagestyle{fancy}
\fancyhf{}
\rhead{$title$}
\lhead{$author$}
\rfoot{\thepage}
\setcounter{page}{1}
$body$
\end{document}