m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/templates/song-partial.tex.erb
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-09-12 21:19:42 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-09-12 21:19:42 +0200
commit236cbc380efbf1e36f8b31511b59298747acc0b1 (patch)
treebab73bb05120dca5a3351e02753b3f04b0853cba /templates/song-partial.tex.erb
parent04768d5433f3fdade45b18dacf1159177f2f8fa8 (diff)
Add songbook generation
Diffstat (limited to 'templates/song-partial.tex.erb')
-rw-r--r--templates/song-partial.tex.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/song-partial.tex.erb b/templates/song-partial.tex.erb
new file mode 100644
index 0000000..7811c22
--- /dev/null
+++ b/templates/song-partial.tex.erb
@@ -0,0 +1,9 @@
+\tyt{<%= song.title %>}
+
+\begin{alltt} \rmfamily
+<%= song.lyrics %>
+\end{alltt}
+
+<%- if File.file? tmp(song_sheet_pdf song.id) -%>
+\includegraphics[width=\textwidth]{<%= tmp(song_sheet_pdf song.id) %>}
+<%- end -%>