aboutsummaryrefslogtreecommitdiff
path: root/zeitung
diff options
context:
space:
mode:
Diffstat (limited to 'zeitung')
-rw-r--r--zeitung/main.tex3
-rw-r--r--zeitung/parts/rankingtemplate.tex8
2 files changed, 10 insertions, 1 deletions
diff --git a/zeitung/main.tex b/zeitung/main.tex
index bb8e5ef..c9d372f 100644
--- a/zeitung/main.tex
+++ b/zeitung/main.tex
@@ -17,6 +17,7 @@
\usepackage{pgf-pie,qrcode}
\usepackage{etoolbox}
\usepackage{pdfpages}
+\usepackage{forloop}
\usepackage[absolute,overlay]{textpos}
% Font % TODO: Colored emojis? (very hard)
@@ -36,6 +37,8 @@
% Figures
\graphicspath{{figures/}}
+\newcounter{bottlecnt} % Bottle counter
+\newcounter{bottlemax} % Bottle loop end
% Flip image if odd
\newcommand\oddflip[2][]{
diff --git a/zeitung/parts/rankingtemplate.tex b/zeitung/parts/rankingtemplate.tex
index 6603fd5..4ab70fe 100644
--- a/zeitung/parts/rankingtemplate.tex
+++ b/zeitung/parts/rankingtemplate.tex
@@ -3,5 +3,11 @@
}
\providecommand\rankinganswer[2]{
- \item #1: #2
+ \item #1:
+ \setcounter{bottlecnt}{0}
+ \setcounter{bottlemax}{#2}
+ \stepcounter{bottlemax} % There is no <= in forloop
+ \forloop{bottlecnt}{1}{\value{bottlecnt} < \value{bottlemax}}{
+ \includegraphics[scale=.03]{flasche.png}
+ }
}