[Tex/LaTex] Remove numbers from CV bibliography using biblatex in Texshop

bibdeskbiblatexbibliographiesmoderncvtexshop

I have a question in relation to my CV that I am working on in Texshop. The problem I have encountered is to do with the bibliography, which shows up numbered – like so [n]. I have been trying to create an unnumbered bibliography using the recommendation that I found on this site but it's not working.

I am using the bibdesk for the references and running the biber engine in Texshop

This is the code I used:

\usepackage[
   bibstyle=ieee
]{biblatex}
\addbibresource{cvreferences.bib}

\makeatletter
\renewcommand\@biblabel[1]{}
\makeatother

\nocite{*}
\printbibliography[title=Publications]

Also, as it is a CV the documentclass is as follows:

\document[11pt,a4paper,sans]{moderncv}

Please note I am not an advanced user.
I would really appreciate help because I have spent already so much time on solving this problem but I am making no progress.

Thank you.

Best Answer

Add the following lines in your preamble

\DeclareFieldFormat{labelnumberwidth}{}
\setlength{\biblabelsep}{0pt}

The first line is to print nothing in the label, the second to eliminate the spacing before the entries.

MWE:

\begin{filecontents*}{cvreferences.bib}
@BOOK{book1,
  author    = {John Doe},
  title     = {Title},
  publisher = {Publisher},
  edition   = {edition},
  year      = {year},
}
\end{filecontents*}

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}

\usepackage[
   bibstyle=ieee,
   backend=biber
]{biblatex}
\addbibresource{cvreferences.bib}

\DeclareFieldFormat{labelnumberwidth}{}
\setlength{\biblabelsep}{0pt}

\firstname{John} % Your first name
\familyname{Doe} % Your last name

\begin{document}

\makecvtitle

\nocite{*}
\printbibliography[title=Publications]

\end{document} 

Output:

enter image description here