%%
%% This is file `combinet.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% combine.dtx  (with options: `pck')
%% 
%%   Author: Peter Wilson, Herries Press
%%   Maintainer: Will Robertson (will dot robertson at latex-project dot org)
%%   Copyright 2000, 2001, 2002, 2003 Peter R. Wilson
%%   Copyright 2010 Will Robertson
%% 
%%   This work may be distributed and/or modified under the
%%   conditions of the LaTeX Project Public License, either
%%   version 1.3c of this license or (at your option) any
%%   later version: <http://www.latex-project.org/lppl.txt>
%% 
%%   This work has the LPPL maintenance status "maintained".
%%   The Current Maintainer of this work is Will Robertson.
%% 
%%   This work consists of the files listed in the README file.
%% 
\ProvidesPackage{combinet}
  [2010/03/22 v0.7
              document titles in ToC]
  source file for the combine class]
\@ifclassloaded{combine}{}{%
  \PackageError{combinet}{The `combine' class is expected}{\@ehc}%
}

\newif\ifc@lnomtitle
  \c@lnomtitlefalse
\newif\ifc@lnomauthor
  \c@lnomauthorfalse
\newif\ifc@lnothanks
  \c@lnothanksfalse
\newif\ifc@lpubopt
  \c@lpuboptfalse
\newif\ifc@lpubtop
  \c@lpubtopfalse
\newif\ifc@lpubs
  \c@lpubsfalse

\DeclareOption{nomtitle}{\c@lnomtitletrue}
\DeclareOption{nomauthor}{\c@lnomauthortrue}
\DeclareOption{nothanks}{\c@lnothankstrue}
\DeclareOption{pub}{\c@lpubopttrue\c@lpubtopfalse\c@lpubstrue}
\DeclareOption{pubtop}{\c@lpubtoptrue\c@lpuboptfalse\c@lpubstrue}
\ProcessOptions\relax

\ifc@lpubs
  \renewcommand{\published}[2][\@empty]{%
    \c@lpubtrue
    \ifx #1\@empty
      \gdef\c@lpubtoc{#2}
    \else
      \gdef\c@lpubtoc{#1}
    \fi
    \gdef\c@lpubbody{#2}
  }
\fi

\appendiargdef{\title}{%
  \begingroup
    \renewcommand{\thanks}[1]{}
    \protected@xdef\c@l@title{#1}
  \endgroup
}
\appendiargdef{\author}{%
  \begingroup
    \renewcommand{\thanks}[1]{}
    \renewcommand{\and}{\unskip, }
    \protected@xdef\c@l@author{#1}
  \endgroup
}

\def\c@lbmaketitle{\par
  \begingroup
    \let\newpage\relax
    \let\@maketitle\c@lb@maketitle
    \ifc@lpub
      \ifc@lpubtop
        \ifc@lnopubindoc\else
          {\parindent\z@ \pubfont \c@lpubbody\par\nobreak}
        \fi
      \fi
    \fi
    \c@lmtitle        %% typeset the title block
  \endgroup
  \setcounter{footnote}{0}
  \begingroup
    \let\thanks\@empty
    \ifc@ltoctitle\else
      \ifc@lnomtitle\else
        \ifx\@title\@empty\else
          \ifc@lnothanks
            \c@laaddcontentsline{toc}%
              {coltoctitle}{\protect\numberline{}\c@l@title}%
          \else
            \c@laaddcontentsline{toc}%
              {coltoctitle}{\protect\numberline{}\@title}%
          \fi
        \fi
      \fi
    \fi
    \ifc@ltocauthor\else
      \ifc@lnomauthor\else
        \ifx\@author\@empty\else
          \ifc@lnothanks
            \c@laaddcontentsline{toc}%
              {coltocauthor}{\protect\numberline{}\c@l@author}
          \else
            \c@laaddcontentsline{toc}%
              {coltocauthor}{\protect\numberline{}\@author}
          \fi
        \fi
      \fi
    \fi
  \endgroup
  \ifc@lpub
    \ifc@lpubopt
      \ifc@lnopubindoc\else
        {\parindent\z@ \pubfont \c@lpubbody\par\nobreak}
      \fi
    \fi
    \ifc@lpubs
      \ifc@lnopubintoc\else
        \c@laaddcontentsline{toc}{published}{\protect\numberline{}\c@lpubtoc}
      \fi
    \fi
  \fi
  \c@lmtitlempty
}

\endinput
%%
%% End of file `combinet.sty'.