Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
share|improve this question
    
You can add lastchecked = {2012-01-03} in your bib file ... –  Kurt Jan 4 '13 at 12:03
    
@Kurt -- ok, so suppose I had a dummy bib entry (which doesn't get printed in the bibliography). How would I then just print the lastchecked entry? –  Emit Taste Jan 4 '13 at 12:10
    
@Kurt shouldn't that be urldate = {} ? –  ArTourter Jan 4 '13 at 13:35
    
@ArTourter: Yes, you are right, I copied an example from a bibtex and not biblatex file. –  Kurt Jan 4 '13 at 13:43
    
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 '13 at 18:17

1 Answer 1

up vote 2 down vote accepted

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}}
share|improve this answer
    
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 '13 at 17:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/89274/invoking-biblatex-macro-for-visited-on-date
tex.stackexchange.com
crawl=CC-MAIN-2014-52
72948
application/http; msgtype=response
sha1:QZJ4Z5SDZ3SYRKNAP5SBFNDX3KOQLJVB
<urn:uuid:8c97a7ac-706e-4949-9126-02228468b336>
2014-12-25T12:17:38Z
198.252.206.140
sha1:TWA6AKZW3KDUZZAP7XYMDIBR77A2HCBE
<urn:uuid:e2c5324b-fff9-487e-ac43-1edae8a3c667>
http://tex.stackexchange.com/questions/89274/invoking-biblatex-macro-for-visited-on-date
response
<urn:uuid:562fb60a-6ed4-45dc-91b8-ffb1490f29bb>
robots: classic
hostname: ip-10-231-17-201.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-52
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for December 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf