[Tex/LaTex] use biblatex to produce processed tex file for use with pandoc

biberbiblatexpandoc

I'm using biblatex (actually biblatex-chicago) with biber to process citations in an academic paper. Unfortunately I need to provide a Word file for a stage in the editorial process. I know that pandoc can use Bibtex refs and citeproc to create a bibliography, but it has a different syntax, and I don't want to set up the document to do that if I'm going to use biblatex in the end, and citeproc doesn't allow the same control that biblatex does.

So what I'd like to do is use biblatex as usual, but to produce a modified tex file rather than a pdf. I would then use pandoc to turn the tex into a docx file. Where my original tex file would have citation commands such as:

\cite{XXX2000}

the processed tex file would have commands to typeset the citation:

(XXX, 2000)

I imagine this is an intermediate stage in the biblatex/biber process.

Is there any way I can achieve this?

Thanks for any help.

UPDATE

Thanks to the comments below, I have solved this problem by using tex4ht.

A simple introduction to its use is here:
https://github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial

Note: to use tex4ht with latest versions of biblatex, you need to update one of the tex4ht files, biblatex.4ht. Details here:
http://cvr.cc/?p=901#comment-16733

Best Answer

Depending on the complexity of your source document, you should also be able to get a decent result with pandoc when converting directly from .tex to .docx. Pick an appropriate Chicago-style from the Zotero style repo and convert your file with pandoc -s -S --csl=Chicago_foo.csl --bibliography=foo.bib --filter pandoc-citeproc your_document.tex -o my_submission.docx. As indicated your mileage may vary, make sure you have the latest pandoc installed (1.16.0.2).