4

Can I invoke some biblatex commands or macros in order to automatically generate a string like this:

(visited on 04/01/2013)

I have this outside of a \cite command in a footnote, but would like to automatically get the same text and formatting as biblatex would use when printing this information. So something like

\printurlseen{2013-01-04}  % hypothetical code
2
  • would the entry be part of your bib file? if it is you could use the \fnotecite{<key>} which would put the full reference as a footnote and not in the bibliography section. Is that what you are after?
    – ArTourter
    Jan 4, 2013 at 18:17
  • @ArTourter - I could add it to the bib file, no problem. But I really just want to print the url and the urlseen part, nothing else (no authors, year, etc.)
    – Emit Taste
    Jan 5, 2013 at 23:34

1 Answer 1

2

Biblatex has \citeurl{citekey}. However, this does not output the information about when the url has been visited.

A possible way to modify it is

\DeclareCiteCommand{\citeurl}
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\printfield[citeurl]{url}
    \iffieldundef{urlyear}
      {}
      {\printurldate}}
  {\multicitedelim}
  {\usebibmacro{postnote}}
1
  • Thank you. With the help of this answer I modified the third last line in your example to {\mkbibparens{\bibstring{urlseen}\space\printurldate}} -- this does now exactly what I want.
    – Emit Taste
    Jan 7, 2013 at 17:32

You must log in to answer this question.

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