Deal with ansi escape codes when nbconverting to latex

Correctly deals with "reset" codes and short codes.  Interprets blinking
style as bold.
Use int style instead of string.
New test case from MinRK.
Merge pull request #4807 from richardeverson/ansilatex

Correct handling of ansi colour codes when nbconverting to latex