```
\documentclass{article}
\usepackage{subfiles}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{positioning,shapes}
\tikzset{special/.style={fill=cyan,ellipse}}
\usepackage[natbibapa]{apacite}
\bibliographystyle{apacite}
% From https://en.wikibooks.org/wiki/LaTeX/Modular_Documents#Subfiles_and_bibtex
% To get citations working in both the main and sub files
\def\biblio{\bibliography{ref}}
\begin{document}
\def\biblio{}
This is the main file!!
\subfile{Chap1/Chap1}
\newpage
\bibliography{ref}
\end{document}
```
一周热门 更多>