forked from martisekpetr/bratruv-zpevnik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.tex
146 lines (125 loc) · 2.63 KB
/
macros.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
% typeset song title, add to ToC
\newcommand{\songTitle}[1]{%
\begin{spacing}{1.5}
{\Huge\sffamily\bfseries\MakeUppercase{#1}}
\end{spacing}%
% add song name to ToC (truncate if necessary)
% \noindent\addcontentsline{lem}{song}{\truncate{0.5\textwidth}{#1}}
% for use of tagged toc with package tableof
\noindent\addcontentsline{toc}{song}{\truncate{0.5\textwidth}{#1}}
}
% author name
\renewcommand{\author}[1]{
\hskip -10pt
{\LARGE\sffamily\slshape #1}
}
% verse number before lyrics
\renewcommand{\verse}[1]{
\hskip -20pt
\scalebox{.9}[1.0]{\LARGE\bfseries #1.}
\hskip 2pt
}
\newcommand{\nochord}[3][]{}
% \newcommand{\cchord}[3][]{\CHORD[#1]{#2}{#3}}
\let\printedchord\CHORD
\newcommand{\DoNotPrintChordsByDefault}{
\let\CHORD\nochord
}
% verse number before lyrics
\newcommand{\printchords}[1]{%
\def\CHORD{\printedchord}%
#1
\def\CHORD{\nochord}
}
% `R:' before lyrics
\newcommand{\chorus}{
\hskip -23pt \textbf{\Large R:}\hskip 5pt
}
\newcommand{\chorusAlt}[2]{
\hskip #2 \textbf{#1}\hskip 5pt
}
% Rec (recitativ)
\newcommand{\rec}[1]{
\emph{\hskip -36pt \textbf{Rec:} #1}
}
% beginning of repeat
\newcommand{\revrpt}{
\raisebox{-.4ex}{\rule{.3ex}{2.5ex}\,\rule{.1ex}{2.5ex}}%
\raisebox{.2ex}{:}}
% end of repeat
\newcommand{\rpt}{
\raisebox{.2ex}{:}%
\raisebox{-.4ex}{\rule{.1ex}{2.5ex}\,\rule{.3ex}{2.5ex}}}
% capo placement
\newcommand{\capo}[1]{
\vskip -10pt
\hfill \textsl{Capo #1}\\
}
% optional verse in parenthesis
\newcommand\optVerse[4]{
\hskip #1
$\left(
\parbox{0.9\textwidth}{
\leftskip = #2
#4
}
\hskip #3
\right)$
}
% song
\newcommand{\song}[5]{
\begin{minipage}[c]{\textwidth}
\centering
\songTitle{#1}
\author{#2}
\end{minipage}
\begin{center}
\leftskip=#3
\linespread{#4}\selectfont
#5
\end{center}
\clearpage
}
\newcommand{\categoryHeader}[1]{
\needspace{5\baselineskip}
\begin{center}
\hrulefill
\bfseries\large
\ #1\
\hrulefill
\end{center}
}
\newcommand{\subcategoryHeader}[1]{
\vskip -10pt
\needspace{3\baselineskip}
\textbf{\normalsize #1}
\vskip -5pt
}
\newcommand{\categoryToc}[2]{
\etocmulticolstyle[1]{\subcategoryHeader{#1}}
\nexttocwithtags*{#2}{}
\tableofcontents
}
\newcommand{\noexport}[1]{#1}
\newcommand{\noprint}[1]{}
\newcommand{\songWithTranslation}[4]{
#2
\clearpage
#4
\clearpage
}
\newcommand{\originalVersion}[5]{
\begin{minipage}[c]{\textwidth}
\centering
\textbf{Originál (#2 -- #1):}\\
\end{minipage}
\begin{center}
\large
\leftskip=#3
\linespread{#4}\selectfont
#5
\Large
\leftskip 0pt
\end{center}
\clearpage
}