-
29 Mar 2008
Checking references with Python
written by Sergio Fernández at 20h35
Check references in a document is a very ugly task, specially with long documents. As it’s a task that I have to do more often that I would like, I think it’s better to improve the process as much as possible. So based in an old script that Iván and I wrote for my bachelor thesis, I’ve wrote an extensible references checker in python. Extensible because for the moment it only implements handlers for plain text, but the design easily admits more handlers. Surprisingly a .doc can be parsed in that way (as text), but not .odt.
So now I can do things like:
$ python references.py foo.tex | grep 404:-)




