m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/templates/song-partial.tex.erb
diff options
context:
space:
mode:
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 -%>