Clean layout and include LaTeX plugins.