1

I am using article class with biblatex. My code is below:

\documentclass[12pt,a4paper, british]{article}
\usepackage{babel} % Switch to English style quotation mark, 
                   % remember to add british to document option
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{xpatch}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{hyperref}
\hypersetup{unicode=true}

\usepackage{filecontents}
\begin{filecontents}{test.bib}

@TechReport{Dasgupta2007,
  author      = {Dasgupta, Susmita and Laplante, Benoit and Meisner, Craig %
                 and Wheeler, David and Yan, Jianping},
  title       = {The Impact of Sea Level Rise on Developing Countries: A Comparative Analysis},
  institution = {World Bank},
  year        = {2007},
  type        = {Report},
  number      = {World Bank Policy Research Working paper 4136},
  address     = {Washington DC},
  }
  \end{filecontents}
  %Bibliography configuration
  \usepackage[autostyle]{csquotes}
  \usepackage[style=ext-authoryear-comp, giveninits=true, uniquename=init, backend=biber, %
           maxcitenames=3,maxbibnames=9, sortcites, url=false, isbn=false, % 
           backref=false,articlein=false, innamebeforetitle=true]{biblatex}

  \renewcommand{\labelnamepunct}{\addspace} % Replace dot with comma in reference after Author + Year
  \DeclareFieldFormat{editortype}{\mkbibparens{#1}}
  \DeclareDelimFormat{editortypedelim}{\addspace}
  \DeclareFieldFormat{translatortype}{\mkbibparens{#1}}
  \DeclareDelimFormat{translatortypedelim}{\addspace}
  \DeclareFieldFormat[report]{title}{\mkbibquote{#1}}

  % replace dot “.” by comma “,” after title in biblatex for @article
  \xpatchbibdriver{article}
  {\usebibmacro{title}%
  \newunit}
  {\usebibmacro{title}%
  \printunit{\addcomma\space}}
  {}
  {}

  % remove chapter and pages
  \xpatchbibdriver{incollection}
  {\usebibmacro{chapter+pages}}
  {}
  {}{}

 % add them into the new position
 \xpatchbibmacro{incollection:parent}
 {\usebibmacro{maintitle+booktitle}%
 \newunit\newblock}
 {\usebibmacro{maintitle+booktitle}%
 \newunit\newblock
 \usebibmacro{chapter+pages}}
 {}{}


 \renewcommand*{\intitlepunct}{\addspace}
 \renewbibmacro*{in:}{%
 \setunit{\addcomma\space}%
 \printtext[]{%
 \bibstring{in}\intitlepunct}}

 %format volume and number as follow: volume(number)
 \renewcommand*{\volnumdelim}{\addnbspace}
 \DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

 %format page range of @article and @incollection follow this format: volume(number): page range.
 \renewcommand{\bibpagespunct}{\ifentrytype{article}{\addcolon} 
 {\addcomma}\addspace}
 \DeclareFieldFormat[article]{pages}{#1}

 %use ":" after year in the intext citation
 \renewcommand*{\postnotedelim}{\addcolon\space}
 \DeclareFieldFormat{postnote}{\mknormrange{#1}}
 \DeclareFieldFormat{multipostnote}{\mknormrange{#1}}

 \addbibresource{test.bib}


 %\nocite{westfahl:frontier,westfahl:space}


 \begin{document}

    \begin{itemize}
      \item This is cited by @technicalreport: \parencite{Dasgupta2007} \\

   \end{itemize}
 \printbibliography

 \end{document}

and here is the result: enter image description here

Can you instruct me how to drop the "Report" as being highlighted in the References?

2

Don't put 'Report' into the type field if you don't want to see it. Instead move the 'World Bank Policy Research Working Paper' from the number field, which should only contain a number, into the type field

type = {World Bank Policy Research Working Paper},
number = {4136},

My version of Biber also really doesn't like the % in the author name.

\documentclass[12pt,a4paper, british]{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\hypersetup{unicode=true}

\usepackage{filecontents}
\begin{filecontents}{test.bib}

@TechReport{Dasgupta2007,
  author      = {Dasgupta, Susmita and Laplante, Benoit and Meisner, Craig and Wheeler, David and Yan, Jianping},
  title       = {The Impact of Sea Level Rise on Developing Countries: A Comparative Analysis},
  institution = {World Bank},
  year        = {2007},
  type        = {World Bank Policy Research Working Paper},
  number      = {4136},
  address     = {Washington DC},
  }
\end{filecontents}
%Bibliography configuration
\usepackage[autostyle]{csquotes}
\usepackage[style=ext-authoryear-comp, giveninits=true, uniquename=init, backend=biber, %
            maxcitenames=3,maxbibnames=9, sortcites, url=false, isbn=false, % 
            backref=false,articlein=false, innamebeforetitle=true]{biblatex}

\DeclareDelimFormat[bib,biblist]{nametitledelim}{\addspace}% Replace dot with comma in reference after Author + Year
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareFieldFormat{translatortype}{\mkbibparens{#1}}
\DeclareDelimFormat{translatortypedelim}{\addspace}
\DeclareFieldFormat[report]{title}{\mkbibquote{#1}}

\usepackage{xpatch}
% replace dot “.” by comma “,” after title in biblatex for @article
\xpatchbibdriver{article}
  {\usebibmacro{title}%
   \newunit}
  {\usebibmacro{title}%
   \printunit{\addcomma\space}}
  {}
  {}

% remove chapter and pages
\xpatchbibdriver{incollection}
  {\usebibmacro{chapter+pages}}
  {}
  {}{}

% add them into the new position
\xpatchbibmacro{incollection:parent}
  {\usebibmacro{maintitle+booktitle}%
   \newunit\newblock}
  {\usebibmacro{maintitle+booktitle}%
   \newunit\newblock
   \usebibmacro{chapter+pages}}
  {}{}


\renewcommand*{\intitlepunct}{\addspace}
\renewbibmacro*{in:}{%
  \setunit{\addcomma\space}%
  \printtext{%
    \bibstring{in}\intitlepunct}}

%format volume and number as follow: volume(number)
\renewcommand*{\volnumdelim}{\addnbspace}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

%format page range of @article and @incollection follow this format: volume(number): page range.
\renewcommand{\bibpagespunct}{%
  \ifentrytype{article}
    {\addcolon} 
    {\addcomma}
  \addspace}
\DeclareFieldFormat[article]{pages}{#1}

%use ":" after year in the intext citation
\renewcommand*{\postnotedelim}{\addcolon\space}
\DeclareFieldFormat{postnote}{\mknormrange{#1}}
\DeclareFieldFormat{multipostnote}{\mknormrange{#1}}

\addbibresource{test.bib}

\begin{document}
\parencite{Dasgupta2007}
\printbibliography
\end{document}

"Dasgupta, S., B. Laplante, C. Meisner, D. Wheeler and J. Yan (2007) ‘The Impact of Sea Level Rise on Developing Countries: A Comparative Analysis’. World Bank Policy Research Working Paper 4136. Washington DC: World Bank."

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.