maat - dynamic version in generated PDFs

Copied from what I made in math stat.