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.

0

2 Answers 2

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{[email protected]}                                                    
\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

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}
1
  • This seems to be a copy of David's answer
    – user148199
    May 11, 2019 at 19:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .