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.

Based on other questions here, I'm trying to create an annotated bibliography, using \fullcite, where I want to suppress all URLs.

I'm using what appears to be a simple solution, which works for a 'normal' bibliography, but not for \fullcite (I've included the normal bibliography for illustration):

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{mwe82.bib}
@MANUAL{wilson2009,
  author = {Peter Wilson},
  title = {A Few Notes on Book Design},
  year = {2009},
  organization = {The Herries Press},
  url = {http://mirrors.ctan.org/info/memdesign/memdesign.pdf},
  address = {Normandy Park, WA},
  urlaccessdate = {19.12.2012}
}
\end{filecontents*}
\usepackage[%
    citestyle=authoryear, 
    bibstyle=authoryear, 
    backend=biber,
    bibencoding=utf8,
]{biblatex}
\addbibresource{mwe82.bib}
\AtEveryBibitem{%
    \clearfield{url}%
    }
\begin{document}
\fullcite{wilson2009}
\printbibliography
\end{document}

Giving this:

output pdf

Could someone tell me what I'm doing wrong?

share|improve this question
1  
you can use \AtEveryCitekey{\clearfield{url}} –  Marco Daniel May 7 '13 at 19:08
    
I was just about to say the same thing.... –  jon May 7 '13 at 19:11
add comment

1 Answer 1

up vote 6 down vote accepted

There are different approaches.

First on LaTeX-level you can use

\AtEveryCitekey{\clearfield{url}}

\AtEveryBibitem works only for \printbibliography.

Or you use a Biber solution:

\DeclareSourcemap{
 \maps[datatype=bibtex ]{
   \map{
     \step [ fieldset = url , null ]
     }
  }
}

MWE: enter image description here

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{mwe82.bib}
@MANUAL{wilson2009,
  author = {Peter Wilson},
  title = {A Few Notes on Book Design},
  year = {2009},
  organization = {The Herries Press},
  url = {http://mirrors.ctan.org/info/memdesign/memdesign.pdf},
  address = {Normandy Park, WA},
  urlaccessdate = {19.12.2012}
}
\end{filecontents*}
\usepackage[%
    citestyle=authoryear, 
    bibstyle=authoryear, 
    backend=biber,
    bibencoding=utf8,
]{biblatex}
\addbibresource{mwe82.bib}
\DeclareSourcemap{
 \maps[datatype=bibtex ]{
   \map{
     \step [ fieldset = url , null ]
   }
 }
}
\begin{document}
\fullcite{wilson2009}
\printbibliography
\end{document}
share|improve this answer
    
Thanks, Marco, \EveryCitekey is what I was looking for, but it's nice to have the biber tweak in my first-aid kit as well... –  Brent.Longborough May 7 '13 at 19:30
add comment

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.