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.


From the default stylesheet, I think this will pick up the
item-liststyle, which is defined as:These
commands: []are actually table styles ... check the docs for tables and that may help with how to align each column, try setting theALIGNvalue, something like this (sorry I don't have an example handy)