Refined documents with LaTeX