From 236cbc380efbf1e36f8b31511b59298747acc0b1 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 12 Sep 2021 21:19:42 +0200 Subject: Add songbook generation --- templates/song-partial.tex.erb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/song-partial.tex.erb (limited to 'templates/song-partial.tex.erb') 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 -%> -- cgit v1.2.3