I would like to create a "journal" with several papers, using the combine class.
In the example below, there are one master file and two articles.
Master file:
\documentclass[11pt,a4paper]{combine}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english,french]{babel}
\usepackage[bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=\maxdimen, colorlinks=true, urlcolor=blue, linkcolor=red, implicit=false,dvipdfm]{hyperref}
\title{Journal of }
\author{A. N. Editor}
\begin{document}
\maketitle
\tableofcontents
\begin{papers}
\makeatletter
\let\@begindocumenthook\relax
\makeatother
\coltoctitle{An article}
\coltocauthor{A.~N.~Author}
\label{art1}
\import{art1}
\clearpage
\coltoctitle{Another article}
\coltocauthor{A.~N.~Other}
\label{art2}
\import{art2}
\clearpage
\end{papers}
\end{document}
First article:
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english,french]{babel}
\usepackage[bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=\maxdimen, colorlinks=true, urlcolor=blue, linkcolor=red, implicit=false, dvipdfm]{hyperref}
\title{An article}
\author{A.~N.~Author}
\begin{document}
\maketitle
Bla bla bla
\end{document}
Second article:
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english,french]{babel}
\usepackage[bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, bookmarksopenlevel=\maxdimen, colorlinks=true, urlcolor=blue, linkcolor=red, implicit=false, dvipdfm]{hyperref}
\title{Another article}
\author{A.~N.~Other}
\begin{document}
\maketitle
Bla bla bla
\end{document}
The compilation is stopped and an error message is given:
! TeX capacity exceeded, sorry [input stack size=5000].
\clearpage ...Call@BeforeClearDocument \clearpage
\Call@AfterLastShipout
l.17 \end{document}
If you really absolutely need more capacity, you can ask a wizard to enlarge me.
Note: If the hyperref package is not activated in the preamble of the master file, the entire document is correctly created.
I would like to get a document with hyperlinks (e.g. figures) and bookmarks. Thus, I would like to use hyperref. How can I solve this problem?

\@begindocumenthook, it hangs at\captions@French ->\captions@French– egreg Oct 10 '12 at 20:29