title: How to right align section numbers using the rst2pdf stylesheet
body: <p>I am using rst2pdf for converting an rst document. In the table of contents, I have the following</p>
  <p><a href="https://i.stack.imgur.com/6o8jN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6o8jN.png" alt="left aligned numbering" /></a>.</p>
  <p>But I want the right aligned numbering, like the following</p>
  <p><a href="https://i.stack.imgur.com/CLGYi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CLGYi.png" alt="right aligned numbering" /></a>.</p>
  <p>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:</p>
  <pre><code>.. contents:: Table of Contents
     .. sectnum::
     :depth: 2
  </code></pre>
  <p>I want the solution either at rst-level or at rst2pdf-level.</p>