I'm trying to adapt a University of Chicago LyX dissertation template (see the preamble code below) to my particular citation needs and have found that it only compiles when all citations are (1) in 'default (numerical)' citation style and (2) 'plain' or 'ieeetr' bst (but not 'humannat,' which I'd like to use). When I attempt to employ Natbib and/or a bst file such as humannat, I receive numerous errors like these:
! Paragraph ended before \org@@citex was complete
and
! Paragraph ended before \NAT@@citetp was complete
Being a relatively newcomer to LyX and LaTeX, I'm flummoxed as to why natbib seems to hinder my ability to compile the document.
Here's the master file preamble for your reference. Thanks in advance for your help and expertise!
Code: Select all
\RequirePackage{setspace}[1998/04/8]
\newcommand{\etptsize}{12pt}
\DeclareOption{10pt}{\renewcommand{\etptsize}{10pt}}
\DeclareOption{11pt}{\renewcommand{\etptsize}{11pt}}
\DeclareOption{12pt}{\renewcommand{\etptsize}{12pt}}
\DeclareOption{letterpaper}{\PassOptionsToClass{letterpaper}{report}}
\newcommand{\etspacing}{\setstretch{1.37}}
\DeclareOption{truedoublespace}{\renewcommand{\etspacing}{\doublespacing}}
\DeclareOption{doublespace}{\renewcommand{\etspacing}{\setstretch{1.37}}}
\DeclareOption{onehalfspace}{\renewcommand{\etspacing}{\onehalfspacing}}
\DeclareOption{singlespace}{\renewcommand{\etspacing}{\singlespacing}}
\newcommand{\etchapterheadstyle}[1]{\MakeUppercase{#1}}
\DeclareOption{plainchapterheads}{\renewcommand{\etchapterheadstyle}[1]{#1}}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{report}
}
\ProcessOptions\relax
\RequirePackage[splitrule]{footmisc}%
\setlength{\footnotesep}{\baselineskip}
\let\oldfootnoterule = \footnoterule
\renewcommand{\footnoterule}{\kern 0.4\footnotesep\oldfootnoterule\kern-0.4\footnotesep}
\renewcommand{\@makefntext}[1]{\noindent\makebox[2.5em][r]{\@thefnmark.\ }#1}
\AtBeginDocument{\DeclareMathSizes{12}{12}{10}{8}}
\etspacing
\newcommand{\dedication}{
\chapter*{}
\thispagestyle{empty}
}
\def\makecopyright{\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi
\thispagestyle{empty}%\setcounter{page}{2}%
\null\vfill
\centerline{ Copyright \copyright\ \number\year\ by \@author }
\centerline{ All rights reserved }
\vskip 15pt\relax
\if@restonecol\twocolumn \else \newpage \fi
\let\makecopyright=\relax}
\newcommand{\topmatter}[1]{
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}
}
\renewenvironment{abstract}{\topmatter{Abstract}}{}
\newenvironment{acknowledgments}{\topmatter{Acknowledgments}}{}
\newcommand{\mainmatter}{
\clearpage
\pagenumbering{arabic}
}
\renewcommand{\title}[1]{\gdef\@title{#1}}
\renewcommand{\author}[1]{\gdef\@author{#1}}
\newcommand{\department}[1]{\gdef\@department{#1}}
\newcommand{\division}[1]{\gdef\@division{#1}}
\newcommand{\degree}[1]{\gdef\@degree{#1}}
\renewcommand{\date}[1]{\gdef\@date{#1}}
\renewcommand{\maketitle}{
\begin{titlepage}
\begin{center}
\rule{0in}{0.25in}
THE UNIVERSITY OF CHICAGO\\
\vfill
\MakeUppercase{\@title}\\
\vfill
A DISSERTATION SUBMITTED TO\\
THE FACULTY OF THE DIVISION OF THE \MakeUppercase{\@division}\\
IN CANDIDACY FOR THE DEGREE OF\\
\MakeUppercase{\@degree}\\
\ \\
COMMITTEE ON \MakeUppercase{\@department}\\
\vfill
BY\\
\MakeUppercase{\@author}\\
\vfill
CHICAGO, ILLINOIS\\
\MakeUppercase{\@date}
\vspace*{0.45in}
\end{center}
\end{titlepage}
\pagenumbering{roman}
\addtocounter{page}{1}
}
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{0.5in} % really 1.5in, added by bph
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{\@chapapp{ \thechapter}} % CHAPTER 1 or APPENDIX
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in} % back to 1in
}}
\renewcommand{\@makeschapterhead}[1]{{
\setlength{\topmargin}{0.5in} % really 1.5in, added by bph
\normalfont\large\bfseries
\begin{center}
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{0in} % back to 1in
}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\large\bfseries\centering}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\itshape\centering}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\itshape}}
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
\etchapterheadstyle{#1}\nobreak
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand{\contentsname}{Table of contents}
\def\thebibliography#1{\chapter*{REFERENCES}\markboth
{}{}\list
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}
\itemsep 0pt
\parsep 0pt
\parskip 0pt}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\let\thebibliography=\endlist
\setlength{\oddsidemargin}{0.2in} % really 1.5in
\setlength{\evensidemargin}{0.2in} % really 1.5in
\setlength{\textwidth}{6in}
\setlength{\topmargin}{0in} % really 1in
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.in}
\setlength{\textheight}{8.5in}
\setlength{\footskip}{0.2in}
\pagestyle{plain}
\let\oldtableofcontents = \tableofcontents
\renewcommand{\tableofcontents}{
\begin{singlespace}
\oldtableofcontents
\end{singlespace}
}
\let\oldlistoftables = \listoftables
\renewcommand{\listoftables}{
\begin{singlespace}
\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\oldlistoftables
\end{singlespace}
}
\let\oldlistoffigures = \listoffigures
\renewcommand{\listoffigures}{
\begin{singlespace}
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\oldlistoffigures
\end{singlespace}
}
\renewcommand{\figurename}{Figure}
\renewcommand{\fnum@figure}[1]{\textbf{\figurename~\thefigure}.}
\usepackage{psfrag}
\usepackage[nospace]{cite}
\usepackage{url}
\usepackage{multirow}
\renewcommand{\multirowsetup}{\centering}
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\usepackage[titletoc]{appendix}
\renewcommand{\appendixname}{Appendix}