即使我正在使用,\usepackage[french]{babel}
我也没有法语版的信息
A partir de : [url...]
和类似. Récupérée le : 29 Septembre 2022
。(看第一个参考)。
对于第二个参考,我得到2013 feb
=> 我想要Février 2013.
(查看参考 2)。
我第二次想知道如何获得参考[1]
:Récupérée le 29 septembre 2022. A partir de https... a.
基本上我想改变元素的书写顺序
\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}
\DeclareFieldFormat*{labelnumberwidth}{[#1]}
%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
由于某种原因,biblatex-vancouver
没有使用biblatex
本地化功能,而是将英文字符串硬编码到样式中。
我们可以尝试按如下方式回滚它并返回到标准将使用的相关 bibstring biblatex
。
\documentclass[12pt,a4paper]{article}
\usepackage[french]{babel}
\usepackage{csquotes}
\usepackage[style=vancouver, citestyle=numeric, sorting=none, dateabbrev=false]{biblatex}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
\DeclareFieldFormat{date}{#1}
\DefineBibliographyStrings{french}{
urlseen = {récupérée le},
urlfrom = {a partir de},
}
\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\space\url{#1}}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
\renewbibmacro*{url+urldate}{%
\usebibmacro{urldate}%
\newunit
\usebibmacro{url}}
\begin{filecontents}{\jobname.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},
date = {2013-02},
urldate = {2022-09-29},
}
@online{essai1,
author = {Pibasso, Achille Mbog},
title = {Le Cameroun s’imprègne du modèle de la microfinance allemande},
urldate = {2022-09-29},
date = {2021-01-22},
url = {https://www.financialafrik.com/2021/01/22/le-cameroun-sempreigne-du-modele-de-la-microfinance-allemande/},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{essai1} et \cite{ministerium}
\printbibliography
\end{document}