<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:18pt"><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 18pt; ">Thanks Phil, Donald, Yuri, Alan and all</div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 18pt; "><br></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5">I think previous aux file's are the problem, because natbib works fine if I use it with a fresh tex file. </font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5">Anyway guys, I just found that I can do what I need with the harvard package too. It has similar
 citation style as with the natbib. \citeasnoun, \citename, \citeyear, \citeaffixed are the commands I was just looking for.   That saves my time.  </font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5">Thanks again for all the helps and suggestions. You guys are awesome! </font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5">Have a nice day. </font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5">Mostafa</font></div><div><font
 class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="5"><br></font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 18pt; color: black; "><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Philip G. Ratcliffe <philip.ratcliffe@uninsubria.it><br><b><span style="font-weight: bold;">To:</span></b> Mostafa ali <wremostafa@yahoo.com>; Yuri Robbers <yuri.robbers@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> texhax@tug.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, March 9, 2011 2:05:37 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [texhax] Natbib problem<br></font><br>
<style><!--
 
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {font-family:"sans-serif";color:#1F497D;}
.MsoChpDefault
        {font-size:10.0pt;}
 _filtered {margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {}
--></style><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">Try deleting all aux and bbl files and then start from scratch with compilation.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">Cheers,  Phil</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"sans-serif";color:#1F497D;">  </span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"sans-serif";">From:</span></b><span
 style="font-size:10.0pt;font-family:"sans-serif";"> texhax-bounces@tug.org [mailto:texhax-bounces@tug.org] <b>On Behalf Of </b>Mostafa ali<br><b>Sent:</b> Tuesday, March 08, 2011 11:31 PM<br><b>To:</b> Yuri Robbers<br><b>Cc:</b> texhax@tug.org<br><b>Subject:</b> Re: [texhax] Natbib problem</span></p></div></div><p class="MsoNormal">  </p><div><div><p class="MsoNormal"><span style="font-size:18.0pt;">Hi Yuri</span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;">Thanks for your reply. But that is not the problem. I typed wrong here. In the original error message it comes as \harvardcite. But the problem is that I am not using any harvard style or any harvard package. But I am not sure why still getting this message. I want to use natbib package and want to use natbib reference citation code, e.g. citet, citep etc. </span></p></div><div><p
 class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;">Mostafa</span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;">  </span></p><div><div class="MsoNormal" align="center" style="text-align:center;"><span style="font-size:10.0pt;font-family:"sans-serif";"><hr size="1" width="100%" align="center"></span></div><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"sans-serif";">From:</span></b><span style="font-size:10.0pt;font-family:"sans-serif";"> Yuri Robbers <yuri.robbers@gmail.com><br><b>To:</b> Mostafa ali <wremostafa@yahoo.com><br><b>Cc:</b> texhax@tug.org<br><b>Sent:</b> Tue, March 8, 2011 2:43:18 PM<br><b>Subject:</b> Re: [texhax]
 Natbib problem<br></span><br>Hi Mostafa, </p><div><p class="MsoNormal">  </p></div><div><p class="MsoNormal">You probably mean \harvardcite rather than \havartcite. So isnert the missing r and replace the t with a d. That should solve your problem.</p></div><div><p class="MsoNormal">  </p></div><div><p class="MsoNormal">Best wishes,</p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt;">Yuri.</p><div><p class="MsoNormal">On Tue, Mar 8, 2011 at 10:14 PM, Mostafa ali <<a rel="nofollow" ymailto="mailto:wremostafa@yahoo.com" target="_blank" href="mailto:wremostafa@yahoo.com">wremostafa@yahoo.com</a>> wrote:</p><div><div><div><p class="MsoNormal"><span style="font-size:18.0pt;">Hi </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;">I am a new user to the Tex system. I wrote my thesis using havard package refrence style, but now I
 want to use natbib package. So I put \usepackage{natbib}, used \bibliographystyle{plainnat} and also changed cite to \citet{}. But don't know why I am getting this following error message. </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;color:red;">! undefined control sequence</span><span style="font-size:18.0pt;"></span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;color:red;">1.5 \havartcite</span><span style="font-size:18.0pt;"></span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;color:red;">                {chaudhry08}{}{}{}</span><span style="font-size:18.0pt;"></span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p
 class="MsoNormal"><span style="font-size:18.0pt;color:black;">I thought that it would be simple. Now I don't have any idea what's I am doing wrong. Any help would be appreciable.</span><span style="font-size:18.0pt;"></span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;">Thanks.</span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;">Mostafa</span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div><div><p class="MsoNormal"><span style="font-size:18.0pt;"> </span></p></div></div><p class="MsoNormal">  </p></div><p class="MsoNormal"><br>_______________________________________________<br><span>TeX FAQ: <a target="_blank"
 href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a></span><br><span>Mailing list archives: <a target="_blank" href="http://tug.org/pipermail/texhax/">http://tug.org/pipermail/texhax/</a></span><br><span>More links: <a target="_blank" href="http://tug.org/begin.html">http://tug.org/begin.html</a></span><br><br><span>Automated subscription management: <a target="_blank" href="http://tug.org/mailman/listinfo/texhax">http://tug.org/mailman/listinfo/texhax</a></span><br>Human mailing list managers: <a rel="nofollow" ymailto="mailto:postmaster@tug.org" target="_blank" href="mailto:postmaster@tug.org">postmaster@tug.org</a></p></div><p class="MsoNormal">  </p></div></div></div></div><p class="MsoNormal">  </p></div></div></div></div><div style="position: fixed; color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 18pt; "></div>


</div><br>







      </body></html>