I'm trying to use authoryear style and remove the parentheses around the year:

Authors...2018. Title...

instead of

Authors...(2018) Title...

in the bibliography. I am, however, not able to get it to work. e.g. biblatex: How to remove the parentheses around the year in authoryear style? fails. biblatex-chicago also fails. I found that in newer versions, the macro has to be changed adding a *. My new MWE would be

\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\usepackage{xpatch}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\addbibresource{\jobname.bib}
\nocite{*}

\begin{document}
\printbibliography
\xpatchbibmacro{date+extrayear}{%
\printtext[parens]%
}{%
  \setunit*{\addperiod\space}%
  \printtext%
}{}{}
\printbibliography
\end{document}

which consequently fails too:

enter image description here

I tested pdflatex, lualatex on macOS and Windows. Packages are up to date. Can someone help?

marked as duplicate by moewe biblatex Nov 8 at 22:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I marked this question as a duplicate. If the answer in the duplicate does for some reason not work for you, please edit your question, explain how and share more details about your package versions (upload the relevant parts of the .log file). In that case I will immediately vote to reopen this question. – moewe Nov 8 at 22:47
  • That one was my question, I thin something went wrong here. However, the solution provided does work. Thank you – Max Nov 9 at 16:23
  • I thought you referred to tex.stackexchange.com/q/12254/35864? I closed as a duplicate of tex.stackexchange.com/q/428190/35864 (a different question with similar title), where one of the answers is exactly what SrongBad suggests in his answer. – moewe Nov 9 at 16:27
up vote 1 down vote accepted

The key is in authoryear.bbx

\providebibmacro*{date+extrayear}{%
  \blx@warning{bibmacro 'date+extrayear' is deprecated.\MessageBreak
    Please use 'date+extradate'.\MessageBreak
    Using 'date+extradate' instead}%
  \usebibmacro{date+extradate}}

You just need to change

\xpatchbibmacro{date+extrayear}{%

to

\xpatchbibmacro{date+extradate}{%
  • Perfect, thank you. Saved me tons of time – Max Nov 9 at 16:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.