Biblatex 宏用于 URL 打印

Biblatex 宏用于 URL 打印

我想将引用在线文档时出现的“URL:”更改为与urlfrom我使用的语言相对应的字符串。

我使用的选项biblatex是:

\usepackage[backend=biber,singletitle=true,style=verbose-trad2,bibstyle=verbose,isbn=false,maxcitenames=3]{biblatex}

我举个例子:

在此处输入图片描述

对应的代码是:

@ARTICLE{Monnier_democ_1999,
  author = {Monnier, Raymonde},
  title = {Démocratie et Révolution française},
  journal = {Mots},
  year = {1999},
  volume = {59},
  pages = {47--68},
  number = {1},
  publisher = {ENS Editions},
  url = {http://www.persee.fr/web/revues/home/prescript/article/mots_0243-6450_1999_num_59_1_2547},
  urldate = {2015-04-06}
}   

在 biblatex.def 中我发现了似乎管理 url 打印的宏:

\newbibmacro*{url+urldate}{%
  \usebibmacro{url}%
  \iffieldundef{urlyear}
    {}
    {\setunit*{\addspace}%
     \usebibmacro{urldate}}}

\newbibmacro*{url}{\printfield{url}}
\newbibmacro*{urldate}{\printurldate}

但我看不到有关此“URL:”字段的任何提示。

答案1

这里是:

\documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} 
\usepackage{lmodern}
\usepackage[french,]{babel}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{Monnier_democ_1999,
  author = {Monnier, Raymonde},
  title = {Démocratie et Révolution française},
  journal = {Mots},
  year = {1999},
  volume = {59},
  pages = {47--68},
  number = {1},
  publisher = {ENS Éditions},
  url = {http://www.persee.fr/web/revues/home/prescript/article/mots_0243-6450_1999_num_59_1_2547},
  urldate = {2015-04-06}
}
\end{filecontents} 
\usepackage{csquotes}

\usepackage[backend=biber, singletitle=true, style=verbose-trad2, bibstyle=verbose, isbn=false, hyperref, maxcitenames=3]{biblatex}

\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\space\url{#1}}

\DefineBibliographyStrings{french}{%
  urlseen = {consult\'e le},
}

 \addbibresource{\jobname.bib}
\AtBeginDocument{\DeclareUrlCommand\url{\def\UrlLeft{<}\def\UrlRight{>}%
\urlstyle{sf}}}

\begin{document}
\nocite{*}.
\printbibliography

\end{document} 

在此处输入图片描述

相关内容