I have looking for how to cite the author and year in a sentence with reference to my bibliography list. I already used some Natbib styles, but no result of what I want.
This is my main file: thesis.tex
\documentclass[11pt,a4paper]{article}
%Enabled packages
\usepackage{fancyhdr} %something with the header and footer
\usepackage{graphicx} %enables easy graphics embedding
\usepackage{datetime}
\usepackage[nottoc]{tocbibind}
\usepackage{enumitem}
\usepackage{abstract}
\usepackage{caption}
\usepackage[hang,flushmargin,bottom]{footmisc}
\usepackage{hyperref}
\usepackage[title,titletoc]{appendix}
\usepackage{cite}
\usepackage[numbers]{natbib}
\begin{document}
\include{Sections/Title}
\include{Sections/Abstract}
\tableofcontents
\include{Sections/chapterA}
\include{Sections/chapterB}
\include{Sections/bibliography}
\end{document}
My .bib file is called references.bib containing one example:
@book{hermanss2012,
author = "Astrid Hermanns",
title = "Psychology Management in Organizations",
publisher = "Cengage Learning EMEA",
year = "2012"
}
The place where I put the citation in the sentence is (as example) abstract.tex:
%Disable fancy page style
\thispagestyle{empty}
\begin{abstract}
\noindent This is the place for the abstract\citeauthor{hermanns2012}
\end{abstract}
This is an image of the output of the pdf file
Instead of the "author?" I want the lastname of the author and the year as a citation there, like "This is the place for the abstract (Hermanns, 2012)
"
Furtermore, I want that the books/reports/etc in the bibliography is sorted on alphabetical order, by starting with the lastname of the auther instead of a number.
Anyone suggestions of how to solve this issues?
Best Answer
You need to include your biblography file as follows:
And then cite your reference using
\cite{hermanss2012}
See the example below: