I'm trying to create a command to generate this type of tables:
where the number of columns changes (for example \preguntas{4}
or \preguntas{5}
). My first idea was
\newcommand{\preguntas}[1]
\begin{tabular}{|c|*{#1}{c|}}\hline
\multido{\i=1+1}{#1}{ & P\i }\\\hline
Calificación \multido{}{#1}{& }\\\hline
\end{tabular}
but I realized that multido
doesn't admit the use of &
. How can I create this command?