m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/templates/song.tex.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/song.tex.erb')
-rw-r--r--templates/song.tex.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/song.tex.erb b/templates/song.tex.erb
new file mode 100644
index 0000000..1e98547
--- /dev/null
+++ b/templates/song.tex.erb
@@ -0,0 +1,24 @@
+\documentclass{article}
+\usepackage{graphicx}
+\usepackage{alltt}
+
+\title{<%= song.title %>}
+\date{}
+
+\begin{document}
+
+\maketitle
+
+\begin{alltt} \rmfamily
+<%= song.lyrics %>
+\end{alltt}
+
+<%- p "tmp sheet file: #{tmp(song_sheet_pdf song.id)}" -%>
+<%- if File.file? tmp(song_sheet_pdf song.id) -%>
+\begin{figure}
+ \centering
+ \includegraphics[width=\textwidth]{<%= tmp(song_sheet_pdf song.id) %>}
+\end{figure}
+<%- end -%>
+
+\end{document}