implement reStructuredText directive 'sectnum'