![独立且引用/交叉引用源文档](https://linux22.com/image/294994/%E7%8B%AC%E7%AB%8B%E4%B8%94%E5%BC%95%E7%94%A8%2F%E4%BA%A4%E5%8F%89%E5%BC%95%E7%94%A8%E6%BA%90%E6%96%87%E6%A1%A3.png)
如何在文档中引用或交叉引用源文档中的项目standalone
?
\documentclass{article}
\usepackage[mode=buildnew]{standalone}
\begin{filecontents}{stdalone.tex}
\documentclass{standalone}
\begin{document}
This is a test \cite{cref}.
\end{document}
\end{filecontents}
\begin{document}
This is the source file.
This works here: \cite{cref}
But does not work here: \includestandalone{stdalone}
\begin{thebibliography}{10}
\bibitem{cref}
A test reference.
\end{thebibliography}
\end{document}