热度: |
The questions solved:
1.Main file and child file can have their own title, author, date information.
2.The content page do not appear in main file.
3.Natbib can be called in main file and child file separately except renamed.
————–The main file————————-
\documentclass[a4paper, 12pt]{article} \usepackage{/home/CT/server/texmf/CtArticle} \usepackage{subfiles} %\usepackage{standalone} %\graphicspath %\newif\ifmultiple %\multipletrue means called by main file %\multipletrue \let\ctbibliography\bibliography \let\ctbibliographystyle\bibliographystyle \author{\href{mailto:chentong\_biology@163.com}{Chen Tong}} \title{main} \date{\today} \begin{document} \maketitle \def\author#1{} \def\title#1{} \def\date#1{} \def\ctbibliographystyle#1{} \def\ctbibliography#1{} \tableofcontents \let\tableofcontents\relax \clearpage \subfile{child} \bibliographystyle{cell} % (uses file ``plain.bst'') \bibliography{all} % expects file ``ref.bib'' \end{document} |
——-The child file—————————–
\documentclass[main.tex]{subfiles} \graphicspath{{mmp/}} \author{\href{mailto:chentong\_biology@163.com}{Chen Tong}} \title{child} \date{\today} \begin{document} \maketitle \tableofcontents \clearpage \section{ccc} \ctbibliographystyle{cell} % (uses file ``plain.bst'') \ctbibliography{child} % expects file ``ref.bib'' \end{document} |
——————End ———————