tables and hist in .tex