summaryrefslogtreecommitdiffstats
path: root/trivia/sensommarfest/tex
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2019-09-01 13:10:26 +0200
committerGustav Eek <gustav.eek@fripost.org>2019-09-01 13:10:26 +0200
commit5e0cc1e9d0869a02ef0e6cbd6dc6f1fb8daaa8ee (patch)
treea50e26ed4a19d9e0c66251c81a2432cd372618dc /trivia/sensommarfest/tex
parent893634662574567f867559ffe05aa827dee17dd9 (diff)
[trivia] Sensommarfest Inital full quiz added
Diffstat (limited to 'trivia/sensommarfest/tex')
-rw-r--r--trivia/sensommarfest/tex/answers.tex7
-rw-r--r--trivia/sensommarfest/tex/form.tex52
-rw-r--r--trivia/sensommarfest/tex/header.tex15
-rw-r--r--trivia/sensommarfest/tex/questions.tex7
4 files changed, 81 insertions, 0 deletions
diff --git a/trivia/sensommarfest/tex/answers.tex b/trivia/sensommarfest/tex/answers.tex
new file mode 100644
index 0000000..5d848a6
--- /dev/null
+++ b/trivia/sensommarfest/tex/answers.tex
@@ -0,0 +1,7 @@
+\documentclass[a4paper, 11pt, portrait]{article}
+\usepackage[a4paper, margin = 0pt]{geometry}
+\usepackage{pdfpages}
+\pagestyle{empty}
+\begin{document}
+\includepdf[pages = -, nup = 2x2]{tmp/answers-small.pdf}
+\end{document}
diff --git a/trivia/sensommarfest/tex/form.tex b/trivia/sensommarfest/tex/form.tex
new file mode 100644
index 0000000..4d85750
--- /dev/null
+++ b/trivia/sensommarfest/tex/form.tex
@@ -0,0 +1,52 @@
+\documentclass[a4paper,12pt]{article}
+\usepackage[a4paper, margin=0pt]{geometry}
+
+\setlength{\parindent}{0pt}
+\pagestyle{empty}
+
+\newlength \rulethickness
+\setlength \rulethickness {0pt}
+\setlength \fboxsep {-\rulethickness}
+\setlength \fboxrule {\rulethickness}
+
+\renewcommand{\arraystretch}{1.9}
+
+\newcommand \form {
+ \fbox{
+ \begin{tabular}{l}
+ Namn: \\ \hline \\
+ \begin{tabular}{r|c|c|c|}
+ & ~ 1 ~ & ~ X ~ & ~ 2 ~ \\ \hline
+ 1 ~ & \quad\ \quad\ & \quad\ \quad\ & \quad\ \quad\ \\ \hline
+ 2 ~ & & & \\ \hline
+ 3 ~ & & & \\ \hline
+ 4 ~ & & & \\ \hline
+ 5 ~ & & & \\ \hline
+ 6 ~ & \multicolumn{3}{l|}{Utsl:} \\ \hline
+% 7 ~ & & & \\ \hline
+% 8 ~ & & & \\ \hline
+% 9 ~ & & & \\ \hline
+% 10 ~ & & & \\ \hline
+ \end{tabular}
+ \end{tabular}
+ }
+}
+
+\newcommand \hf {
+ \mbox{} \hfill \mbox{}
+}
+\newcommand \hr {
+ \fbox{\raisebox{0pt}[10pt][0pt]{\rule{1\textwidth}{\rulethickness}}}
+}
+\newcommand \vf {
+ \hr \vfill \hr
+}
+
+\begin{document}
+\vf
+\hf \form \hf \hf \form \hf
+\vf
+\vf
+\hf \form \hf \hf \form \hf
+\vf
+\end{document}
diff --git a/trivia/sensommarfest/tex/header.tex b/trivia/sensommarfest/tex/header.tex
new file mode 100644
index 0000000..67a98b5
--- /dev/null
+++ b/trivia/sensommarfest/tex/header.tex
@@ -0,0 +1,15 @@
+\usepackage{enumitem}
+
+\makeatletter
+\newcommand*{\triviaenum}[1]{%
+ \expandafter\@triviaenum\csname c@#1\endcsname%
+}
+
+\newcommand*{\@triviaenum}[1]{%
+ $\ifcase #1 \or 1. \or \textrm{X}. \or 2. \or \textrm{\O}. %
+ \else\@ctrerr\fi$%
+}
+\AddEnumerateCounter{\triviaenum}{\@triviaenum}{3}
+\makeatother
+
+% Ø.%
diff --git a/trivia/sensommarfest/tex/questions.tex b/trivia/sensommarfest/tex/questions.tex
new file mode 100644
index 0000000..3a2a994
--- /dev/null
+++ b/trivia/sensommarfest/tex/questions.tex
@@ -0,0 +1,7 @@
+\documentclass[a4paper, 11pt, landscape]{article}
+\usepackage[a4paper, margin = 0pt]{geometry}
+\usepackage{pdfpages}
+\pagestyle{empty}
+\begin{document}
+\includepdf[pages = -, nup = 2x1]{tmp/questions-small.pdf}
+\end{document}