6

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?

  • 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
10

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.