# Bibliography in latex apa problem

i am a passive follower of this forum for quite a time and it usually helped my but now i can't figure a probleme. I want to have a simple bibliography (prefered) in APA but it does not work. I tried almost everything but it displays a error.

\documentclass[12pt,titlepage]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}

\synctex=1

\usepackage{color}
\usepackage[a4paper,lmargin={3cm},rmargin={2cm},tmargin={2cm},bmargin={2cm}]{geometry}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amstext}
\usepackage{mathptmx}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\onehalfspacing

\usepackage{nicefrac}
\usepackage{tocloft}
\usepackage{titlesec}
\usepackage{nameref}
\usepackage{csquotes}
\usepackage{natbib}
\usepackage{url}
\begin{document}
test test

test \cite{dohmen2011}

\bibliography{Literatur}
\bibliographystyle{apacite}
\end{document}


This are the error messages:

Undefined control sequence. test \citet
Undefined control sequence. dohmen2011}
Undefined control sequence. \APACinsertmetastar
Environment APACrefauthors undefined. \begin{APACrefauthors}
Undefined control sequence. \BCBL
Undefined control sequence. \BCBL {}\ \BBA
Undefined control sequence. \BCBL {}\ \BBA {} Wagner, G\BPBI
\begin{thebibliography} on input line 1 ended by \end{APACrefauthors}. \end{APACrefauthors}
Undefined control sequence. \APACrefYearMonthDay
Undefined control sequence. {\BBOQ
Undefined control sequence. {\BBOQ}\APACrefatitle
Undefined control sequence. ...nants, and behavioral consequences}.{\BBCQ
Undefined control sequence. \APACjournalVolNumPages
Undefined control sequence. \PrintBackRefs
Undefined control sequence. \PrintBackRefs{\CurrentBib


This is the bib-file:

@article{dohmen2011,
title={Individual risk attitudes: Measurement, determinants, and behavioral consequences},
author={Dohmen, Thomas and Falk, Armin and Huffman, David and Sunde, Uwe and Schupp, J{\"u}rgen and Wagner, Gert G},
journal={Journal of the European Economic Association},
volume={9},
number={3},
pages={522--550},
year={2011},
publisher={Wiley Online Library}
}

• Which error? Are you running bibtex? – Sigur Jan 22 '16 at 14:24
• Undefindes control sequence and stuff like apacrefauthers undefined – Lumberjack Jan 22 '16 at 14:31
• At least i try... It usually always worked but now there are these errors – Lumberjack Jan 22 '16 at 14:34
• Please copy the exact error messages into your question. – Johannes_B Jan 22 '16 at 14:35
• You should load the package apacite via \usepackage{apacite} too. – Andrew Swann Jan 22 '16 at 14:46

The error you are getting is because you are trying to use the apacite bibliography style without loading the apacite package. Since you are using natbib citation commands you should load the package with the natbibapa option:
\usepackage[natbibapa]{apacite}

The reason your document still failed when you first added the \usepackage command was because the auxiliary files related to the previous latex + bibtex compilation were still around. Whenever you change packages associate to the bibliography (and some other packages) it's always a good idea to delete all the auxiliary files before recompiling.