Following the recommendations to use the Natbib according to http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management, I continue to receive errors when I try to follow the guidelines.

The error:

natbib.sty (line 351)
LaTex error: Unknown option 'options' for package 'natbib'. (\newcommand)

Code for thesis.tex:

%Default style using S5 paper
%Use this instead if you need A4 paper.

%: Macro file for Latex
% Macros help you summarize frequently repeated Latex commands.
% Here, they are placed in an external file /Latex/Macros/MacroFile1.tex
% An macro that you may use frequently is the figuremacro


% Change how references are included (see the natbib package).


%: ----------------------- ´Bibliography ------------------------

% The section below defines how references are listed and formatted.

%\begin{multicols}{2} % \begin{multicols}{ # columns}[ header text][ space] %uncomment to have 2 columns
\begin{scriptsize} % tiny(5) < scriptsize(7) < footnotesize(8) < small (9)

%Default style file. Change according to you preferences.

% Changes the header from Bibliography to References

% File containing all references in BibTex format


Code for thesis.cls:

%-------------------------- identification ---------------------
\ProvidesClass{Latex/Classes/PhDthesisSU}[2011/09/23 PhD thesis class]

%:-------------------------- book style -----------------------

\LoadClass[pdftex, a4paper]{book} 

%:-------------------------- packages for fancy things -----------------------
\usepackage{mathptmx} % Default font for dissertations is Times.
%\usepackage{fourier} % If mathematics don't display well using Times, then use Fourier.
\usepackage[pdftex]{graphicx} % for improved inclusion of graphics
\usepackage{epstopdf} % converts eps figures to pdf
\usepackage[margin=10pt,font=small,labelfont=bf]{caption} % for improved layout of figure captions with extra margin, smaller font than text
\usepackage{fancyhdr} % for better header layout
\usepackage[usenames, dvipsnames]{color}
\usepackage{enumerate} % enumerated list for List of Papers
\usepackage{multicol} % for pages with multiple text columns, e.g. References
\setlength{\columnsep}{20pt} % space between columns; default 10pt quite narrow
\usepackage[nottoc]{tocbibind} % correct page numbers for bib in TOC, nottoc suppresses an entry for TOC itself




% Removing the "Chapter n" text an replacing it by a single number.
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
      % Skipping the "Chapter n" text 
        \baselineskip=20pt\rightskip 2cm plus 3cm\LARGE\thechapter.\hspace{0.5em}%Chapterpoint added.
    \LARGE #1\par\nobreak
    \vskip 74\p@
  {\parindent \z@ \raggedright
    \huge  #1\par\nobreak
    \vskip 74\p@

%:-------------------------- Glossary/Abbrev./Symbols -----------------------

\usepackage{nomencl} % load nomencl extension; include in TOC
%\nomrefpage % to include page numbers after abbrevations
\renewcommand{\nomlabel}[1]{\textbf{#1}} % make abbreviations bold
\makenomenclature % used to be \makeglossary
\newcommand{\g}{\footnote{For all abbreviations see the glossary on page \pageref{nom}.}} % type "\g" to refer to glossary

% used to be for sorting into categories:
%  \ifthenelse{\equal{#1}{A}}{%
%   \item[\textbf{Roman Symbols}] }{%             A - Roman
%    \ifthenelse{\equal{#1}{G}}{%
%     \item[\textbf{Greek Symbols}]}{%             G - Greek
%      \ifthenelse{\equal{#1}{R}}{%
%        \item[\textbf{Superscripts}]}{%              R - Superscripts
%          \ifthenelse{\equal{#1}{S}}{%
%           \item[\textbf{Subscripts}]}{{%             S - Subscripts
%       \ifthenelse{\equal{#1}{X}}{%
%        \item[\textbf{Other Symbols}]}{{%    X - Other Symbols
%       \ifthenelse{\equal{#1}{Z}}{%
%        \item[\textbf{Acronyms}]}%              Z - Acronyms
%                       {{}}}}}}}}}}

%:-------------------------- PDF/PS setup -----------------------

%if you use a macTeX 2008 or later, use the ifpdf package

%--> Google.com search "hyperref options"
%--> http://www.ai.mit.edu/lab/sysadmin/latex/documentation/latex/hyperref/manual.pdf
%--> http://www.chemie.unibas.ch/~vogtp/LaTeX2PDFLaTeX.pdf 
%--> http://www.uni-giessen.de/partosch/eurotex99/ oberdiek/print/sli4a4col.pdf
%--> http://me.in-berlin.de/~miwie/tex-refs/html/latex-packages.html
\usepackage[ pdftex, plainpages = false, pdfpagelabels, 
             pdfpagelayout = useoutlines,
             bookmarksopen = true,
             bookmarksnumbered = true,
             breaklinks = true,
             colorlinks = false,  % was true
             linkcolor = blue,
             urlcolor  = blue,
             citecolor = red,
             anchorcolor = green,
             hyperindex = true,

\DeclareGraphicsExtensions{.png, .jpg, .jpeg, .pdf} %GIF doesn't work

%:-------------------------- page layout -----------------------

%S5 settings (default)


%Make al headlines non-fat
\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
    -.2ex}{2.3ex plus .2ex}{\Large}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize}}

%:-------------------------- page layout -----------------------

% No page numbering until chapter 1





}   % re-define plain page




% These macros are used to declare arguments needed for the
% construction of the title page and other preamble.

% Subtitle
% Defining the crest

% These macros define an environment for front matter that is always 
% single column even in a double-column document.


%   \noindent
%    {\large \@title~-- \@subtitle\\}\\
%    \noindent
%    {\Large\@author}


%define title page layout
{\large \vspace*{0mm} \hspace*{90mm} {{\@crest} \par} } %Move the logo
    { \huge \vspace*{30mm}{\noindent}{\@title} \par \vspace*{4mm}}
    {\LARGE {\noindent}{\@subtitle} \par \vspace*{8mm}}
    {{\Large {\noindent}\@author} \par}

%:-------------------------- front matter layout -----------------------

Code for thesis.bib:

   author = {Baumeister, R. F. and Leary, M. R.},
   title = {The need to belong: Desire for interpersonal attachments as a fundamental human motivation.},
   journal = {Psychological Bulletin},
   volume = {117},
   number = {3},
   pages = {497-529},
   year = {1995},
   type = {Journal Article}

Code for including citations in text:

  • 2
    [options] is not intended to be used as a literal string, it means to use whatever options you want at that point, for example the line you have commented out \usepackage[sort,compress]{natbib} which would use the sort and compress options Feb 7 '15 at 12:00
  • 2
    \include{Latex/Macros/MacroFile1} should be \input (or better give the file a .sty extension and use \usepackage{MacroFile1} you should not use \include in the preamble. Feb 7 '15 at 12:02
  • 1
    not strictly an error but the class file loads graphicx twice and the preamble loads it a third time (latex checks for this and only loads it once but..) Feb 7 '15 at 12:05
  • 3
    To elaborate on what David said, put \usepackage[square,numbers]{natbib} and remove the line \setcitestyle{square,numbers}.
    – user11232
    Feb 7 '15 at 12:05
  • @HarishKumar Please write an answer
    – egreg
    Oct 25 '15 at 23:45

The line


says that options is the literal name of an option for natbib package. As this is not defined to be an option in natbib, an error is thrown. In fact the string options means the possible options like square, numbers etc.

Hence if you want to pass options to the natbib package while loading itself, use


then you won't need to use

% Change how references are included (see the natbib package).

On the other hand, you may also use

\usepackage{natbib}     %% note the absence of options
% Change how references are included (see the natbib package).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.