Improved the recognition of tab and fig references.