1

I want to enumerate the publications using reverse order, i.e. assuming that I have N publications, the publications in the bottom will be the oldest, and will have number [1] next to them, while the most recent publications will be on the top, and will have number [N] next to them.

Does anyone have an idea how to do this? This is the code I used:

\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}                             
\moderncvcolor{blue}                               


\renewcommand{\familydefault}{\rmdefault}         

\usepackage[utf8]{inputenc}                       

\usepackage[style=numeric,sorting=ydnt]{biblatex}
\addbibresource{publications.bib}

\usepackage[scale=0.75]{geometry}

\begin{document}
\makecvtitle

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

\end{document}

Thank you.

2

Here's a slightly simpler way to do it building on this answer.

\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}                             
\moderncvcolor{blue}                               
\usepackage[utf8]{inputenc}                       
\usepackage[sorting=ydnt]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage[scale=0.75]{geometry}
\name{Sa\"{i}d}{Maanan}
\title{CV}
\address{Department of Statistics}{University of Auckland}{Private Bag 92019, Auckland 1142, New Zealand}
\phone[mobile]{+64~(022)~1258~144}                   
\email{s.maanan@auckland.ac.nz}                                                    
\social[linkedin]{smaanan}                        
\social[github]{smaanan}                              

% Reverse numbering in publications list
\newcounter{entrycount}
\AtDataInput{\stepcounter{entrycount}}
\DeclareFieldFormat{labelnumber}{\mkrevbibnum{#1}}
\newcommand{\mkrevbibnum}[1]{\number\numexpr\value{entrycount}+1-#1}

\begin{document}
\makecvtitle
\nocite{sigfridsson,wilde,worman,geer,baez/article}
\printbibliography[title={Publications}]
\end{document}

enter image description here

| improve this answer | |
0

I found the answer here.

\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}                             
\moderncvcolor{blue}                               


\renewcommand{\familydefault}{\rmdefault}         

\usepackage[utf8]{inputenc}                       

\usepackage[style=numeric,sorting=ydnt]{biblatex}
\addbibresource{publications.bib}

\makeatletter
\newcounter{numbibentries}
\renewbibmacro*{finentry}{\stepcounter{numbibentries}\finentry}
\defbibenvironment{bibliography}
 {\list
  {\printtext[labelnumberwidth]{% 
    \printfield{prefixnumber}%
    \number\numexpr\getrefnumber{num-bib-entries}- \abx@field@labelnumber+1\relax}}
  {\setlength{\topsep}{0pt}% 
   \setlength{\labelwidth}{\hintscolumnwidth}%
   \setlength{\labelsep}{\separatorcolumnwidth}%
   \advance\leftmargin\labelsep
  }%
 }
 {\endlist}
 {\item}
\AtEndDocument{% Add reference at end of document to remember number of bib-entries.
\edef\@currentlabel{\thenumbibentries}\label{num-bib-entries}}
\makeatother

\usepackage[scale=0.75]{geometry}                           

\begin{document}
\makecvtitle

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

\end{document}
| improve this answer | |
  • This seems to be a copy of David's answer – Does it matter May 11 '19 at 19:28

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.