5

I am having difficulties with setting up the layout of my bibliography. I would like to have a numeric style which does a none sorting so its order is as it appears in the text. Plus I would like my bibliography entry to look like this (so authoryear style):

References

[1] Surname, Y.G. Year. Title ...

I don't know what to do and can't come up with anymore keywords to look for it. I just started using biblatex.

My setup is as follows:

\documentclass[12pt,a4paper]{scrartcl}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{textcomp}
\usepackage{hyperref}

\usepackage[
    backend=biber,
    bibstyle=authoryear,
    citestyle=numeric-comp
    sorting=none,
]{biblatex}

\bibliography{mybib}

\begin{document}

Structures \cite{definition}

\newpage

\printbibliography

\end{document}
Solaro
  • 53

2 Answers2

2

By default, biblatex's numeric styles use a authortite-flavoured bibliography style. But with a little trick we can make it use a authoryear one.

For this, use citestyle=numeric-comp, bibstyle=authoryear, as optional argument to biblatex and add

\makeatletter
\input{numeric.bbx}
\makeatother

to your preamble. Then the numeric bibstyle is applied to authoryear. This works because the numeric bibliography style numeric.bbx acts as a sort of "add-on" to the standard.bbx style and changes only definitions that do not conflict with authoryear.bbx.

It then only remains to drop the parentheses. The approach here was taken from lockstep's answer to biblatex: How to remove the parentheses around the year in authoryear style?. It requires the xpatch package

\xpatchbibmacro{date+extrayear}{%
  \printtext[parens]%
}{%
  \setunit{\addperiod\space}%
  \printtext%
}{}{}

MWE

\documentclass{article}
\usepackage[
    backend=biber,
    citestyle=numeric-comp,
    bibstyle=authoryear,
]{biblatex}
\usepackage{xpatch}

\makeatletter
\input{numeric.bbx}
\makeatother

\xpatchbibmacro{date+extrayear}{%
  \printtext[parens]%
}{%
  \setunit{\addperiod\space}%
  \printtext%
}{}{}

\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{wilde,geer,worman}
\printbibliography
\end{document}

enter image description here

moewe
  • 175,683
-1

I think what you are looking for, is the style of the bibliography. Maybe https://www.sharelatex.com/learn/Bibtex_bibliography_styles will help you

katang
  • 1,429
  • 3
    That won't do any good, the styles (bst) of the BibTeX system are unrelated and incompatible with biblatex styles. – Johannes_B Jun 06 '15 at 20:02