I am using the documentclass scrbook and want to cite so that it looks like this:
Author(Year).
Is there a possibility to use \biboptions{authoryear} in scrbook or anything similar to it?
I use a template from my university and every time I try to change the documentclass to elsarticle I get an error. That's why I am looking for a solution with scrbook.
Thanks in advance.
code:
\documentclass
[paper=a4,
twoside=on,
DIV=13,
fontsize=12pt,
BCOR=15mm,
parskip=half,
numbers=noenddot,
cleardoublepage=empty]
{scrbook}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsbsy}
\usepackage{amssymb}
\usepackage{subfig}
\usepackage{multirow}
\usepackage{makeidx}
\usepackage[absolute]{textpos}
\usepackage[style=numeric, backend=biber, natbib=true]{biblatex}
\DeclareNameAlias{sortname}{last-first}
\DeclareNameAlias{default}{last-first}
\addbibresource{quellen.bib}
\usepackage{url}
\setcounter{biburlnumpenalty}{9000}
\setcounter{biburlucpenalty}{9000}
\setcounter{biburllcpenalty}{9000}
\usepackage[]{acronym}
\usepackage{lmodern,textcomp}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{url}
\usepackage{listings}
\usepackage{scrhack}
I want to use something like this:
\usepackage{natbib}
\bibliographystyle{model2-names}
\biboptions{authoryear}
If I try to change the documentclass to elsarticle, the following error appears:
/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.sty:462:
LaTeX Error:
Command \bibhang already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.462 \newlength{\bibhang}
\documentclass{...}and ending with\end{document}. – Stefan Pinnow Aug 01 '18 at 19:00