I am using MiKTeX TeXworks on Windows 7 and a natbib
bibliography style. When I attempt to cite using \citep
I get the following message:
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omsppl.fd")
! Undefined control sequence.
l.13 ... \citep{Daddz14}
?
This is an MWE:
\documentclass[11pt,a4paper,oneside]{book}
\usepackage{lscape}
\usepackage{graphicx}
\usepackage{amsmath,natbib,wrapfig}
\usepackage{verbatim}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{caption}
\usepackage{fancyhdr}
\usepackage{bibentry}
\pagestyle{fancy}
\usepackage{palatino}
\usepackage{multirow,colortbl,longtable}
\newcommand*{\refname}{Bibliography}
\begin{document}
\citep{Daddz14}
\bibliographystyle{natbib}
\bibliography{mybib}
\end{document}
This is the entry in my .bib
file:
@article{Daddz14,
author={D'Addezio,JM and Bingham,FM},
title={A subtropical {N}orth {A}tlantic regional atmospheric moisture
budget},
journal=jgr_o,
volume={119},
number={12},
pages={8731-8748},
year={2014}}
It works absolutely fine when I use \cite
but none of the other citation commands seem to work either e.g. \citealp
or \citet
. I've recently had no trouble with \citep
and natbib
on the same computer using MiKTeX so I'm wondering if it might have something to do with the book document class (previously I'd used article). The omsppl.fd
file might be important too, but I have no idea what that is! I have also seen a few other questions similar to this but none of the solutions have helped.
Does anyone have any ideas?
Best Answer
I've sorted this out now. Thank you to @moewe for pointing me towards the official CTAN
natbib
stuff. It seems that part of my problem is that the.sty
file was in a different directory from my.tex
file. My\bibliographystyle
command did include the path to the directory wherenatbib.sty
was stored but that didn't work.Now that I've got all the correct files in the correct place\citep
is working exactly as it should do.Thanks to those of you who tried to help.