My university want to use a cite style mixture from Harvard and Numeric style. Number I only get [Number (Author+Year)] with my example instead of [ Number ] (Author+Year). So I have some issues with brackets.
\documentclass[a4paper,fontsize=12pt,parskip]{scrbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Layout
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%
\usepackage[labelfont={bf}]{caption}
\usepackage{subcaption}
\usepackage[pdfborder={0 0 0}]{hyperref}
\usepackage[]{geometry}
\renewcommand{\baselinestretch}{1.2}
\setlength\parindent{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Seitenränder und Abstände
\geometry{
textwidth=150mm,
textheight=220mm,
top=40mm,
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Literaturverzeichnis
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[german=guillemets]{csquotes}
%
\usepackage[backend=biber,style=numeric,maxnames=5,minnames=5,maxcitenames=2,mincitenames=1,datamodel=eprint-hal]{biblatex}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\printtext[hardbrackets]{%
\printfield{prefixnumber}%
\printfield{labelnumber}%
\ifbool{bbx:subentry}
{\printfield{entrysetcount}}
{}}
\printtext[parens]{%
\printnames{labelname}%
\setunit{\nameyeardelim}%
\setunit{\addcomma\space}
\printfield{year}%
}}}
%
\addbibresource{biblatex-examples.bib}
\begin{document}
ba bla
\cite{springer}
%Literaturverzeichnis
\printbibliography[heading=bibintoc,title=Literaturverzeichnis]
\end{document}
![lorem [1] (Sigfridsson und Ryde 1998) lorem [2] (Springer 1950)](../../images/4f45f876c5ceef9fbaff7352d1329311.webp)
\autocitemakes it extremely easy to switch back to a different citation style. Just change\ExecuteBibliographyOptions{autocite=nay}in the example to\ExecuteBibliographyOptions{autocite=plain}to get numeric citations with just one simple change. (It should be trivial to change your existing document from\citeto\autociteas every good editor has a search-and-replace feature.) – moewe Apr 27 '22 at 19:50\citeinstead of\autocite, but I really want to advertise the advantages of\autocite. – moewe Apr 27 '22 at 19:51\newrobustcmd*{\mkbibbiggerbrackets}[1]{[{\small#1}]}then. But in the end I still think this is a lipstick-on-a-pig situation. The citation style itself is so unwieldy (and I would argue flawed) that cosmetic changes like this don't make a huge difference. – moewe Apr 30 '22 at 09:56\mkbibbiggerbrackets. – moewe Apr 30 '22 at 10:08