[Tex/LaTex] How to remove the space between “pp.” and the page numbers

biblatexspacing

I'm trying to create a preamble that matches the "interesting" form of Harvard that my University insists on using.

I'm almost there but need a method to remove the space between pp. and the page numbers.

In my Harvard guide it must be pp.66-67 instead of pp. 66-67

Please help!

Code I have so far:

\documentclass[12pt]{report}

\usepackage[
firstinits=true,
useprefix=true,
maxcitenames=3,
maxbibnames=99,
style=authoryear,
dashed=false, 
natbib=true,
isbn=false,
url=false
]{biblatex}

\usepackage{csquotes}

\renewbibmacro*{name:andothers}{
  \ifboolexpr{
    test {\ifnumequal{\value{listcount}}{\value{liststop}}}
    and
    test \ifmorenames
  }
    {\ifnumgreater{\value{liststop}}{1}
       {\finalandcomma}
       {}%
     \andothersdelim\bibstring[\emph]{andothers}}
    {}}

\renewcommand*{\bibinitdelim}{}
\usepackage{xpatch}
\xapptobibmacro{date+extrayear}{\nopunct}{}{}
\usepackage[british]{babel}
\usepackage{csquotes}

\DeclareNameAlias{author}{last-first}
\renewcommand*{\bibnamedelimd}{\addlpthinspace} 
\renewcommand*{\nameyeardelim}{\addcomma\addspace} 
\setlength\bibitemsep{1.5\itemsep} 
\renewbibmacro{in:}{}

\renewbibmacro*{volume+number+eid}{
  \setunit*{\addcomma\space}
    \printfield{volume}
    \setunit*{\addnbspace}
    \printfield{number}
    \setunit{\addcomma\space}
    \printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}


\addbibresource{references.bib}
\AtEveryBibitem{\clearlist{language}} % clears language
\AtEveryBibitem{\clearfield{note}}    % clears notes


\begin{document}

\printbibliography[title=References]

\end{document}

Best Answer

If you absolutely have to use such a horrible style: Redefine \ppspace. See section 4.6.4 of the manual for details.

\documentclass{article}

\usepackage[style=authoryear]{biblatex}

\renewcommand*{\ppspace}{}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

Some text \autocite[9]{A01}.

\printbibliography

\end{document}

enter image description here

Related Question