jgm / pandoc-citeproc

Library and executable for using citeproc with pandoc
BSD 3-Clause "New" or "Revised" License
291 stars 61 forks source link

First note number always zero? (first-reference-note-number) #462

Closed baem2 closed 3 years ago

baem2 commented 4 years ago

I am trying to convert a latex file to docx, the CSL-style uses first-reference-note-number (http://www.zotero.org/styles/zeitschrift-fur-antikes-christentum). I tried various things, but the first-reference-note-number is always zero.

I installed recent pandoc and pandoc-citeproc via the .deb-file available here: https://github.com/jgm/pandoc/releases/tag/2.10.1

Am I doing something wrong or is it a bug? Any help much appreciated!

MWE:

I am calling pandoc -f latex -t docx --bibliography=my.bib --csl=zeitschrift-fur-antikes-christentum.csl -o wordfile.docx texfile.tex

The CSL file: http://www.zotero.org/styles/zeitschrift-fur-antikes-christentum

This is texfile.tex:

\documentclass{article}

\begin{document}

This is note 1.\footcite{testbook} This is note 2.\footcite{testbook2}

And this is note 3.\footcite{testbook} And this is note 4.\footcite{testbook2} 

\end{document}

This is my.bib

@book{testbook2,
  author     = {Some Author},
  location   = {Somecity},
  date       = {2000},
  gender     = {sf},
  number     = {12},
  series     = {Series},
  title      = {A long title},
}

@book{testbook2,
  author     = {Some Other Author},
  location   = {Somecity},
  date       = {2000},
  gender     = {sf},
  number     = {12},
  series     = {Series},
  title      = {A short title},
}