Addresses issue #33: improved TeX log parsing.

Extracts line number information and copies context for more messages now.