Monday, 19 August 2013

Short way to create simple multiple rows in a tabular

Short way to create simple multiple rows in a tabular

Let me please emphasise first, that I do not need a sophisticated tabular
--- I'm looking for a clever way to create a simple, but long tabular.
I'd like to create an empty tabular which has e.g. 25 rows. MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{tabular}{|*{4}{c|}}\hline
\textbf{Akten-Nr.} & \textbf{Angelegenheit} & \textbf{Frist} &
\textbf{SB} \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
& & & \\\hline
\end{tabular}
\end{document}
What I'd like to write is something like:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{tabular}{|*{5}{c|}}\hline
\textbf{Akten-Nr.} & \textbf{Angelegenheit} & \textbf{Frist} &
\textbf{SB} \\\hline
\multiplerows{25}{& & & \\\hline}
\end{tabular}
\end{document}
You see, I'd like to save the effort to print 25 (or howmuch ever) times &
& & \\\hline and instead one line with a »multiplicator«.
Any ideas of a (simple?) package, which offers something like
»\multiplerows{}{}«? Or can someone with greater karma in tabulars spill
some lines of code?

No comments:

Post a Comment