# Biblatex: Suppress pages in journal

I went trough Guidelines for customizing biblatex styles and could solve some of the problems I encountered while customizing the alphabetic style (an answer for authoryear style is given in Biblatex - How to change format of journal, volume and page numbers in bibliography) to my needs

For a journal article

@article{somearticle,
title = {some article},
volume = {5},
number = {1},
journaltitle = {some journal},
author = {Some, {Person} },
date = {2005-12-01},
pages = {175--176},
langid = {english},
}


I'd like to have an output of the form

...,5(1):175-176 (2005),...

I managed to to this by the redefinitions:

\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=alphabetic]{biblatex}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{somearticle,
title = {some article},
volume = {5},
number = {1},
journaltitle = {some journal},
author = {Some, {Person} },
date = {2005-12-01},
pages = {175--176},
langid = {english},
}
\end{filecontents}

\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\usebibmacro{volume+number+eid}%
\printfield{pages}
\usebibmacro{issue+date}%
\usebibmacro{issue}%
\newunit}
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\printfield{number}%
\printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
\DeclareFieldFormat[article]{pages}{#1}

\AtEveryBibitem{\clearfield{month}}
\AtEveryBibitem{\clearfield{day}}

\begin{document}
\cite{somearticle}
\printbibliography
\end{document}


Instead I get ...,5(1):175-176 (2005), 175-176, i.e. the page numbers are printed twice. How can I get rid of the second printing of the page numbers?

• Just add \clearfield{pages} after \printfield{pages}. – moewe Nov 5 '15 at 16:01
• Instead of \setunit{\addcolon}\setunit*{\addnbthinspace} you probably want \setunit{\addcolon\addnbthinspace} also note that you are missing some % at the end of lines. – moewe Nov 5 '15 at 16:05

Just add \clearfield{pages} directly after \printfield{pages}

\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\usebibmacro{volume+number+eid}%
\printfield{pages}%
\clearfield{pages}%

But since the macro note+pages is only used by @rticles you might as well redefine it
\newbibmacro*{note+pages}{%