Use dedicated function for figured bass figures in KritBer (LaTeX)
[orchestrallily.git] / editionkainhofer.sty
blobdb5020d2be4cb213baaf6cff40444bff55989e2a
1 %%
2 %% This is file edition_kainhofer.sty',
3 \ProvidesPackage{editionkainhofer}[2009/04/07]
5 \usepackage{url}
6 \usepackage[pdftex]{hyperref}
7 \usepackage{amsmath}
8 \usepackage[naustrian]{babel}
9 \usepackage{geometry}
10 \usepackage[utf8]{inputenc}
11 \usepackage{multicol}
12 \usepackage{multibib}
13 \usepackage{ifmtarg}
14 \usepackage{supertabular}
15 \usepackage{textcomp}
16 \usepackage{cancel}
17 \usepackage[normalem]{ulem}
19 \usepackage[usenames]{color}
20 % \geometry{bottom=2cm,top=1cm}
21 \usepackage{lmodern}
23 \pagecolor{white}
24 \nopagecolor
25 \usepackage{pdfpages}
27 \definecolor{cover}{rgb}{0.27,0.25,0.72} % {69,40,234}
29 \newcommand{\setfullscore}{
30 \definecolor{cover}{rgb}{0,0.25,0} % {0,64,0}
32 \newcommand{\setvocalscore}{
33 \definecolor{cover}{rgb}{0.27,0.25,0.72} % {69,40,234}
35 \newcommand{\setinstrumentalscore}{
36 \definecolor{cover}{rgb}{0.5,0,0} % {128, 0, 0, }
40 \setlength{\parindent}{0em}
43 % \begin{document}
44 \sffamily
45 \fontsize{20pt}{25pt}\selectfont
46 \input "orchestrallily/oly_defs.tex"
49 \let\@composer\@empty
50 \newcommand{\composer}[1]{\gdef\@composer{#1}}
51 \let\@composerdate\@empty
52 \newcommand{\composerdate}[1]{\gdef\@composerdate{#1}}
53 \let\@poet\@empty
54 \newcommand{\poet}[1]{\gdef\@poet{#1}}
55 \let\@poetdate\@empty
56 \newcommand{\poetdate}[1]{\gdef\@poetdate{#1}}
57 \let\@subtitle\@empty
58 \newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
59 \let\@description\@empty
60 \renewcommand{\description}[1]{\gdef\@description{#1}}
61 \let\@instrumentation\@empty
62 \newcommand{\instrumentation}[1]{\gdef\@instrumentation{#1}}
63 \let\@scoretype\@empty
64 \newcommand{\scoretype}[1]{\gdef\@scoretype{#1}}
65 \let\@scoreinfo\@empty
66 \newcommand{\scoreinfo}[1]{\gdef\@scoreinfo{#1}}
67 \let\@editor\@empty
68 \newcommand{\editor}[1]{\gdef\@editor{#1}}
69 \let\@publisher\@empty
70 \newcommand{\publisher}[1]{\gdef\@publisher{#1}}
71 \let\@scorenumber\@empty
72 \newcommand{\scorenumber}[1]{\gdef\@scorenumber{#1}}
73 \let\@year\@empty
74 \renewcommand{\year}[1]{\gdef\@year{#1}}
76 \let\oly@basename\@
77 \newcommand{\basename}[1]{\gdef\oly@basename{#1}}
81 %% End of file `makeidx.sty'.
83 \newcommand\makefrontpage{\pagenumbering{alph}\begin{titlepage}%
84 \pagecolor{cover}\color{white}
85 \thispagestyle{empty}
87 \let\footnotesize\small
88 \let\footnoterule\relax
89 \let \footnote \thanks
91 \sffamily
92 \fontsize{20pt}{25pt}\selectfont
94 \begin{center}
96 \null\vfill
97 \ifx\@composer\@empty%
98 \else
99 {\fontsize{35pt}{35pt}\selectfont\textbf{\@composer}}\\[0.3em]%
102 \ifx\@poet\@empty%
103 \else
104 {%\fontsize{20pt}{20pt}\selectfont
105 \textbf{\@poet}}\\[0.3em]%
108 \vfill
111 \fontsize{40pt}{50pt}\selectfont%
112 \textbf{\@title}
116 \@subtitle
119 \vfill
120 \ifx\@scoreinfo\@empty%
121 \else
122 { \@scoreinfo }
124 \vfill
125 \vfill
126 \@scoretype
127 \vfill
128 \vfill
129 \vfill
130 {\fontsize{13pt}{13pt}\selectfont
131 \@publisher\ifx\@scorenumber\@empty%
132 \else, \@scorenumber\fi
134 % \vfill\null
135 \end{center}
137 \pagebreak
138 \nopagecolor
139 \thispagestyle{empty}\null
140 \end{titlepage}%
142 \setcounter{footnote}{0}%
145 \newcommand{\makebackpage}{
146 \pagebreak
147 \thispagestyle{empty}\null
148 \pagebreak
149 \thispagestyle{empty}\pagecolor{cover}
150 \null
155 \renewcommand\maketitle{\thispagestyle{empty}{\begin{titlepage}%
156 % \pagecolor{cover}\color{white}
157 \fontfamily{pbk}\selectfont
158 % \fontseries{b}\selectfont
159 % \fontshape{n}\selectfont
162 \let\footnotesize\small
163 \let\footnoterule\relax
164 \let \footnote \thanks
166 \fontsize{16pt}{18pt}\selectfont
168 \begin{center}
170 \null\vfill
171 \ifx\@composer\@empty%
172 \else
173 {\fontsize{22pt}{25pt}\selectfont\textbf{\@composer}\ifx\@composerdate\empty\else{} \relax \@composerdate\fi}\\[0.3em]
176 \ifx\@poet\@empty%
177 \else
178 {\fontsize{16pt}{20pt}\selectfont\textbf{\@poet}\ifx\@poetdate\empty\else{} \relax \@poetdate\fi}%
181 \vfill
184 \fontsize{40pt}{45pt}\selectfont
185 \textbf{\@title}%
189 \@subtitle%
192 \vfill
193 \vfill
195 \@description%
197 \ifx\@instrumentation\empty%
198 \else
200 \vspace{0.5em}
201 \fontsize{12pt}{14pt}\selectfont
202 {\begin{minipage}{0.2\textwidth}\hspace{0.15\textwidth}\end{minipage}}\begin{minipage}{0.6\textwidth}\@instrumentation\end{minipage}%
205 \vfill
206 \vfill
207 \vfill
208 \fontsize{16pt}{18pt}\selectfont
209 \@scoretype%
210 \vfill
212 \fontsize{12pt}{14pt}\selectfont
213 \ifx\@editor\@empty%
214 \else
215 Herausgegeben von: / Edited by:\\[0.3em]%
216 \@editor%
220 \vfill
221 \@publisher\ifx\@year\@empty%
222 \else, \@year%
223 \fi\\
224 \@scorenumber%
225 % \vfill\null
227 \end{center}
229 \end{titlepage}%
231 \setcounter{footnote}{0}%
232 \global\let\maketitle\relax
233 \setcounter{page}{2}
234 % \global\let\@thanks\@empty
235 % \global\let\@author\@empty
236 % \global\let\@date\@empty
237 % \global\let\@title\@empty
238 % \global\let\title\relax
239 % \global\let\author\relax
240 % \global\let\date\relax
241 % \global\let\and\relax
248 \newcommand{\q}[1]{\glqq{}#1\grqq{}}
249 \newcommand{\piece}[2]{
250 \setcounter{page}{#2}
251 \phantomsection
252 \addcontentsline{toc}{chapter}{#1}
254 \newpage
255 % \addtocontents{toc}{\contentsline {section}{#1}{2}{#2}}
257 \newenvironment{vergleich}{
258 \setlength{\parindent}{-3em}
259 \setlength{\leftskip}{3em}
260 \indent
264 \setlength{\parindent}{0em}
265 \setlength{\leftskip}{0em}
268 \newcommand{\copyrightbox}[1]{
269 \fbox{
270 \begin{minipage}{0.95\textwidth}#1\end{minipage}
273 \newcommand{\scorelistbox}[1]{
274 \fbox{\begin{minipage}{0.8\textwidth}
275 \small
276 #1\end{minipage}
280 \newcommand\frontmatter{%
281 \cleardoublepage
282 \pagenumbering{roman}}
283 \newcommand\mainmatter{%
284 \cleardoublepage
285 \pagenumbering{arabic}}
286 \newcommand\backmatter{%
287 % \if@openright
288 \cleardoublepage
289 % \else
290 % \clearpage
291 % \fi
292 % \@mainmatterfalse
295 % \newenvironment{lyricstable}{\begin{supertabular}{p{0.33\textwidth}p{0.33\textwidth}p{0.33\textwidth}}}{\end{supertabular}}
296 \newenvironment{lyricstable}{\begin{tabular}{p{0.33\textwidth}p{0.33\textwidth}p{0.33\textwidth}}}{\end{tabular}}
301 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
302 % \includescore{PossibleExtension}
303 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
305 % Read in the TOC entries for a PDF file from the corresponding .toc file.
306 % This requires some heave latex tweaking, since reading in things from a file
307 % and inserting it into the arguments of a macro is not (easily) possible
309 % Solution by Patrick Fimml on #latex on April 18, 2009:
310 % \readfile{filename}{\variable}
311 % reads in the contents of the file into \variable (undefined if file doesn't exist)
312 \newread\readfile@f
313 \def\readfile@line#1{%
314 {\catcode`\^^M=10\global\read\readfile@f to \readfile@tmp}%
315 \edef\do{\noexpand\g@addto@macro{\noexpand#1}{\readfile@tmp}}\do%
316 \ifeof\readfile@f\else%
317 \readfile@line{#1}%
318 \fi%
320 \def\readfile#1#2{%
321 \openin\readfile@f=#1 %
322 \ifeof\readfile@f%
323 \typeout{No TOC file #1 available!}%
324 \else%
325 \gdef#2{}%
326 \readfile@line{#2}%
328 \closein\readfile@f%
332 \newcommand{\includescore}[1]{
333 \def\oly@fname{\oly@basename\@ifmtarg{#1}{}{_#1}}
334 \let\oly@addtotoc\undefined
335 \readfile{\oly@fname.toc}{\oly@addtotoc}
336 \ifx\oly@addtotoc\undefined
337 \includepdf[pages=-]{\oly@fname}
338 \else
339 \edef\includeit{\noexpand\includepdf[pages=-,addtotoc={\oly@addtotoc}]{\oly@fname}}\includeit
343 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
344 % Bibliography, TOC formatting
345 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
347 % \renewcommand*{\l@chapter}{\@dottedtocline{1}{1.5em}{2.3em}}
348 % \renewcommand*{\l@chapter}{\@dottedtocline{0}{0em}{0em}}
349 \renewcommand*{\l@section}{\@dottedtocline{1}{0em}{2.3em}}
350 \renewcommand{\numberline}[1]{}
352 \makeatletter
353 \renewenvironment{thebibliography}[1]
354 {%\chapter*{\bibname}%
355 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
356 \list{\@biblabel{\@arabic\c@enumiv}}%
357 {\settowidth\labelwidth{\@biblabel{#1}}%
358 \leftmargin\labelwidth
359 \advance\leftmargin\labelsep
360 \@openbib@code
361 \usecounter{enumiv}%
362 \let\p@enumiv\@empty
363 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
364 \sloppy
365 \clubpenalty4000
366 \@clubpenalty \clubpenalty
367 \widowpenalty4000%
368 \sfcode`\.\@m}
369 {\def\@noitemerr
370 {\@latex@warning{Empty `thebibliography' environment}}%
371 \endlist}
372 \makeatother
376 \newcommand{\wavyline}{$\sim\sim\sim\sim\sim$}
377 \newcommand{\longwavyline}{$\sim\sim\sim\sim\sim\sim\sim\sim\sim\sim$}
378 % figures for figured bass:
379 \newcommand{\bfig}[1]{\q{#1}}
381 \endinput