Dear Stata users,

I've been using the -markstat- command (version 2.1) written by @German Rodriguez, which is very useful when working on dynamic documents. It's been working great (cross-references, etc work just fine). I'm using Stata/IC 16.0 and Pandoc 2.11.2 for Windows.

However, I've encountered a problem when using bibliographic references, which -markstat- should be able to handle, according to the author.

I've created a citations.bib file with the references, and I have saved it in the folder with my Stata and markdown code file (let me call it Example.stmd).

In the Example.stmd file, I've followed the author's instructions and entered the following code:

Code:
---
title: My title
author: Me
date: 3 Dec 2020
bibliography: citations.bib
---

My text & code appear here. Author [@author16] talked about this in his paper...
When I run the -markstat- command to create a pdf file

Code:
markstat using Example.stmd, pdf bibliography
I get the following error message:

Code:
Running Pandoc
C:\Mypath\Pandoc\pandoc.exe
file Example.pdx not found
I get the same error message when I add the keep option to the command and also when I remove the pdf option.

I want to reiterate that it's only the bibliography option that has been causing problems. All else works great.

Has anybody had the same problem? Any help with this would be much appreciated.