Add LaTeX files: editionkainhofer.sty
[orchestrallily.git] / editionkainhofer.sty
blob0b99f6f362d882c02da0fad86babfa3abdf8d8db
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}
17 \usepackage[usenames]{color}
18 % \geometry{bottom=2cm,top=1cm}
19 \usepackage{lmodern}
21 \pagecolor{white}
22 \nopagecolor
23 \usepackage{pdfpages}
25 \definecolor{cover}{rgb}{0.27,0.25,0.72} % {69,40,234}
27 \newcommand{\setfullscore}{
28 \definecolor{cover}{rgb}{0,0.25,0} % {0,64,0}
30 \newcommand{\setvocalscore}{
31 \definecolor{cover}{rgb}{0.27,0.25,0.72} % {69,40,234}
33 \newcommand{\setinstrumentalscore}{
34 \definecolor{cover}{rgb}{0.5,0,0} % {128, 0, 0, }
38 \setlength{\parindent}{0em}
41 % \begin{document}
42 \sffamily
43 \fontsize{20pt}{25pt}\selectfont
44 \input "editionkainhofer/oly_defs.tex"
47 \let\@composer\@empty
48 \newcommand{\composer}[1]{\gdef\@composer{#1}}
49 \let\@composerdate\@empty
50 \newcommand{\composerdate}[1]{\gdef\@composerdate{#1}}
51 \let\@poet\@empty
52 \newcommand{\poet}[1]{\gdef\@poet{#1}}
53 \let\@poetdate\@empty
54 \newcommand{\poetdate}[1]{\gdef\@poetdate{#1}}
55 \let\@subtitle\@empty
56 \newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
57 \let\@description\@empty
58 \renewcommand{\description}[1]{\gdef\@description{#1}}
59 \let\@instrumentation\@empty
60 \newcommand{\instrumentation}[1]{\gdef\@instrumentation{#1}}
61 \let\@scoretype\@empty
62 \newcommand{\scoretype}[1]{\gdef\@scoretype{#1}}
63 \let\@editor\@empty
64 \newcommand{\editor}[1]{\gdef\@editor{#1}}
65 \let\@publisher\@empty
66 \newcommand{\publisher}[1]{\gdef\@publisher{#1}}
67 \let\@scorenumber\@empty
68 \newcommand{\scorenumber}[1]{\gdef\@scorenumber{#1}}
69 \let\@year\@empty
70 \renewcommand{\year}[1]{\gdef\@year{#1}}
72 \let\oly@basename\@
73 \newcommand{\basename}[1]{\gdef\oly@basename{#1}}
77 %% End of file `makeidx.sty'.
79 \newcommand\makefrontpage{\pagenumbering{alph}\begin{titlepage}%
80 \pagecolor{cover}\color{white}
81 \thispagestyle{empty}
83 \let\footnotesize\small
84 \let\footnoterule\relax
85 \let \footnote \thanks
87 \sffamily
88 \fontsize{20pt}{25pt}\selectfont
90 \begin{center}
92 \null\vfill
93 \ifx\@composer\@empty%
94 \else
95 {\fontsize{35pt}{35pt}\selectfont\textbf{\@composer}}\\[0.3em]%
96 \fi
98 \ifx\@poet\@empty%
99 \else
100 {%\fontsize{20pt}{20pt}\selectfont
101 \textbf{\@poet}}\\[0.3em]%
104 \vfill
107 \fontsize{40pt}{50pt}\selectfont%
108 \textbf{\@title}
112 \@subtitle
115 \vfill
116 \vfill
117 \vfill
118 \@scoretype
119 \vfill
120 \vfill
121 \vfill
122 {\fontsize{13pt}{13pt}\selectfont
123 \@publisher\ifx\@scorenumber\@empty%
124 \else, \@scorenumber\fi
126 % \vfill\null
127 \end{center}
129 \pagebreak
130 \nopagecolor
131 \thispagestyle{empty}\null
132 \end{titlepage}%
134 \setcounter{footnote}{0}%
137 \newcommand{\makebackpage}{
138 \pagebreak
139 \thispagestyle{empty}\null
140 \pagebreak
141 \thispagestyle{empty}\pagecolor{cover}
142 \null
147 \renewcommand\maketitle{\thispagestyle{empty}{\begin{titlepage}%
148 % \pagecolor{cover}\color{white}
149 \fontfamily{pbk}\selectfont
150 % \fontseries{b}\selectfont
151 % \fontshape{n}\selectfont
154 \let\footnotesize\small
155 \let\footnoterule\relax
156 \let \footnote \thanks
158 \fontsize{16pt}{18pt}\selectfont
160 \begin{center}
162 \null\vfill
163 \ifx\@composer\@empty%
164 \else
165 {\fontsize{22pt}{25pt}\selectfont\textbf{\@composer}\ifx\@composerdate\empty\else{} \relax \@composerdate\fi}\\[0.3em]
168 \ifx\@poet\@empty%
169 \else
170 {\fontsize{16pt}{20pt}\selectfont\textbf{\@poet}\ifx\@poetdate\empty\else{} \relax \@poetdate\fi}%
173 \vfill
176 \fontsize{40pt}{45pt}\selectfont
177 \textbf{\@title}%
181 \@subtitle%
184 \vfill
185 \vfill
187 \@description%
189 \ifx\@instrumentation\empty%
190 \else
192 \vspace{0.5em}
193 \fontsize{12pt}{14pt}\selectfont
194 {\begin{minipage}{0.2\textwidth}\hspace{0.15\textwidth}\end{minipage}}\begin{minipage}{0.6\textwidth}\@instrumentation\end{minipage}%
197 \vfill
198 \vfill
199 \vfill
200 \fontsize{16pt}{18pt}\selectfont
201 \@scoretype%
202 \vfill
204 \fontsize{12pt}{14pt}\selectfont
205 \ifx\@editor\@empty%
206 \else
207 Herausgegeben von: / Edited by:\\[0.3em]%
208 \@editor%
212 \vfill
213 \@publisher\ifx\@year\@empty%
214 \else, \@year%
215 \fi\\
216 \@scorenumber%
217 % \vfill\null
219 \end{center}
221 \end{titlepage}%
223 \setcounter{footnote}{0}%
224 \global\let\maketitle\relax
225 \setcounter{page}{2}
226 % \global\let\@thanks\@empty
227 % \global\let\@author\@empty
228 % \global\let\@date\@empty
229 % \global\let\@title\@empty
230 % \global\let\title\relax
231 % \global\let\author\relax
232 % \global\let\date\relax
233 % \global\let\and\relax
240 \newcommand{\q}[1]{\glqq{}#1\grqq{}}
241 \newcommand{\piece}[2]{
242 \setcounter{page}{#2}
243 \phantomsection
244 \addcontentsline{toc}{chapter}{#1}
246 \newpage
247 % \addtocontents{toc}{\contentsline {section}{#1}{2}{#2}}
249 \newenvironment{vergleich}{
250 \setlength{\parindent}{-3em}
251 \setlength{\leftskip}{3em}
252 \indent
256 \setlength{\parindent}{0em}
257 \setlength{\leftskip}{0em}
260 \newcommand{\copyrightbox}[1]{
261 \fbox{
262 \begin{minipage}{0.95\textwidth}#1\end{minipage}
265 \newcommand{\scorelistbox}[1]{
266 \fbox{\begin{minipage}{0.8\textwidth}
267 \small
268 #1\end{minipage}
272 \newcommand\frontmatter{%
273 \cleardoublepage
274 \pagenumbering{roman}}
275 \newcommand\mainmatter{%
276 \cleardoublepage
277 \pagenumbering{arabic}}
278 \newcommand\backmatter{%
279 % \if@openright
280 \cleardoublepage
281 % \else
282 % \clearpage
283 % \fi
284 % \@mainmatterfalse
290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
291 % \includescore{PossibleExtension}
292 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
294 % Read in the TOC entries for a PDF file from the corresponding .toc file.
295 % This requires some heave latex tweaking, since reading in things from a file
296 % and inserting it into the arguments of a macro is not (easily) possible
298 % Solution by Patrick Fimml on #latex on April 18, 2009:
299 % \readfile{filename}{\variable}
300 % reads in the contents of the file into \variable (undefined if file doesn't exist)
301 \newread\readfile@f
302 \def\readfile@line#1{%
303 {\catcode`\^^M=10\global\read\readfile@f to \readfile@tmp}%
304 \edef\do{\noexpand\g@addto@macro{\noexpand#1}{\readfile@tmp}}\do%
305 \ifeof\readfile@f\else%
306 \readfile@line{#1}%
307 \fi%
309 \def\readfile#1#2{%
310 \openin\readfile@f=#1 %
311 \ifeof\readfile@f%
312 \typeout{No TOC file #1 available!}%
313 \else%
314 \gdef#2{}%
315 \readfile@line{#2}%
317 \closein\readfile@f%
321 \newcommand{\includescore}[1]{
322 \def\oly@fname{\oly@basename\@ifmtarg{#1}{}{_#1}}
323 \let\oly@addtotoc\undefined
324 \readfile{\oly@fname.toc}{\oly@addtotoc}
325 \ifx\oly@addtotoc\undefined
326 \includepdf[pages=-]{\oly@fname}
327 \else
328 \edef\includeit{\noexpand\includepdf[pages=-,addtotoc={\oly@addtotoc}]{\oly@fname}}\includeit
332 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
333 % Bibliography, TOC formatting
334 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
336 % \renewcommand*{\l@chapter}{\@dottedtocline{1}{1.5em}{2.3em}}
337 % \renewcommand*{\l@chapter}{\@dottedtocline{0}{0em}{0em}}
338 \renewcommand*{\l@section}{\@dottedtocline{1}{0em}{2.3em}}
339 \renewcommand{\numberline}[1]{}
341 \makeatletter
342 \renewenvironment{thebibliography}[1]
343 {%\chapter*{\bibname}%
344 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
345 \list{\@biblabel{\@arabic\c@enumiv}}%
346 {\settowidth\labelwidth{\@biblabel{#1}}%
347 \leftmargin\labelwidth
348 \advance\leftmargin\labelsep
349 \@openbib@code
350 \usecounter{enumiv}%
351 \let\p@enumiv\@empty
352 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
353 \sloppy
354 \clubpenalty4000
355 \@clubpenalty \clubpenalty
356 \widowpenalty4000%
357 \sfcode`\.\@m}
358 {\def\@noitemerr
359 {\@latex@warning{Empty `thebibliography' environment}}%
360 \endlist}
361 \makeatother
363 \endinput