I use Pandoc to convert a tex
file to docx
. I used the following command
pandoc -s foo.tex --bibliography=foo.bib -o foo.docx
But in the output word document, citation are in format of (author date)
, while I want just a number like [1]
.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI use Pandoc to convert a tex
file to docx
. I used the following command
pandoc -s foo.tex --bibliography=foo.bib -o foo.docx
But in the output word document, citation are in format of (author date)
, while I want just a number like [1]
.
The solution is to use a CSL file to format the citations. I used ieee.csl
from https://github.com/citation-style-language/styles
pandoc -s foo.tex --bibliography=foo.bib --csl=ieee.csl -o foo.docx
Pandoc
can use any CSL file to format your citations. Please check out the Zotero style repo and download a matching style.