Generates LaTeX that shows the steps of the matrix version of Euclid's algorithm for finding GCDs. Works in Python 2 or 3.
Call with as many pairs of numbers as required, like so:
python gen.py 79,20 127,13 > output.txt
python gen.py 79,20 >> screen.tex