-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsongbook-ebook.tex
123 lines (96 loc) · 3.21 KB
/
songbook-ebook.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
\documentclass[a5paper, fontsize=18pt]{scrartcl}
\usepackage[paperwidth=147mm, paperheight=196mm, left=0.5cm, right=0.5cm, top=0.5cm, bottom=0.75cm, footskip=0.75cm]{geometry} % 4:3 inside of A5
\usepackage{fontspec}
\setmainfont{XCharter}
\setkomafont{sectioning}{\bfseries}
\setkomafont{section}{\large}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguages{german}
\usepackage[dvipsnames]{xcolor}
\usepackage{imakeidx}
\makeindex[program=xindy, options=-C utf8, name=interprets, title=Interprets, columns=1]
\makeindex[program=xindy, options=-C utf8, name=titles, title=Titles, columns=1]
\usepackage[hidelinks, unicode]{hyperref}
\hypersetup{
pdftitle={Songbook},
pdfcreator={https://github.com/passing/songbook-creator}
}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\usepackage{scrlayer-scrpage}
\ofoot{\small\~}
\renewcommand*{\pagemark}{}
\newcommand{\versebreak}{/ }
\newcommand{\tabformat}{\tiny}
\newcommand{\tabruleformat}{\color{lightgray}}
\newcommand{\tabnoteformat}{\bfseries{}\color{black}}
\newcommand{\tabotherformat}{\color{black}}
\newcommand{\tabchordformat}{\tiny\bfseries{}}
\newlength{\tabcellwidth}
\setlength{\tabcellwidth}{1.3mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{leadsheets}
\setleadsheets{
title-template=custom,
align-chords={l},
after-song=\clearpage,
verse/numbered=true,
verses-after-label={},
verses-label-format=\color{Gray},
info/format=\small\color{Gray},
bar-shortcuts=false,
}
\setchords{
input-notation=english,
output-notation=english,
format=\small\bfseries{},
}
\definesongproperty{pdf-title}
\definesongproperty{pdf-interpret}
\copysongproperty{sort-interpret}{pdf-interpret}
\copysongproperty{sort-title}{pdf-title}
\definesongtitletemplate{custom}{
\section[\texorpdfstring
{\songproperty{sort-interpret} - \songproperty{sort-title}}
{\songproperty{pdf-interpret} - \songproperty{pdf-title}}
]{\songproperty{interpret} -- \songproperty{title}}
\index[interprets]{\songproperty{sort-interpret}}
\index[titles]{\songproperty{sort-title} (\songproperty{interpret})}
}
\makeatletter
\defineversetypetemplate{itemize}
{%
\itemize
\@itemdepth=0
\item[{\verselabel}]%
}
{\enditemize\penalty-9900}
\makeatother
\newversetype{prechorus}[name=Prechorus]
\DeclareTranslation{English}{leadsheets/prechorus}{P.}
\DeclareTranslation{English}{leadsheets/chorus}{C.}
\DeclareTranslation{English}{leadsheets/bridge}{B.}
\DeclareTranslation{English}{leadsheets/intro}{I.}
\DeclareTranslation{English}{leadsheets/interlude}{I.}
\DeclareTranslation{English}{leadsheets/solo}{S.}
\DeclareTranslation{English}{leadsheets/outro}{O.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{secnumdepth}{0}
\raggedbottom
\sloppy
\begin{document}
\begin{titlepage}
\begin{center}
\vspace* {\fill}
{\Huge \textbf{Songbook}} \\
\vspace* {\fill}
created with Songbook-Creator \\
{\small{\href{https://github.com/passing/songbook-creator}{https://github.com/passing/songbook-creator}}}
\end{center}
\end{titlepage}
\setcounter{page}{1}
\input{songs}
\printindex[interprets]
\printindex[titles]
\end{document}