I am new to using LaTeX and am currently working on a document to include references.
I just created a basic bibliography database file and included it in my source file along with style as plain. Please find below the actual code.
Code: Select all
\documentclass[a4paper]{report}
\newcommand\pder[2][]{\ensuremath{\frac{\partial#1}{\partial#2}}}
\usepackage{amsmath}
\usepackage{float}
\usepackage{graphicx}
\usepackage{setspace}
\doublespacing
%this is for section packages
\usepackage{sectsty}
\allsectionsfont{\Large \normalfont \bf}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont \bfseries\filcenter}
{\LARGE\thechapter}
{1ex}
{
\titlerule[2pt]
\vspace{2ex}%
\LARGE}
[\vspace{1ex}%
{\titlerule[2pt]}]
\usepackage{lastpage} % for the number of the last page in the document
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{\nouppercase{\rightmark}}
\rfoot{\thepage}
\usepackage[nokeyprefix]{refstyle}
\usepackage{amsmath,hyperref}
\makeatletter
\def\tagform@#1{\maketag@@@{\ignorespaces#1\unskip\@@italiccorr}}
\let\orgtheequation\theequation
\def\theequation{(\orgtheequation)}
\makeatother
\let\orgautoref\autoref
\providecommand{\Autoref}[1]{\def\equationautorefname{Equation}\orgautoref{#1}}
\renewcommand{\autoref}[1]{\def\equationautorefname{Eq.}\orgautoref{#1}}
\usepackage[none]{hyphenat}
\begin{document}
%nothing included just the bibliography testing as of now
\bibliographystyle{amsplain}
\bibliography{foo}
\end{document}
Code: Select all
! Undefined control sequence.
<argument> \protect \citeauthoryear
{Golumbic}{Golumbic}{{\protect \APACyear...
l.10 Golumbic2004}
Thanks