How do I combine multiple articles into a single volume with auto generated table of content. Is it possible?
2 Answers
EDIT: As noted here the combine class is no longer usable with current versions of LaTeX. Please disregard this answer...
Here is a MWE using the combine class, as suggested in the comments.
main.tex
\documentclass{combine}
\usepackage{combinet}
\begin{document}
\tableofcontents
\begin{papers}
\import{a1}
\end{papers}
\end{document}
a1.tex
\documentclass{article}
\author{Author}
\title{Title}
\begin{document}
\maketitle
\end{document}
Result
The combine class allows importing complete LaTeX documents, essentially ignoring the \begin{document} and \end{document} commands, with options for handling sub-document packages, etc. The combinet package works with the combine class to add imported document titles and authors to the main TOC when they are imported.
Having used this combination to create a complete journal volume from multiple articles, I can tell you there are many challenges to this task. For example, the authblk package will not behave as expected, and likewise for biblatex. However, similar problems emerge if you are going to try to roll your own title-blocks, etc.
- 2,732
create a single .tex file named as your wish (ie., book.tex, master.tex)
then include all your article in that same file like below, and dont forget to delete \documentclass{cej}, \begin{document}, and \end{document} in each and every article.
\documentclass{cej}
\begin{document}
\tableofcontents
\include{article1} %% include your multiple article
\include{article2} %%
\include{article3} %%
....
....
\include{articleN} %%
\end{document}
- 2,030
-
7These suggestions fail to address important issues, such as what to do with the title- and date-related information that must have been associated with the original stand-alone LaTeX documents. – Mico Feb 24 '17 at 05:47

combinepackage, for example – Jan 08 '17 at 11:27combinepackage. – Mico Feb 24 '17 at 05:50