[Tex/LaTex] Chicago style references in latex

bibliographieschicago-style

I have to use chicago reference style for my thesis references. Below are two example references can anyone tell me which exactly is chicago style.

Gao, G. and K. Whitehouse (2009). The self-programming thermostat:
optimizing setback schedules based on home occupancy patterns. In
Proceedings of the First ACM Workshop on Embedded Sensing Systems for
Energy-Eciency in Buildings, pp. 67{72. ACM.

OR

Ge Gao and Kamin Whitehouse. The self-programming thermostat: opti-
mizing setback schedules based on home occupancy patterns. In
Proceedings of the First ACM Workshop on Embedded Sensing Systems for
Energy-Eciency in Buildings, pages 67{72. ACM, 2009.

I need to use the first one the chicago style. But I am not able to generate reference numbers with the 1st option shown.

I am using the following latex packages

\bibliographystyle{Classes/CUEDbiblio}
\bibliographystyle{Classes/jmb}
\bibliographystyle{plainnat} %this works with package natbib

\bibliographystyle{Classes/chicago} % bibliography style
\renewcommand{\bibname}{References} % changes default name Bibliography to References
%\bibliographystyle{abbrv}
\bibliography{References/references} % References file
\addcontentsline{toc}{chapter}{References} %adds References to contents page

Can anyone help me? how to solve this issue

Best Answer

The first of the two options is pretty much "chicago" style. It's not clear to me which problem you're looking to solve, but I have the impression that it is that you need numeric-style rather than authoryear-style citation call-outs. If this impression is correct, you can achieve your objective by loading the natbib citation management package with the option numbers:

\usepackage[numbers]{natbib}
\bibliographystyle{chicago}

The output of a full MWE (minimum working example):

enter image description here

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{references.bib}
@inproceedings{xyz,
author    = "Ge Gao and Kamin Whitehouse",
title     = "The Self-Programming Thermostat: Optimizing Setback 
             Schedules based on Home Occupancy Patterns",
booktitle = "Proceedings of the First ACM Workshop on Embedded 
             Sensing Systems for Energy-Efficiency in Buildings", 
pages     =  "67-72", 
publisher = "ACM", 
year      = 2009,
}
\end{filecontents*}
\usepackage[numbers]{natbib} % omit 'numbers' option if authoryear-style citation callouts are needed
\bibliographystyle{chicago} % bibliography style
\begin{document}
According to \cite{xyz}, \ldots

\bibliography{references} % bib entries are in 'references.bib'
\end{document}