title: Pandoc doesn't seem to use settings in docx template
body: <p>I'm using Pandoc v1.12.2.1 to convert <code>html</code> to <code>docx</code>.  It's working, generally, but I'm trying to get it to read in a <code>docx</code> template file so I can tell it to use Arial for the font and to make all headings black (instead of blue as they're coming out at the moment).</p>
  <p>The template file is at</p>
  <pre><code>/path/to/my/project/public/pandoc/templates/reference.docx
  </code></pre>
  <p>and i'm calling Pandoc like this:</p>
  <pre><code>pandoc --data-dir /path/to/my/project/public/pandoc --template reference.docx -s &quot;$input&quot; -o &quot;$output&quot;
  </code></pre>
  <p>Where <code>$input</code> and <code>$output</code> are the html file I'm reading in and the destination of the resulting <code>docx</code> file respectively.</p>
  <p>It produces a <code>docx</code> file, but it doesn't take my template into account - it looks identical to when I don't use a template file.  I think it's <em>reading</em> the <code>reference.docx</code> file, because if I change the filename it complains about it not being there.</p>
  <p>To produce the template I followed the instruction on [https://pandoc.org/MANUAL.html#option--reference-doc][1] which was to take a <code>docx</code> file produced by Pandoc, edit the style settings, and then save it.</p>
  <p>I've put the template file [here][2] in case anyone can see anything wrong with it.</p>
  <p>I'm trying to do this in Ubuntu 14.04, using LibreOffice, and I wonder if that has anything to do with it not working?  Do I need to edit the template in Microsoft Word in Windows?</p>
  <p>Grateful for any advice.</p>
  <p><strong>EDIT</strong> - I've also tried this:</p>
  <pre><code>pandoc &quot;$input&quot; -s --reference-docx /path/to/my/project/public/pandoc/templates/reference.docx  -o &quot;$output&quot;
  ``
  
  and have the same result:  it doesn't seem to use the styles, but it will complain if I change the filename, suggesting that it is reading the doc.
  
  
    [1]: https://pandoc.org/MANUAL.html#option--reference-doc
    [2]: https://www.dropbox.com/s/e4dl9avue1i7vkr/reference.docx?dl=1
  </code></pre>