(I'm not sure if this question is better suited to the LaTeX forum. I have posted it here because I suspect the problem is more about knitr
and RMarkdown than LaTeX.)
I have the following RMarkdown document in RStudio:
---
title: 'Capricious Behavior In Markdown: A Case Study'
header-includes:
- \usepackage{natbib}
- \setcitestyle{square,numbers,super}
output:
word_document: default
pdf_document:
citation_package: natbib
html_document: default
bibliography: refs.bib
---
Here's an equation with a citation\citep{aune}:
\begin{align}
5 &= 5
\end{align}
which produces the desired result when knitted as PDF:
but mysteriously loses both the equation and the reference when knitted as Word:
How do I produce a Word document that looks like the PDF?