\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%\usepackage{geometry}
%\geometry{verbose,a4paper,lmargin=0.5in,rmargin=0.5in,headheight=-1in}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\usepackage[authoryear]{natbib}
\makeatletter
\IfFileExists{mflogo.sty}%
  {\RequirePackage{mflogo}}%
 {\TBWarning
     {Package mflogo.sty not available --\MessageBreak
       Proceeding to emulate mflogo.sty}
   \DeclareRobustCommand\logofamily{%
     \not@math@alphabet\logofamily\relax
     \fontencoding{U}\fontfamily{logo}\selectfont}
   \DeclareTextFontCommand{\textlogo}{\logofamily}
   \def\MF{\textlogo{META}\-\textlogo{FONT}\@}
   \def\MP{\textlogo{META}\-\textlogo{POST}\@}
   \DeclareFontFamily{U}{logo}{}
   \DeclareFontShape{U}{logo}{m}{n}{%
     <8><9>gen*logo%
     <10><10.95><12><14.4><17.28><20.74><24.88>logo10%
   }{}
   \DeclareFontShape{U}{logo}{m}{sl}{%
     <8><9>gen*logosl%
     <10><10.95><12><14.4><17.28><20.74><24.88>logosl10%
   }{}
   \DeclareFontShape{U}{logo}{m}{it}{%
     <->ssub*logo/m/sl%
   }{}%
  }
\makeatother
\begin{document}

\title{Citation Test with Package \texttt{natbib}}
\author{Herbert Vo\ss}
\maketitle

\begin{verbatim}
\usepackage[authoryear]{natbib}
\end{verbatim}

\begin{enumerate}
\item
\verb|\citet[see][page 99ff]{goossens:companion}|\\
Type 1 (citet), Demo: Some nonsense text to show linebreak.\citet[see][page 99ff]{goossens:companion}
\item
\verb|\citet[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 1, Demo: Some nonsense text to show linebreak.\citet[see][page 99ff]{goossens:companion,hagen:metafun}
\item
\verb|\citep[see][page 99ff]{goossens:companion}|\\
Type 2 (citep), Demo: Some nonsense text to show linebreak.\citep[see][page 99ff]{goossens:companion}
\item
\verb|\citep[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 2, Demo: Some nonsense text to show linebreak.\citep[see][page 99ff]{goossens:companion,hagen:metafun}
\item
\verb|\citealt[see][page 99ff]{goossens:companion}|\\
Type 3 (citealt), Demo: Some nonsense text to show linebreak.\citealt[see][page 99ff]{goossens:companion}
\item
\verb|\citealt[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 3, Demo: Some nonsense text to show linebreak.\citealt[see][page 99ff]{goossens:companion,hagen:metafun}
\item
\verb|\citealp[see][page 99ff]{hagen:metafun}|\\
Type 4 (citealp), Demo: Some nonsense text to show linebreak.\citealp[see][page 99ff]{hagen:metafun}
\item
\verb|\citealp[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 4, Demo: Some nonsense text to show linebreak.\citealp[see][page 99ff]{goossens:companion,hagen:metafun}
\item
\verb|\citeauthor[see][page 99ff]{hagen:metafun}|\\
Type 5 (citeauthor), Demo: Some nonsense text to show linebreak.\citeauthor[see][page 99ff]{hagen:metafun}
\item
\verb|\citeauthor[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 5, Demo: Some nonsense text to show linebreak.\citeauthor[see][page 99ff]{goossens:companion,hagen:metafun}
\item
\verb|\citeyear[see][page 99ff]{hagen:metafun}|\\
Type 6 (citeyear), Demo: Some nonsense text to show linebreak.\citeyear[see][page 99ff]{hagen:metafun}
\item
\verb|\citeyear[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 6, Demo: Some nonsense text to show linebreak.\citeyear[see][page 99ff]{goossens:companion,hagen:metafun}
\item
\verb|\citeyearpar[see][page 99ff]{hagen:metafun}|\\
Type 7 (citeyearpar), Demo: Some nonsense text to show linebreak.\citeyearpar[see][page 99ff]{hagen:metafun}
\item
\verb|\citeyearpar[see][page 99ff]{goossens:companion,hagen:metafun}|\\
Type 7, Demo: Some nonsense text to show linebreak.\citeyearpar[see][page 99ff]{goossens:companion,hagen:metafun}
\end{enumerate}

\begin{verbatim}
\nocite{*}
\bibliographystyle{apalike}
\bibliography{natbib}
\end{verbatim}
\nocite{*}
\bibliographystyle{apalike}
\bibliography{natbib}

\end{document}
