Convert text with ANSI color codes to HTML or to LaTeX.