Skip to content

Commit 0def1fe

Browse files
committed
adjust spacing & alignment, wrap paras
For #46
1 parent 7faef4b commit 0def1fe

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

templates/print/types/invoice/ticket.tex.erb

+14-10
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,37 @@
1212
\usepackage[]{qrcode}
1313

1414
\renewcommand{\ticketdefault}{%
15-
\put(49,45){
15+
\put(48,48){
1616
<% if (logo = event.get_presents_logo).present? -%>
1717
\raisebox{-1mm}{\includegraphics[height=8mm]{<%= logo.file[:original].download.path %>}}
1818
<% end -%>
1919
\textsf{\Huge presents:}
2020
}%
2121
\put(1,20){\begin{sideways}\Large Admit 1\end{sideways}}%
22-
\put(50,35){\Anton <%=q event.title %>}
22+
\put(48,25){
23+
\parbox[][40mm][c]{100mm}{
24+
\raggedright\Anton <%=q event.title %>
2325
<% if event.sub_title -%>
24-
\put(50,27){\large <%=q event.sub_title %>}
26+
\par
27+
\raggedleft\Large <%=q event.sub_title %>
2528
<% end -%>
2629
<% if event.info -%>
27-
\put(49,17){
28-
\parbox{100mm}{\normalsize\raggedright <%= break_lines q(event.info) %>}%
29-
}
30+
\par
31+
\raggedright\normalsize <%= break_lines q(event.info) %>
3032
<% end -%>
33+
}
34+
}
3135
<% if event.starts_at -%>
3236
\put(195,60){\rotatebox{270}{\parbox{60mm}{\centering\large <%=q event.starts_at.strftime("%I:%M%P %a %b #{event.starts_at.day.ordinalize}, %Y") %>}}}%
3337
<% end -%>
3438
<% if event.venue -%>
3539
\put(95,1){\parbox{100mm}{\small\raggedleft <%=q event.venue %>}}
3640
<% end -%>
3741
<% if (photo = event.photo).present? -%>
38-
\put(120, 5){
39-
\makebox[70mm][r]{
40-
\includegraphics[height=50mm]{<%= photo.file[:original].download.path %>}
41-
}
42+
\put(153, 30){
43+
\begin{minipage}[c][50mm]{40mm}
44+
\includegraphics[width=40mm]{<%= photo.file[:original].download.path %>}
45+
\end{minipage}
4246
}
4347
<% end -%>
4448
}

0 commit comments

Comments
 (0)