Given:
\documentclass{minimal}
\usepackage{standalone}
\begin{document}
\input{inclusion}
\nocite{*}
\bibliographystyle{plain}
\bibliography{test}
\end{document}
With:
\documentclass{minimal}
\begin{document}
Hello World!
\end{document}
And:
@book{Bateman.1906,
author = {Bateman, Newton and Selby, Paul and Short, William F.},
year = {1906},
title = {Historical encyclopedia of Illinois},
address = {Chicago},
publisher = {Munsell Pub. Co.}
}
@book{Beckett.1966,
author = {Beckett, J. C.},
year = {1966},
title = {The making of modern Ireland, 1603-1623},
address = {London},
publisher = {Faber}
}
I get the following error:
! LaTeX Error: Cannot be used in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.5 \nocite{*}
?
Yet if I comment out either \input{inclusion} or \nocite{*} the test compiles without error. I'm running a command line of latexmk -xelatex test on Win7 Ultimate. TeX courtesy of MikTeX.
So either I'm doing something egregious or there is something wrong with standalone? Suggestions and brickbats welcome.
inclusionfile? Why do you want to usestandalone? – Ignasi Mar 13 at 8:24\nocitegets confused by the changes done bystandalone. The solution I posted there should also work with the standard\nocite, not just the one of theapacitepackage. I might had a fix for this tostandaloneitself, maybe as an option. – Martin Scharrer♦ Mar 13 at 23:03