温哥华采用 biblatex 书目格式

温哥华采用 biblatex 书目格式

我怎样才能得到而不是1.在参考书目中有[1]?

\documentclass[12pt,a4paper]{article} 

\begin{filecontents}[overwrite]{mybib.bib}
@online{ministerium,
    author = {{Bundesministerium für Familie, Senioren, Frauen und Jugend}},
    title  = {{Stief- und Patchworkfamilien in Deutschland}},
    url    = {https://www.bmfsfj.de/resource/blob/76242/1ab4cc12c386789b943fc7e12fdef6a1/monitor-familienforschung-ausgabe-31-data.pdf},
    year   = {2013},
    urldate = {2022-09-29},
    
}
 @online{essai1,
    author = {Pibasso, Achille Mbog},
   year =   {2021},
    title = {Le Cameroun s’imprègne du modèle de la microfinance allemande},
   urldate = {2022-09-29},
   month =  {2021-01-22},
    url =   {https://www.financialafrik.com/2021/01/22/le-cameroun-sempreigne-du-modele-de-la-microfinance-allemande/}
 }



\end{filecontents}

\usepackage[french]{babel}
\usepackage{csquotes}

\usepackage[style=vancouver,sorting=none,citestyle=numeric]{biblatex} 
\addbibresource{mybib.bib}

%option 1:
%\usepackage{xurl} % <-- important
%\usepackage[colorlinks,allcolors=blue]{hyperref} % optional



%option 2    
% formatting of hyperlinks
\usepackage{url}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{
    colorlinks,
    linkcolor={red!50!black},
    citecolor={blue!50!black},
    urlcolor={blue!80!black}
}



\begin{document}
%\nocite{*}

\cite{essai1} et \cite{ministerium}
\printbibliography
\end{document}

答案1

您可以\DeclareFieldFormat{labelnumberwidth}像这样重新定义:

\documentclass[12pt,a4paper]{article} 

\usepackage[french]{babel}
\usepackage{csquotes}

\usepackage[style=vancouver,sorting=none,citestyle=numeric]{biblatex} 
\addbibresource{biblatex-examples.bib}

%option 1:
%\usepackage{xurl} % <-- important
%\usepackage[colorlinks,allcolors=blue]{hyperref} % optional


\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}

%option 2    
% formatting of hyperlinks
\usepackage{url}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{
    colorlinks,
    linkcolor={red!50!black},
    citecolor={blue!50!black},
    urlcolor={blue!80!black}
}



\begin{document}
%\nocite{*}

\cite{knuth:ct} et \cite{westfahl:space}
\printbibliography
\end{document}

相关内容