m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/templates/songbook.tex.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/songbook.tex.erb')
-rw-r--r--templates/songbook.tex.erb44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/songbook.tex.erb b/templates/songbook.tex.erb
new file mode 100644
index 0000000..7a496c6
--- /dev/null
+++ b/templates/songbook.tex.erb
@@ -0,0 +1,44 @@
+\documentclass[12pt,a4paper,titlepage,openany]{book}
+\usepackage{fontenc}
+\usepackage{polski}
+\usepackage[utf8]{inputenc}
+\usepackage{graphicx}
+\usepackage{hyperref}
+\usepackage{alltt}
+\usepackage{makeidx}
+\usepackage{titlesec}
+
+\newcommand{\tyt}[1]{\phantomsection \section{#1} }
+\setcounter{secnumdepth}{0}
+
+\begin{document}
+
+\begin{titlepage}
+ \raggedleft
+
+ \rule{1pt}{\textheight}
+ \hspace{0.05\textwidth}
+ \parbox[b]{0.75\textwidth}{
+ {\textsc{Marcin Chrzanowski} przedstawia}
+ \\[2\baselineskip]
+ {\Huge\bfseries Ĺšpiewnik \\[0.5\baselineskip] Chmielowy}
+ \\[14\baselineskip]
+ \begin{flushright}
+ Wersja~~\fbox{$0.1$}
+ \end{flushright}
+ }
+\end{titlepage}
+\raggedbottom
+\pagestyle{plain}
+
+\tableofcontents
+\clearpage
+
+\phantomsection
+\begin{flushleft}
+<%- songs.keys.sort.each do |song_id| -%>
+ \input{<%= tmp (song_partial_tex song_id) %>}\clearpage
+<%- end -%>
+\end{flushleft}
+
+\end{document}