3

I'd like to change the "URL:", which appears when quoting an online document, by the urlfrom string corresponding to the language I use.

The options I use for biblatex are:

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

I give you an example:

enter image description here

The corresponding code is:

@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}
}   

In biblatex.def I found the macro that seems to manage the url printing :

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

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

But I can't see any indication about this "URL:" field.

1 Answer 1

3

Here it is:

\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} 

enter image description here

10
  • Great! And does anyone knows how to put the url between <and>, as in this case : <persee.fr/web/revues/home/prescript/article/…> I did not find any \add... type command for that.
    – Vertex
    May 8, 2015 at 14:41
  • I don't see what you mean exactly. Maybe adding another url? Could you be more explicit?
    – Bernard
    May 8, 2015 at 14:49
  • I want the last part of the result to be as this : Disp. a l’adr. : <persee.fr/web/revues/home/prescript/article/… 2547> (consulté le 06/04/2015).
    – Vertex
    May 8, 2015 at 16:07
  • Just changing visité for consulté?
    – Bernard
    May 8, 2015 at 16:13
  • No. This is due to my modifications of french.lbx I just want to put the url between greater than "<" and lesser than ">" symbols.
    – Vertex
    May 8, 2015 at 16:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .