New versions of docutils starting from 0.6 have introduced some changes in the LaTeX translator which made doctool fail. This patch adds a workaround for those new versions; for older docutils versions things should keep working normally.