# using combine class with revtex4-1 - command \published already defined

I'm trying to combine (with combine class) many (about 100) TeX files to prepare a book of abstracts for a conference. They are written using revtex4-1 class. When I use this classes together

\documentclass[11pt,colclass=revtex4-1]{combine}
\title{Book of abstracts}

\begin{document}
\tableofcontents % main ToC
\clearpage

\section{Editor's introduction}
bla bla bla

%\begin{papers} % start of individual articles/papers
%\coltoctitle{1st article} % first article title into main ToC
%\coltocauthor{A.~N.~Author} % first authors into main ToC
%\label{art1}
%\import{art1} % first article, may have own ToC,
%\end{papers}

\clearpage
\end{document}


I get this error:

! LaTeX Error: Command \published already defined.



-
Since you're willing to edit revtex4-1.cls simply comment out the definition of \published. –  Lev Bishop May 4 '12 at 19:27

define an own wrapper class my-revtex.cls which sets the \published to undefined.

\RequirePackage{filecontents}
\begin{filecontents*}{my-revtex.cls}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{revtex4-1}}
\ProcessOptions\relax
\let\Published\published% save the one from revtex
\let\published\relax
\endinput
\end{filecontents*}
\documentclass[11pt,colclass=my-revtex]{combine}
\usepackage{hyperref}
\title{Book of abstracts}

\begin{document}
\tableofcontents % main ToC
\clearpage

\section{Editor's introduction}
bla bla bla

\begin{papers} % start of individual articles/papers
\coltoctitle{1st article} % first article title into main ToC
\coltocauthor{A.~N.~Author} % first authors into main ToC
\label{art1}
%\import{art1} % first article, may have own ToC,
\end{papers}

\clearpage
\end{document}

-


-