What is the difference between the standalone class vs the package? From what I understand, the usage is different by \documentclass{report} or \usepackage{standalone} respectively. Is the class for the sub files and the package is for the main file?
I have a subfile:
\documentclass{report}
\usepackage[numbers]{natbib}
\begin{document}
dummyref \cite{GSMAIntelligence2016}
\bibliographystyle{unsrtnat}
\bibliography{ref}
\end{document}
This compiles fine with the pdflatex + bibtex + pdflatex (x2) command however if I change it to documentclass{standalone} and run the same command I get the following errors:
! LaTeX Error: Something's wrong--perhaps a missing \item.
! LaTeX Error: Something's wrong--perhaps a missing \item.
! Missing \endgroup inserted.
! Missing } inserted.
! LaTeX Error: \begin{document} ended by \end{thebibliography}.
! Extra \endgroup.
! Too many }'s.
cropoption is enabled by default, andcropassumes you have only one paragraph, you must add thevarwidth=trueoption to allow multiple paragraphs withcrop. – Alan Munn Jan 13 '16 at 16:28