I am using rst2pdf for converting an rst document. In the table of contents, I have the following
But I want the right aligned numbering, like the following
I am using the rst2pdf stylesheet for tableofcontents initialization. I didn't know how to adjust this alignment using the stylesheet or even at the rst format level. The current configuration I set is:
.. contents:: Table of Contents
.. sectnum::
:depth: 2
I want the solution either at rst-level or at rst2pdf-level.