I'm at a loss. It's probably not possible out of the box, so I'm looking for a workaround.
In my markdown document, that I use with pandoc to generate a PDF, I want to include a figure with subfigures like this:
\begin{figure}[t]
\centering
\subfigure[fig 1]
{\includegraphics[]{figa.pdf}\label{fig:figa}
}
\hspace{0.5cm}%
\subfigure[fig 2]
{\includegraphics[]{figb.pdf}\label{fig:figb}
}
\caption[fig 1 and 2]{caption [@ref]}
\label{fig:figs}
\end{figure}
Is there a way to make pandoc-citeproc parse the reference [@ref] in the raw latex environment? Or substitute the reference with another command that would still allow me to go from markdown to pdf directly without converting to tex first and then compile with pdflatex and bibtex?
I am using pandoc with the xelatex switch, a custom template, .bibtex
+ .csl
files and the pandoc-crossref filter.