From 34bd8d383e12cda427cfd1cdd7945630f5cbef94 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 29 Jan 2024 17:48:41 +0100 Subject: make the width of the be table columns variable --- latex/common.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/latex/common.tex b/latex/common.tex index f99d46c4..80c910b1 100644 --- a/latex/common.tex +++ b/latex/common.tex @@ -31,16 +31,16 @@ \newcommand{\pgap}[1]{\uline{\psolution{#1}}} \fi -\newcommand{\beTabelle}{% +\newcommand{\beTabelle}[1][3cm]{% \centering -\begin{tikzpicture}[cell/.style={draw, minimum height=1cm, minimum width=3cm}] +\begin{tikzpicture}[cell/.style={draw, minimum height=1cm, minimum width=#1}] \node [cell] at (1,0) {Aufgabe}; \node [cell] at (1,-1) {BEs}; \node [cell] at (1,-2) {}; \foreach \x [count=\xi] in {1,...,\theAufg}{% - \node [cell] at ([shift={(1,0)}]\xi*3cm,0) {\xi}; - \node [cell] at ([shift={(1,-1)}]\xi*3cm,0) {\ref{a:\xi}}; - \node [cell] at ([shift={(1,-2)}]\xi*3cm,0) {}; + \node [cell] at ([shift={(1,0)}]\xi*#1,0) {\xi}; + \node [cell] at ([shift={(1,-1)}]\xi*#1,0) {\ref{a:\xi}}; + \node [cell] at ([shift={(1,-2)}]\xi*#1,0) {}; } \end{tikzpicture} } -- cgit v1.2.3