I'm not familiar with the functions of IPython itself, so it is hard for me to check this. With the ansi-tag you mean converting the bold, and color style to latex representatives? Would be nice! I'll give it a try.