-
Notifications
You must be signed in to change notification settings - Fork 1
/
songbook.template
105 lines (86 loc) · 2.38 KB
/
songbook.template
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
\documentclass[8pt]{scrbook}
\usepackage[bookmarks]{hyperref}
\usepackage[chorded]{songs}
\usepackage[utf8]{inputenc}
%\includeonlysongs{2}
\usepackage{framed,multicol,pbox,xifthen,color}
\usepackage[show]{ed}
\usepackage{graphicx,xifthen}
%------------------------------ SHOW TODOS -------------
\newboolean{show}
\newlength{\tabwidth}
%------------------------------ DEFINITIONS ------------
\newcommand{\songtodo}[1]{
\ifthenelse{\boolean{show}}{
\addcontentsline{toc}{section}{\textcolor{red}{TODO: }#1}
\beginsong{#1}
\endsong
\begin{intersong}\textcolor{red}{TODO}\end{intersong}
}{}
}
\newcommand{\band}[2] {
% \clearpage
% \ifodd\value{page}\hbox{}\newpage\fi
\addcontentsline{toc}{chapter}{#1}
\renewcommand{\chaptername}{#1}
\chaptermark{#1}
\stepcounter{chapter}
\songsection*{#1}
\begin{songs}{}
\input{bands/#2}
\end{songs}
}
\newcommand{\todoband}[2] {
\ifthenelse{\boolean{show}}{
\addcontentsline{toc}{chapter}{\textcolor{red}{#1}}
\renewcommand{\chaptername}{#1}
\chaptermark{#1}
\stepcounter{chapter}
\songsection*{#1}
\begin{songs}{}
\input{bands/#2}
\end{songs}
}{}
}
\newcommand{\tab}[2][1] {
\pbox{#1\tabwidth}{\hspace{-0.55cm}
\centering\includegraphics[width=#1\tabwidth]{tabs/#2}}
}
\newcommand{\newsong}[1]{\addcontentsline{toc}{section}{#1}\beginsong{#1}}
\newcommand{\book}{
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{0in}
%\setlength{\topskip}{0in}
%\setlength{\headheight}{0in}
%\setlength{\headsep}{0in}
\setlength{\textheight}{9.1in}
%\pagestyle{empty}
\setlength{\tabwidth}{0.5\textwidth}
\begin{document}
\title{Absolem's Treasure Chest\\~\\ \includegraphics[width=\textwidth]{logo}}
\maketitle
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\songcolumns{2}
}
\newcommand{\mobile}{
\usepackage[paper size={90mm, 15cm}, left=2mm, right=2mm, top=2mm, bottom=2mm]{geometry}
\setlength{\tabwidth}{\textwidth}
\begin{document}
\title{Absolem's Treasure Chest\\~\\ \includegraphics[width=\textwidth]{logo}}
\maketitle
\tableofcontents
\songcolumns{1}
}
%------------------------------- BEGIN DOCUMENT -------------
%----------------------------- Some options ---------------------------
\setboolean{show}{false}
%%VERSION%%
%-------------------------------------------------------------------------
\stepcounter{chapter}
\newpage
%%BANDS%%
\end{document}