Dynamic tables for LaTeX