title: Pandoc-generated PDF: Change list numbering style
body: <p>What is the way to change the style of numbers in ordered lists generated by Pandoc?</p>
  <p>For the following Markdown input</p>
  <pre><code>1. One
  2. Two
      1. Sub 1
      2. Sub 2
  </code></pre>
  <p>Pandoc generates the following Latex output</p>
  <pre><code>\begin{enumerate}
  \def\labelenumi{\arabic{enumi}.}
  \itemsep1pt\parskip0pt\parsep0pt
  \item
    One
  \item
    Two
  
    \begin{enumerate}
    \def\labelenumii{\arabic{enumii}.}
    \itemsep1pt\parskip0pt\parsep0pt
    \item
      Sub 1
    \item
      Sub 2
    \end{enumerate}
  \end{enumerate}
  </code></pre>
  <p>This results in the following PDF output:</p>
  <pre><code>1. One
  2. Two
      1. Sub 1
      2. Sub 2
  </code></pre>
  <p>While I'm trying to achieve</p>
  <pre><code>1. One
  2. Two
      2.1. Sub 1
      2.2. Sub 2
  </code></pre>
  <p>I tried to redefine style of numbering in the default template with these commands</p>
  <pre><code>\renewcommand{\labelenumii}{\theenumii}
  \renewcommand{\theenumii}{\theenumi.\arabic{enumii}.}
  </code></pre>
  <p>but as Pandoc generates explicit definition for <code>labelenumii</code> this solution does not work.</p>
  <h1>Update</h1>
  <p>It turns out that the problem could be resolved by using <code>#.</code> notation instead of <code>1.</code> one. For whatever reason Pandoc skips styling only for lists defined this way and interprets the standard Markdown notation as an instruction to style list with plain numbers. Hopefully in future versions it will be a bit more flexible and will add the support for nested numbers in lists.</p>