songs/tex/skrul-leadsheet.cls
Steve Krulewitz 29979f19e8 first attempt
2019-09-05 21:35:14 -07:00

51 lines
1.1 KiB
TeX

\ProvidesClass{skrul-leadsheet}
\LoadClassWithOptions{scrartcl}
\RequirePackage{leadsheets}
\RequirePackage{etoolbox}
\RequirePackage{translations}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{
letterpaper,
left=0.5in,
top=0.5in
}
\pagenumbering{gobble}
\definesongproperty{year}
\definesongtitletemplate{leadsheet}{%
{\large \textbf{\songproperty{title}} - \songproperty{band}}
{\small // \songproperty{year} // Key: \songproperty{key}}
\hrule
}
\setleadsheets{
title-template = leadsheet,
align-chords=l,
chords/format = \bfseries,
verses-label-format = \bfseries
}
\LeadsheetSurvive
\provideversetype{prechorus}[name=Prechorus]
\provideversetype*{prechorus*}[name=Prechorus]
\providerobustcmd*\lsenparen[1]{%
\expandcode{\noexpand\mklsenparen\mklsenparens{\unexpanded{#1}}}%
}
\providecommand*\mklsenparens{[]}
\providecommand*\mklsenparen[3]{\textup{#1}#3\textup{#2}}
\providerobustcmd*\instruction[1]{\lsenparen{\mkinstruction{#1}}}
\providecommand*\mkinstruction[1]{\emph{#1}}
\providerobustcmd*\choir[1]{\null\qquad\mkchoir{#1}}
\providecommand*\mkchoir[1]{\instruction{\leadsheetstranslate{choir}: #1}}
\LeadsheetEndSurvive