I am trying to migrate my document from Bibtex to Biblatex (biber), but after the change I cannot compile my document anymore. In this mini file I am trying to find my bug. What am I doing wrong?
I appreciate the help!!
(Background: The reason I am switching to biber is that I want to divide my literature into several groups. And I was told that biber would be the easiest option.)
TLDR: I cannot compile my code and I get the following error message (in TEXmaker):
Package biblatex Info: Reference segment=0 on input line 34.
! Illegal parameter number in definition of \abx@list@location.
<to be read again>
1
l.35 ...l durch die Medien geht \cite{Brown.2017}
und auch der Beruf des gew...
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
My bibfile:
@online{Brown.2017,
author = {Brown, Meta S.},
editor = {Forbes},
year = {2017},
title = {{Read This Before You Pay For That Masters In Data Science Program}},
url = {\url{https://www.forbes.com/sites/metabrown/2017/10/31/read-this-before-you-pay-for-that-masters-in-data-science-program/#1a20e13f78b2}},
urldate = {2018-10-19},
origdate = {2017-10-31},
abstract = {},
location = {\url{https://www.forbes.com/sites/metabrown/2017/10/31/read-this-before-you-pay-for-that-masters-in-data-science-program/#1a20e13f78b2}},
note = {Forbes. Zuletzt gepr{\"u}ft am 19.10.2018.}
}
My texfile:
\documentclass[
pdftex,
oneside,
12pt,
parskip=half,
headheight = 14pt,
headsepline,
footsepline,
footheight = 16pt,
abstracton,
DIV=calc,
BCOR=8mm,
headinclude=false,
footinclude=false,
listof=totoc,
toc=bibliography,
]{scrreprt}
\usepackage{xstring}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{epigraph}
\usepackage[
backend=biber,
bibwarn=true,
bibencoding=utf8,
sortlocale=nyt,
citestyle=authoryear,
]{biblatex}
\addbibresource{BiblatexLiteratur.bib}
\begin{document}
Dadurch, dass Data Science im Moment viel durch die Medien geht \cite{Brown.2017} und auch der Beruf des gewählt \cite{Glassdoor.2018}.
\clearpage
\printbibliography
\end{document}
pdftex
as package option (or global class option), it can actually be detrimental if you happen to use a different engine than pdfTeX, so I suggest you drop that option.bibwarn=true,
is already the default and need not be given as option.bibencoding=utf8,
would be detected automatically with your settings and is thus also not needed.citestyle=authoryear,
withoutbibstyle=authoryear,
(which could be combined tostyle=authoryear,
) is also a bit unusual. (Withstyle=authoryear
,sortlocale=nyt,
would be the default.)