kommersbuch/src/templates/book.j2

76 lines
1.7 KiB
Plaintext
Raw Normal View History

2016-12-29 14:27:39 +00:00
% !Mode:: "TeX:UTF-8"
\documentclass[9pt, a5paper, openany]{scrbook}
\usepackage{fontspec}
\usepackage{lmodern}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{tgschola}
\usepackage{tocloft}
\usepackage[unicode]{hyperref}
\usepackage{lyluatex}
\makeatletter
\newcommand{\unchapter}[1]{%
\begingroup
\let\@makechapterhead\@gobble % make \@makechapterhead do nothing
\chapter{#1}
\endgroup
}
\makeatother
\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{ \markboth{#1}{} }
\renewcommand{\sectionmark}[1]{ \markright{#1}{} }
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{ \nouppercase{\leftmark}} }
\fancyhead[LO]{\textit{ \nouppercase{\rightmark}} }
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{ \nouppercase{Vivat Alcolica!}} }
\fancyhead[LO]{\textit{ \nouppercase{Vivat Alcolica!}} }
}
\geometry{a5paper,left=20mm,right=20mm, top=3cm, bottom=3cm}
\renewcommand\addchaptertocentry[2]{\addtocentrydefault{chapter}{}{#2}}
\renewcommand{\contentsname}{Inhalt}
\renewcommand{\cfttoctitlefont}{\huge\textbf\rmfamily}
\renewcommand{\cftchapfont}{\large\rmfamily}
\begin{document}
\begin{titlepage}
\begin{center}
\rule{\linewidth}{0.5mm} \\[0.4cm]
{ \huge \bfseries Vivat Alcolica!}
\rule{\linewidth}{0.5mm} \\[1.5cm]
\end{center}
\end{titlepage}
\pagenumbering{Roman}
\tableofcontents
\newpage
((* for score in scores *))
\unchapter{((( score.title )))}
\includely[staffsize=14]{((( score.score )))}
~\\
~\\
\input{((( score.lyrics )))}
((* endfor *))
\end{document}